# Derivative Workflows Use solver derivatives to study how result data changes when a value in a JCMsuite {term}`project` changes. First declare the derivative parameters in the {term}`project`, then run {func}`solve ` and select the result data that contains the derivatives. ## Choose A Workflow - [Set up derivatives](setup.md) when you need to declare `DerivativeParameter` blocks, or enable derivative order. - [Export derivative data](export.md) when you need dictionaries, pandas DataFrames, or xarray data for tabular and field-export results. - [Use Torch Integration](torch.md) when a solver result must participate in a PyTorch objective and receive autograd gradients. ## Workflow Steps 1. Declare each solver derivative parameter in the input files. A derivative output name can differ from the {term}`project keys` used to fill a template. 2. Set the derivative order in the project file and call {func}`solve ` with the required {term}`project keys`. 3. Select derivative data through {attr}`result.postprocesses `. 4. Export ordinary derivative data with {meth}`to_dict() `, {meth}`to_df() `, or {meth}`to_xarray() `. 5. Alternatively, pass gradient-enabled Torch tensors to {func}`jcmsuite.torch.solve ` with explicit derivative bindings. ## Tutorials Run the [Derivative Tutorials](../tutorials/derivatives/index.md) for complete Torch autograd, export, gradient-check, and binding-validation examples. ## Workflow Pages ```{toctree} :maxdepth: 1 :titlesonly: setup export torch ``` ## Related Pages - [Solving Projects](../core/solve/index.md): create a result from a {term}`project`. - [Working With Results](../results/index.md): select and export result data.