Guide: Derivative Calculator
What a derivative measures
The derivative f′(x) = lim(h→0) [f(x+h) − f(x)]/h is the instantaneous rate of change of f and the slope of the tangent line. For f(x) = x², f′(x) = 2x, so the tangent at x = 3 has slope 6.
Differentiation rules
Constants differentiate to 0. Power rule: (xⁿ)′ = n·xⁿ⁻¹. Constant multiple: (c·f)′ = c·f′. Sum: (f ± g)′ = f′ ± g′. Product: (f·g)′ = f′·g + f·g′. Quotient: (f/g)′ = (f′·g − f·g′)/g². Chain: (f(u))′ = f′(u)·u′. Standard derivatives include (sin x)′ = cos x, (cos x)′ = −sin x, (eˣ)′ = eˣ and (ln x)′ = 1/x.
Typing functions
Use ^ for powers, * or juxtaposition (2x) for multiplication and / for division. sqrt(x) or √x, abs(x) or |x|, ln(x) for the natural logarithm and log(x) for base 10; pi and e are constants. sinx^2 means sin(x²); write sin(x)^2 for the square of the sine. The “Interpreted as” line shows how your input was read.
How the steps are checked
Each box names one rule; d/dx[…] marks a part still to be differentiated, and nested steps work out those parts. If a shorter equivalent form exists it appears as a separate simplification step. Every derivative is compared with a numerical central difference at several points; a result that fails this check is never shown as steps. With several letters, the chosen variable gives a partial derivative and the other letters are treated as constants.
Worked examples
- Product rule: d/dx x2·sin(x) f′(x) = 2x·sin(x) + x2·cos(x)
- Chain rule: d/dx (x2 + 1)3 f′(x) = 6x·(x2 + 1)2
- Quotient rule: d/dx xx + 1 f′(x) = 1(x + 1)2
- Logarithm and chain rule: d/dx ln(x2 + 1) f′(x) = 2xx2 + 1
- Logarithmic differentiation: d/dx xx f′(x) = xx·(ln(x) + 1)
- Second derivative: (d²/dx²) x3 − 2x2 + 5 f″(x) = 6x − 4
Frequently asked questions
Is this derivative calculator free?
Yes. It runs in your browser, needs no account and does not send what you type to a server.
When do I use the product or quotient rule?
Use the product rule for products of two functions such as x²·sin x and the quotient rule for quotients such as x/(x+1). A constant factor only needs the constant multiple rule: (5x³)′ = 15x².
My answer looks different from the book. Which is right?
The same derivative can be written in different equivalent forms, e.g. 2sin x·cos x = sin 2x. The calculator checks each result numerically; plotting both expressions on the graphing calculator shows they coincide.
Can it find partial derivatives?
Yes. Choose the variable to differentiate with respect to; other letters are treated as constants. For x²y + y³ the derivative with respect to y is x² + 3y².
Related tools
Sources: OpenStax — Calculus Volume 1