Back to Symbolic Mathematics
diff
Symbolic differentiation
Syntax
df = diff(f, x) df = diff(f, x, n)
Description
Computes the symbolic derivative of f with respect to x. If n is specified, computes the nth derivative. Supports all elementary functions including trigonometric, exponential, and logarithmic.
Parameters
| Name | Description |
|---|---|
| f | Symbolic expression to differentiate |
| x | Variable to differentiate with respect to |
| n(optional) | Order of derivative (default: 1) |
Returns
Derivative expression