Processed online by Toolvito
Derivative Calculator
Type a function to get its derivative with the rule used for each piece (sum, product, quotient, chain and power rules). Higher-order and partial derivatives, implicit differentiation, the gradient and the tangent line at a point are here too, and every answer is checked numerically.
How to find a derivative
- Type the function, such as x^3 sin(x), e^(2x)/(x^2 + 1) or ln(x^2 + 1). A leading “y =” or “f(x) =” is allowed. The box below shows how it is read.
- For a higher derivative set Order. For a partial derivative type the letters under With respect to, such as x or x, y (first by x, then by y).
- Optional: type a point under At the point, such as 2 or x = 1, y = 2, for the value there and the tangent and normal lines.
- Select Differentiate. Read the steps, the answer and the check, and download the worked solution.
The rules in the steps
- Sum rule: (u + v)′ = u′ + v′. Constant multiple: (c·u)′ = c·u′. Power rule: (xⁿ)′ = n·xⁿ⁻¹.
- Product rule: (u·v)′ = u′·v + u·v′. Quotient rule: (u/v)′ = (u′·v − u·v′)/v². Chain rule: f(g(x))′ = f′(g(x))·g′(x).
- (eˣ)′ = eˣ, (aˣ)′ = aˣ·ln a, (ln x)′ = 1/x, (sin x)′ = cos x, (cos x)′ = −sin x, (tan x)′ = sec² x, (arctan x)′ = 1/(1 + x²).
- A variable power such as xˣ uses logarithmic differentiation: (uᵛ)′ = uᵛ·(v′·ln u + v·u′/u).
- Each step shows a piece of the function and its derivative, worked out by SymPy, so the steps always match the answer. The answer is then simplified.
Implicit differentiation and the gradient
- For a curve such as x^2 + y^2 = 25 or x^3 + y^3 = 6xy, choose Implicit differentiation: both sides are differentiated with y a function of x, then dy/dx is collected. With a point on the curve you get the slope and the tangent line; the second derivative d²y/dx² is available too.
- For a function of several letters, Gradient gives ∇f = (∂f/∂x, ∂f/∂y, …), its value and length at a point (the steepest rate of increase) and the directional derivative along a direction such as 1, 2, 2.
What you can type
- Numbers, letters, + − * /, ^ for powers (or x², x³), brackets, sqrt, cbrt, abs, exp, ln (natural logarithm), log (base 10), sin, cos, tan, sec, csc, cot, asin, acos, atan, sinh, cosh, tanh. e is 2.71828…, pi is π; angles are in radians.
- 2x means 2·x and sin x means sin(x). Write sin(2x + 1) with brackets for longer insides.
How the answer is checked
The derivative is compared with a numerical derivative of your original function (mpmath, 30-digit arithmetic) at several test points, which does not use any rule. An implicit derivative is also checked by solving the differentiated equation in a second way, and the slope at a point by following the curve itself.