What the derivative actually measures
The derivative of f at x is the slope of the curve at that single point. You get it by taking the slope of a secant line through two nearby points, [f(x+h) − f(x)] / h, and letting the gap h shrink to zero. If that limit exists, the secant lines settle onto one line — the tangent — and its slope is f′(x).
That definition is the whole subject in one sentence, but nobody differentiates by limits in practice. Every rule you learn is a shortcut proved once from the limit and then reused forever. The power rule handles x^n. The product and quotient rules handle things multiplied or divided. The chain rule handles a function wrapped inside another, which is where most homework errors live.
The derivative matters outside a mathematics class because it converts a description of a quantity into a description of how fast that quantity is changing. Position becomes velocity. Cost becomes marginal cost. Concentration becomes reaction rate. Whenever a model gives you a formula for a level, the derivative gives you the formula for its rate, and the rate is usually the thing you can control.
This calculator differentiates symbolically, meaning it manipulates the formula rather than sampling numbers. That distinction matters: a symbolic derivative is exact and valid at every point in the domain, while a numerical estimate is approximate and only valid where you sampled it. You get both here, which is the point of the check figure. Use the numerical derivative calculator when you have data points and no formula at all.
The four rules this calculator applies, and why they look the way they do
Power rule. d/dx x^n = n·x^(n−1). Multiply by the old exponent, then drop the exponent by one. It holds for every real n, not just positive integers, so sqrt(x) = x^0.5 differentiates to 0.5·x^(−0.5) = 1/(2√x), and 1/x = x^(−1) differentiates to −x^(−2).
Product rule. (fg)′ = f′g + fg′. The shape comes from the limit: when both factors move, the rectangle they define grows on two sides at once, so you get two terms. The most common error in a first calculus course is writing (fg)′ = f′g′, which fails on the simplest possible case — take f = g = x and it returns 1 instead of the correct 2x.
Quotient rule. (f/g)′ = (f′g − fg′)/g². Note the minus sign and the order: the numerator's derivative comes first. If you cannot remember it, rewrite the quotient as f·g^(−1) and use the product and chain rules instead. You get the same answer from rules you trust more.
Chain rule. d/dx f(g(x)) = f′(g(x))·g′(x). Differentiate the outside function, leave the inside untouched, then multiply by the derivative of the inside. Every missed factor of 2 in d/dx sin(2x) = 2cos(2x) is a chain rule somebody forgot to finish.
Everything else is a lookup: sin′ = cos, cos′ = −sin, tan′ = sec², (e^x)′ = e^x, (ln x)′ = 1/x. The calculator carries the same table, applies the chain rule around it, then collects like terms so the printed answer matches what a careful hand simplification gives.
Worked example: differentiating x³ − 5x² + 2x − 8 at x = 2
Take the default expression, f(x) = x³ − 5x² + 2x − 8, and differentiate it once.
- Split the sum. The derivative of a sum is the sum of the derivatives, so handle each term separately.
- First term.
d/dx x³ = 3·x² = 3x². - Second term. The constant multiple rides along:
d/dx (−5x²) = −5·(2x) = −10x. - Third term.
d/dx (2x) = 2·1 = 2. - Fourth term. The derivative of the constant
−8is0, because a constant function has no slope anywhere. - Assemble.
f′(x) = 3x² − 10x + 2. - Evaluate at x = 2.
3(2)² − 10(2) + 2 = 12 − 20 + 2 = −6.
So at x = 2 the curve is falling at six units of f per unit of x. Check it against the function value: f(2) = 8 − 20 + 4 − 8 = −16, so the tangent line there is y = −16 − 6(x − 2). Nudging x to 2.01 predicts −16.06, and the true value is f(2.01) = −16.0599 to four decimal places. That one-unit-in-the-fourth-place gap is the tangent line doing its job.
Now a product-rule case. For f(x) = x² sin x, the product rule gives f′(x) = 2x·sin x + x²·cos x. At x = 1 that is 2(0.8414710) + 1(0.5403023) = 1.6829420 + 0.5403023 = 2.2232443. That is the second test vector this calculator ships with, and you can reproduce every digit with a scientific calculator in radian mode.
How to read the number the calculator returns
The sign tells you direction. A positive derivative means f is increasing at that point, a negative one means it is decreasing, and zero means the tangent is horizontal — a candidate maximum, minimum or saddle. Zeros of f′ are exactly the critical points you hunt for in an optimisation problem, and the critical points calculator finds them for you.
The magnitude tells you steepness, in units. A derivative is never a bare number in an applied problem: it carries the units of f divided by the units of x. If f is metres and x is seconds, f′ = −6 means six metres per second downward, not "minus six".
The second derivative tells you bend. Set the order to 2 and you get f″, whose sign gives concavity: positive is concave up, negative is concave down. That is the whole content of the second derivative test, and it is what separates a maximum from a minimum once f′ has already hit zero.
The check figure should be tiny. The calculator differentiates a second time by finite differences and reports the gap. On a smooth stretch it lands near 1e−9. A visibly non-zero gap is a signal rather than a bug: it appears at corners such as abs(x) at zero, at vertical tangents such as cbrt(x) at zero, and near poles such as 1/x at zero — precisely the places where the derivative genuinely fails to exist or blows up.
Derivatives worth knowing by heart
| f(x) | f′(x) | Note |
|---|---|---|
x^n | n·x^(n−1) | Any real n |
sqrt(x) | 1/(2·sqrt(x)) | The n = 1/2 case |
1/x | −1/x² | The n = −1 case |
e^x | e^x | Its own derivative |
a^x | a^x·ln a | Reduces to e^x when a = e |
ln x | 1/x | x > 0 |
log x (base 10) | 1/(x·ln 10) | ln 10 = 2.302585 |
sin x | cos x | Radians only |
cos x | −sin x | Radians only |
tan x | sec² x | Undefined at odd multiples of π/2 |
asin x | 1/sqrt(1 − x²) | Needs |x| < 1 |
atan x | 1/(1 + x²) | Defined everywhere |
sinh x | cosh x | No sign flip, unlike sin |
Trigonometric derivatives are stated for radians. In degrees every one of them picks up a factor of π/180, which is why calculus is done in radians.
Mistakes that turn a correct method into a wrong answer
- Dropping the inside derivative.
d/dx sin(3x)is3cos(3x), notcos(3x). Whenever the argument of a function is anything other than a bare variable, the chain rule owes you a factor. - Differentiating a product factor by factor.
(fg)′is notf′g′. Test any suspicious rule onf = g = x: if it does not return2x, discard it. - Reversing the quotient rule numerator. It is
(f′g − fg′), not(fg′ − f′g). Getting it backwards flips the sign of every slope you compute. - Working in degrees. The rule
sin′ = cosis only true in radians. A trigonometric derivative computed in degree mode is wrong by a factor of about 57.3. - Treating a parameter as a variable. If your expression contains a letter other than the one you selected, this calculator treats it as a constant, exactly as a hand calculation would. Check the differentiation variable before trusting the answer.
- Differentiating at a point where f is undefined.
ln xhas derivative1/x, but neither f nor f′ means anything atx = 0or below. The calculator returns a blank rather than a fabricated number.
What this calculator does not do
It differentiates one variable at a time. If your expression contains two variables, everything except the one you select is frozen — that is a partial derivative, and if you want it labelled and explained as one, use the partial derivative calculator instead. If the variables are tangled in an equation you cannot solve for y, you need implicit differentiation.
It also has no rule for functions outside the standard library listed in the table above. Feed it a gamma function or a Bessel function and it says so, then falls back to a numerical estimate rather than inventing a formula.
Simplification is deliberate but modest: the calculator folds constants, cancels zeros and ones, and collects identical terms, but it does not factor, expand or apply trigonometric identities. So 2sin(x)cos(x) stays as it is rather than becoming sin(2x). Both are correct; only one is prettier, and guessing which form your instructor wants is not something software should do.
Finally, a symbolic derivative says nothing about where the derivative is valid. d/dx abs(x) = x/abs(x) is right for every x except zero, where no derivative exists at all. The check figure is your warning light for that case.
Where differentiation sits among the tools next to it
Differentiation is one half of calculus; antidifferentiation is the other, and the Fundamental Theorem is the statement that they undo each other. If you want to sanity-check an integral, differentiate the answer and see whether the integrand comes back — this site's integral calculator does exactly that automatically.
Once you have f′, several standard jobs open up. The tangent line calculator turns the slope into a line and a linear approximation. L'Hôpital's rule uses derivatives to resolve limits of the form 0/0. Newton's method uses the derivative to chase a root. Taylor series stack derivatives of every order to approximate a function by a polynomial.
For a function known only from measurements there is no formula to differentiate, and you fall back to finite differences on the data. That is a different trade: exact arithmetic on approximate data, rather than approximate arithmetic on an exact formula. Noise in the data is amplified by differentiation, which is why smoothing usually comes first in a laboratory context.
