Version:

Last Modified: January 12, 2018

Calculates the partial derivatives of a function that contains two independent variables.

Numbers of values for both variables used in the function calculation.

Formula that defines the function. The formula can contain any number of valid variables.

Entering Valid Variables

This node accepts variables that use the following format rule: variables must start with a letter or an underscore followed by any number of alphanumeric characters or underscores.

Start values of the variables in the interval where this node starts calculating values.

This input can contain only two elements. Otherwise, this node returns an error.

**Default: **[0.00, 0.00]

End values of the variables in the interval where this node stops calculating values.

This input can contain only two elements. Otherwise, this node returns an error.

**Default: **[1.00, 1.00]

Names of the variables.

Variable names must start with a letter or an underscore followed by any number of alphanumeric characters or underscores.

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an **error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

**Default: **No error

Variable whose partial derivative you want to calculate.

Name | Value | Description |
---|---|---|

first variable | 0 | Calculates the partial derivative of the first variable. |

second variable | 1 | Calculates the partial derivative of the second variable. |

**Default: **first variable

Values of the first variable used in the function calculation. The values are equally spaced from **start** to **end**.

Values of the second variable used in the function calculation. The values are equally spaced from **start** to **end**.

Fixed partial derivatives at the defined grid points.

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

**error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

This node calculates **partial derivative** using the following equation:

$\mathrm{partial}\text{\hspace{0.17em}}\mathrm{derivative}=\{\begin{array}{cc}\frac{\mathrm{df}(x1,\text{\hspace{0.17em}}x2)}{dx1}& \text{\hspace{0.17em}}(\mathrm{if}\text{\hspace{0.17em}}\mathrm{derivative}\text{\hspace{0.17em}}\mathrm{is}\text{\hspace{0.17em}}\mathrm{first}\text{\hspace{0.17em}}\mathrm{variable})\\ \frac{\mathrm{df}(x1,\text{\hspace{0.17em}}x2)}{dx2}& (\mathrm{if}\text{\hspace{0.17em}}\mathrm{derivative}\text{\hspace{0.17em}}\mathrm{is}\text{\hspace{0.17em}}\mathrm{second}\text{\hspace{0.17em}}\mathrm{variable})\end{array}$

To investigate the *x*_{1}-derivative of function *f*(*x*_{1}, *x*_{2}) = sin(*x*_{1}^{2} - *x*_{2}) - cos(sin(*x*_{2}) - *x*_{1}) in the interval (-2, 2) by (-2, 2), enter the following values on the panel:

**start**: [-2, 2]

**end**: [2, 2]

**formula**: sin(x1*x1 - x2) - cos(sin(x2) - x1)

**derivative**: first variable

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application