Derivative Calculator
Differentiate a function of x step by step, then get its slope and tangent line at any point.
Result…
How it's calculated
Power rule: (xⁿ)′ = n xⁿ⁻¹ Product rule: (uv)′ = u′v + uv′ Quotient rule: (u/v)′ = (u′v − uv′)/v² Chain rule: f(g(x))′ = f′(g(x)) g′(x) Tangent at x₀: y = f(x₀) + f′(x₀)(x − x₀)
A symbolic derivative for powers and polynomials, sin, cos, tan, their inverses, sinh, cosh, tanh, e^x and aˣ, ln, log (base 10), log2, sqrt, cbrt and abs, combined by sums, products, quotients and the chain rule. log means base 10 and ln the natural log; angles are in radians. The value at the point is checked against a numeric central difference. floor, ceil, round and n! get the numeric slope only. The result is tidied (like terms and factors collected) but not fully factorised.
Your numbers, step by step
About the Derivative calculator
This derivative calculator differentiates a function of x symbolically and shows which rules it used: the power, product, quotient and chain rules, and the rule for each function such as sin, cos, tan, e^x, ln and sqrt. It then works out the derivative's value at a point you choose, the tangent line there, and the second derivative. As a check, the slope at the point is also found numerically with a central difference, so you can see that the symbolic answer and the numbers agree. It suits homework checks, revising the rules, and finding slopes and tangent lines quickly. If part of the input has no derivative rule here, like floor or round, it says so and gives the numeric slope instead. To see the curve and its turning points, use the graphing calculator.
How to use it
- Type your function in “f(x) =”, for example x^2 sin(x). Write powers with ^ and put function inputs in brackets.
- Enter the point in “At the point x =”. A number works, and so does a constant like pi/4.
- Read the derivative f′(x), then its value at the point, the tangent line and the second derivative.
- Compare f′ at the point with the numeric check: the two should agree to about 8 significant figures.
Worked example
For f(x) = x^2 sin(x), the product rule gives f′(x) = 2x sin(x) + x^2 cos(x). At x = 1, f(1) = 0.8414709848 and f′(1) = 2.223244275, so the tangent line is y = 2.223244275x − 1.381773291. The central-difference check also gives 2.2232443, and the second derivative is 2 sin(x) + 4x cos(x) − x^2 sin(x).
Updated
Questions people ask
How do I find the derivative of a product like x² sin x?
Use the product rule: (uv)′ = u′v + uv′. With u = x² and v = sin(x), that is 2x sin(x) + x² cos(x).
What is the chain rule in simple terms?
Differentiate the outside function, keep the inside as it is, then multiply by the derivative of the inside. For e^(x²) that gives e^(x²) × 2x.
How do I find the equation of a tangent line?
Work out y₀ = f(x₀) and the slope m = f′(x₀), then write y = y₀ + m(x − x₀). The calculator does this and simplifies it to y = mx + c.
Why does my answer look different from my textbook's?
The same derivative can be written in several equivalent ways, for example 1/cos(x)² and sec²(x). To check, put both forms into a calculator at the same x: equal values mean the answers match.
Does this calculator use radians or degrees?
Radians. The rule (sin x)′ = cos x only holds when x is in radians; in degrees an extra factor of π/180 appears.
What can't it differentiate?
floor, ceil, round and n! have no symbolic rule here, so you get a numeric slope instead. At a corner or a jump, such as abs(x) at 0, there is no single slope, and the calculator says so.