Differentiation Calculator
Find the derivative of any function instantly — with full step-by-step working. Supports power, product, quotient and chain rules, plus trig, exponential and logarithmic functions.
Differentiation Calculator
Enter a function in terms of x to differentiate
Use ^ for powers, * for multiply, sqrt(x), sin(x), ln(x), e^x
First derivative is dy/dx; second is d²y/dx²; third is d³y/dx³
Optional: enter a value of x to calculate a numerical result for f′(x)
Derivative Result
Step-by-step differentiation working
Enter a function above and click Differentiate to see the derivative with full step-by-step working and rule identification.
Differentiation Rules
The core rules used to differentiate any function. This calculator identifies and applies the appropriate rule for each term.
d/dx [x½] = ½x⁻½
d/dx [e^f(x)] = f′(x)·e^f(x)
d/dx [ln f(x)] = f′(x)/f(x)
d/dx [cos x] = −sin x
d/dx [tan x] = sec²x
d/dx [c·f(x)] = c·f′(x)
d/dx [f±g] = f′±g′
How to Use the Differentiation Calculator Full Walkthrough
What this calculator does
A reliable method for differentiation saves effort every time you return to it. The Differentiation Calculator on this page behaves consistently from one visit to the next, so identical inputs always give identical results.
Who it helps
Professionals brushing up on skills, school and college students and parents helping with homework often turn to calculators like this one. Matching your own situation to the inputs takes only a moment, and you can repeat the process whenever your circumstances change. It often comes into play when revising before an exam, testing different values quickly and teaching a concept visually, because a reliable figure for differentiation prevents costly second-guessing.
Getting accurate results
A few habits make differentiation far more reliable. First, write out your own working first. Second, check whether angles use degrees or radians. Finally, run your numbers twice with slightly different assumptions so you can see a range of possible outcomes rather than relying on a single figure.
Mistakes to avoid
Even careful users sometimes trip over using degrees instead of radians, or end up rounding intermediate steps. Build a short pause into your routine to look for them, and your figures for differentiation will hold up much better.
Reading your result
A good habit is to sense-check every answer. Ask whether it is the right size, whether differentiation and maths have been entered sensibly, and whether rounding could be hiding something important. Share the page with colleagues, friends or family if they are working through differentiation as well. Because the calculation runs instantly in your browser, you can test as many scenarios as you like without any limit. We update our tools regularly, so check back for improvements to differentiation and related maths calculators. Bookmark this page so the Differentiation Calculator is always one tap away when you need it again.
A note on accuracy
Please treat the outcome from the Differentiation Calculator as a helpful estimate. Your own circumstances may differ, so verify key figures with a trusted source before relying on them for a major decision.
Worked Examples: Differentiation Rules
Power rule: the derivative of x³ is 3x². In general, the derivative of xⁿ is n×xⁿ⁻¹.
Sum rule: differentiate term by term. The derivative of 3x² + 2x − 5 is 6x + 2. Constants disappear: the derivative of −5 is 0.
Chain rule: for (2x + 1)³, differentiate the outside first, then multiply by the derivative of the inside: 3(2x + 1)² × 2 = 6(2x + 1)².
Product rule: the derivative of x² · sin x is 2x · sin x + x² · cos x. Differentiate the first factor times the second, plus the first times the derivative of the second.
Quotient rule: the derivative of (x² + 1) / x is [(2x)(x) − (x² + 1)(1)] / x² = (x² − 1) / x².
Derivatives at a Point
To find the gradient of a curve at one point, differentiate the function and substitute the x-value. Example: f(x) = x² + 3x. Then f′(x) = 2x + 3, so at x = 2 the gradient is f′(2) = 2 × 2 + 3 = 7. That number is the slope of the tangent to the curve at the point (2, 10).
Higher-Order Derivatives
Differentiate again to get the second derivative, written f′′(x). Example: f(x) = x³. First derivative: f′(x) = 3x². Second derivative: f′′(x) = 6x. At x = 2, f′′(2) = 12. The second derivative tells you about curvature: positive means the curve is bending upwards, negative means it is bending downwards, and zero can mark a point of inflection.
Differentiation Rules Reference Table
| Function | Derivative |
|---|---|
| Constant c | 0 |
| xⁿ | n×xⁿ⁻¹ |
| eˣ | eˣ |
| ln x | 1/x |
| sin x | cos x |
| cos x | −sin x |
| tan x | sec² x |
| a×f(x) | a×f′(x) |
| f(x) + g(x) | f′(x) + g′(x) |
| f(x) × g(x) | f′(x)g(x) + f(x)g′(x) |
| f(x) / g(x) | [f′(x)g(x) − f(x)g′(x)] / g(x)² |
| f(g(x)) | f′(g(x)) × g′(x) |
Real-Life Applications of Derivatives
- Motion: if distance is a function of time, its derivative is velocity, and the derivative of velocity is acceleration.
- Optimisation: a derivative of zero marks a maximum or minimum — the cheapest container shape, the largest field for a fixed fence, the fastest route.
- Economics: marginal cost and marginal revenue are derivatives of total cost and total revenue; a business uses them to find the most profitable output.
- Growth and decay: population growth, radioactive decay and compound interest are all described by differential equations.
- Engineering: the gradient of a road, the rate of change of temperature in a material, and the slope of a beam under load are all derivatives.
Common Mistakes to Avoid
- Forgetting the chain rule: the derivative of (2x + 1)³ is 6(2x + 1)², not 3(2x + 1)² — the ×2 from the inside is easy to miss.
- Differentiating a constant as if it were x: the derivative of 5 is 0, not 1.
- Power rule on the wrong exponent: the derivative of x² is 2x, not x² — the exponent comes down and drops by one.
- Mixing up the product and quotient rules: the quotient rule has a minus sign and a squared denominator; the product rule has a plus sign and no denominator.
- Stopping at the first derivative: a question asking for the gradient at a point needs a number — substitute the x-value after differentiating.
Differentiation FAQ
Everything you need to know about finding derivatives and applying differentiation rules.
Differentiation is the process of finding the derivative of a function. The derivative measures how fast a function's output changes as its input changes. If f(x) is a function, its derivative f′(x) (also written dy/dx) gives the slope of the tangent line to the curve at any point x. Differentiation is fundamental to calculus and is used in physics, engineering, economics, and any field involving rates of change.
The power rule states: if f(x) = xⁿ, then f′(x) = n·xⁿ⁻¹. For example, the derivative of x³ is 3x², and the derivative of x⁵ is 5x⁴. The rule applies to any real exponent, including fractions and negatives — for example, the derivative of √x = x^(½) is ½x^(-½), and the derivative of 1/x = x⁻¹ is −x⁻².
The chain rule differentiates composite (nested) functions. If y = f(g(x)), then dy/dx = f′(g(x)) × g′(x). In plain words: differentiate the outer function leaving the inner unchanged, then multiply by the derivative of the inner function. For example, to differentiate sin(x²): outer = sin, inner = x². Derivative = cos(x²) × 2x = 2x·cos(x²).
The product rule applies when differentiating two functions multiplied together. If y = u(x)·v(x), then dy/dx = u′v + uv′. Differentiate the first and multiply by the second, then add the first multiplied by the derivative of the second. For example, to differentiate x²·sin(x): dy/dx = 2x·sin(x) + x²·cos(x).
The quotient rule differentiates a ratio of two functions. If y = u(x)/v(x), then dy/dx = (u′v − uv′) / v². A helpful mnemonic is "lo d-hi minus hi d-lo, over lo squared". For example, to differentiate sin(x)/x²: dy/dx = (cos(x)·x² − sin(x)·2x) / x⁴, which simplifies to (x·cos(x) − 2sin(x)) / x³.
The standard trig derivatives to memorise: d/dx(sin x) = cos x, d/dx(cos x) = −sin x, d/dx(tan x) = sec²x, d/dx(cosec x) = −cosec x·cot x, d/dx(sec x) = sec x·tan x, d/dx(cot x) = −cosec²x. These are commonly combined with the chain rule for composite functions such as sin(3x) or cos(x²).
The derivative of eˣ is eˣ — it is the only function that equals its own derivative. The derivative of ln(x) is 1/x (for x > 0). With the chain rule: d/dx[e^f(x)] = f′(x)·e^f(x) and d/dx[ln(f(x))] = f′(x)/f(x). These rules appear constantly in growth models, physics and statistics.
The first derivative f′(x) gives the rate of change (slope) of the original function. The second derivative f″(x) is the derivative of f′(x) — it measures the concavity (curvature). If f″(x) > 0, the curve is concave up; if f″(x) < 0, it is concave down. The second derivative test classifies stationary points: f″ > 0 means local minimum, f″ < 0 means local maximum.
