By · Updated

Derivative Calculator

Derivatives With Steps, Second Derivatives and Tangent Lines at Any Point

No ratings yet
Result

—

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Derivative Calculator works

This derivative calculator differentiates a function of x and shows which rule was used at each step: the power rule, product rule, quotient rule or chain rule. It can go on to the second and third derivatives, and if you give it a value of x it works out the slope there and the equation of the tangent line. It handles powers, roots, sin, cos, tan, e^x, ln and log.

A derivative measures how fast a function changes. For f(x) = x², the derivative 2x says that at x = 3 the curve is climbing 6 units up for every unit across. Where the derivative is 0 the curve is flat for an instant, which is how maximum and minimum points are found.

How the derivative calculator works

The calculator reads your function into a tree of operations, then applies one differentiation rule per node and tidies the result. The power rule formula is d/dx xⁿ = n·xⁿ⁻¹. Products use (uv)′ = u′v + uv′, quotients use (u/v)′ = (u′v − uv′)/v², and a function inside another uses the chain rule, multiplying by the derivative of the inside. The tangent line at x = a is y = f′(a)(x − a) + f(a).

First example. f(x) = x³ − 3x gives f′(x) = 3x² − 3. At x = 2 the slope is 9 and f(2) = 2, so the tangent line is y = 9x − 16.

Second example. f(x) = x² sin(x) needs the product rule: f′(x) = 2x·sin(x) + x²·cos(x).

How many turning points does x³ − 3x have? Set 3x² − 3 = 0 and x = 1 or −1, so two: a maximum at (−1, 2) and a minimum at (1, −2).

Values of f(x) = x^3 - 3x and f′(x) from x = −3 to 3

x f(x) f′(x)
-3 -18 24
-2.75 -12.546875 19.6875
-2.5 -8.125 15.75
-2.25 -4.640625 12.1875
-2 -2 9
-1.75 -0.109375 6.1875
-1.5 1.125 3.75
-1.25 1.796875 1.6875
-1 2 0
-0.75 1.828125 -1.3125
-0.5 1.375 -2.25
-0.25 0.734375 -2.8125
0 0 -3
0.25 -0.734375 -2.8125
0.5 -1.375 -2.25
0.75 -1.828125 -1.3125
1 -2 0
1.25 -1.796875 1.6875
1.5 -1.125 3.75
1.75 0.109375 6.1875
2 2 9
2.25 4.640625 12.1875
2.5 8.125 15.75
2.75 12.546875 19.6875
3 18 24

Tips

FAQ

What is the derivative of e^x?

e^x is its own derivative, which is what makes e special. With something inside, the chain rule multiplies by the inner derivative, so e^(3x) becomes 3e^(3x) and e^(x²) becomes 2x·e^(x²).

What does the second derivative tell you?

How the slope itself is changing. A positive second derivative means the curve bends upwards like a cup, a negative one means it bends down like a cap. At a turning point, a positive second derivative means a minimum and a negative one means a maximum.

What is the derivative of a constant?

Zero. A constant never changes, so its rate of change is nothing. That is why the + 7 in 3x⁴ − 2x + 7 disappears, leaving 12x³ − 2.

Why does the answer look different from my textbook?

The same derivative can be written in many equivalent ways, such as 2x/(x² + 1) or 2x·(x² + 1)⁻¹. Pick a value of x and compare: if both forms give the same number, they are the same answer.

See also: all Trigonometry and Calculus tools, Arithmetic, Number Theory, Algebra and Geometry, Statistics.

Related tools