Index
Analytical calculation of derivative
Function diff (f,x) gives the derivative of the function f with respect to variable x.
Examples:
f=sin(2*x) diff(f,x) diff(2*a*x^3,x)
2*cos(2*x) 6*a*x^2
When you differentiate with respect to some variable, this variable should be undefined.
Otherwise ArtSGraph will, first, substitute value of variable and than differentiate the result
of substitution. The final result is 0, because function does not depend on the variable.
In general you can diffirentiate any expression. For example, you can find partial derifatives:
f=sin(2*x*y) diff(f,y) diff(2*a*x^3*y^2,x)
2*cos(2*x*y)*x 6*a*x^2*y^2
To compute derivatives of higher orders call diff recursively:
diff(diff(sin(x),x),x)
-sin(x)