derivative calculator
The derivative measures how fast a function changes. This calculator differentiates your function and names every rule it uses — power, product, quotient, chain and the standard derivatives — then checks the result against the function's slope.
Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas
✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).
step-by-step working
Product rule: (u·v)′ = u′·v + u·v′, with u = x² and v = sin(x).
d/dx (x²·sin(x)) = x²·cos(x) + 2x·sin(x)Power rule: d/dx xⁿ = n·xⁿ⁻¹.
d/dx x² = 2xStandard derivative: d/dx sin(u) = cos(u).
d/dx sin(x) = cos(x)
The rules
| Rule | Formula | Example |
|---|---|---|
| Power rule | d/dx xⁿ = n·xⁿ⁻¹ | d/dx x³ = 3x² |
| Constant multiple | d/dx [c·f] = c·f′ | d/dx 5x² = 10x |
| Sum rule | d/dx [f + g] = f′ + g′ | d/dx (x² + x) = 2x + 1 |
| Product rule | (uv)′ = u′v + uv′ | d/dx x·eˣ = eˣ + x·eˣ |
| Quotient rule | (u/v)′ = (u′v − uv′)/v² | d/dx sin(x)/x |
| Chain rule | d/dx f(g(x)) = f′(g(x))·g′(x) | d/dx sin(2x) = 2cos(2x) |
Worked examples
d/dx (x³ − 4x + 1)
✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).
step-by-step working
Sum rule: differentiate each term separately.
d/dx (x³ − 4x + 1) = 3x² − 4Power rule: d/dx xⁿ = n·xⁿ⁻¹.
d/dx x³ = 3x²Constant multiple rule: keep the constant −4 and differentiate x.
d/dx (−4x) = −4
d/dx (x²·e^x)
✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).
step-by-step working
Product rule: (u·v)′ = u′·v + u·v′, with u = x² and v = e^x.
d/dx (x²·e^x) = x²·e^x + 2x·e^xPower rule: d/dx xⁿ = n·xⁿ⁻¹.
d/dx x² = 2xExponential rule: d/dx eᵘ = eᵘ·u′.
d/dx e^x = e^xTidy up by taking out the common factor.
x²·e^x + 2x·e^x = e^x(x² + 2x)
d/dx ln(x² + 1)
✓ checked: the answer matches the slope of the original function at several sample points (numerical differentiation).
step-by-step working
Standard derivative: d/dx ln(u) = 1/u. Chain rule: multiply by the derivative of the inside, u = x² + 1.
d/dx ln(x² + 1) = 2x/(x² + 1)Sum rule: differentiate each term separately.
d/dx (x² + 1) = 2xPower rule: d/dx xⁿ = n·xⁿ⁻¹.
d/dx x² = 2x
Standard derivatives
| f(x) | f′(x) |
|---|---|
| sin x | cos x |
| cos x | −sin x |
| tan x | sec² x |
| eˣ | eˣ |
| aˣ | aˣ·ln a |
| ln x | 1/x |
| log₁₀ x | 1/(x·ln 10) |
| arcsin x | 1/√(1 − x²) |
| arctan x | 1/(1 + x²) |
Other variables and higher derivatives
Letters other than x are treated as constants, so d/dx aˣ = aˣ·ln(a). To differentiate with respect to another letter, type d/dt or add "with respect to t". For a second derivative, start with "second derivative of" or d^2/dx^2.
Common mistakes
- Forgetting the chain rule: d/dx sin(2x) is 2cos(2x), not cos(2x).
- Treating a product like a sum: d/dx (x·eˣ) is not 1·eˣ; you need the product rule.
- Using the power rule on eˣ or 2ˣ, where x is in the exponent. Those need the exponential rule.
- Mixing up the order in the quotient rule: it's u′v − uv′ on top, and the order matters because of the minus sign.
Common derivatives, worked out
- derivative of ln(x)
- derivative of e^x
- derivative of sin(x)
- derivative of cos(x)
- derivative of tan(x)
- derivative of sec(x)
- derivative of csc(x)
- derivative of cot(x)
- derivative of x²
- derivative of x³
- derivative of √x
- derivative of 1/x
- derivative of 1/x²
- derivative of x·ln(x)
- derivative of sin²(x)
- derivative of cos²(x)
- derivative of tan²(x)
- derivative of e^(2x)
- derivative of e^(−x)
- derivative of ln(x²)
- derivative of x·e^x
- derivative of arctan(x)
- derivative of arcsin(x)
- derivative of arccos(x)
- derivative of 2^x
- derivative of a^x
- derivative of log(x)
- derivative of x^x
- derivative of sin(2x)
- derivative of cos(3x)
- derivative of ln(ln(x))
- derivative of e^(x²)
- derivative of sin(x)·cos(x)
- derivative of sin(x)/x
Frequently asked questions
How is the answer checked?
The derivative is compared with the slope of the original function at several points, worked out numerically from tiny changes in x. If they don't agree, a warning is shown.
Why does my answer look different from the textbook's?
Derivatives can be written in several equivalent ways, like 2sin(x)cos(x) and sin(2x). Expand or simplify both forms, or plug in a number, to see that they match.
Can it do implicit differentiation?
Not yet. It differentiates an explicit function of one variable, such as y = x²·sin(x). Logarithmic differentiation is used automatically for functions like xˣ.
Does log mean ln?
No. Here log means base 10 and ln means the natural log (base e). Use log_2(x) for base 2.