Derivative (diff)
Derivative of an expression with respect to one or more variables.
With this function, the solver shows the steps whenever it finds them.
How to write it
diff(f, x)
The first derivative.
- f
- The expression or function to work on. Takes an expression.
- x
- The variable to differentiate by. Takes a variable.
diff(f, x, n)
The derivative of order n.
- f
- The expression or function to work on. Takes an expression.
- x
- The variable to differentiate by. Takes a variable.
- n
- The order: how many times to differentiate. Takes a whole number.
diff(f, x, y)
A mixed partial derivative.
- f
- The expression or function to work on. Takes an expression.
- x
- The first variable. Takes a variable.
- y
- The second variable. Takes a variable.
Examples
diff(sin(x^2), x)In the solver,
Open in the solverdiff(sin(x^2), x)gives2x*cos(x^2).diff(x^5, x, 2)In the solver,
Open in the solverdiff(x^5, x, 2)gives20x^3.diff(x^2 y, x, y)In the solver,
Open in the solverdiff(x^2 y, x, y)gives2x.
Functions its examples use
- sin
Sine of an angle in radians.
Related functions
- total_diff
Total derivative of an expression with respect to a variable.
- div
Divergence of a vector field.
- derivative
The derivative operator: derivative(n) is of order n, derivative(0, 1) is the partial in the second argument.
- grad
Gradient of an expression: the list of its partial derivatives.
- curl
Curl of a vector field in three variables.
- hessian
Hessian matrix of an expression: its second partial derivatives.