Math & Education
Derivative Calculator
Differentiate any function of x symbolically — polynomials, trig, exponentials, logs and products — and evaluate the derivative at a point.
How to use
- 1Type a function of x, e.g. x^2 * sin(x) or exp(2x)/x.
- 2Optionally enter a value of x to evaluate the derivative there.
How it's calculated
Uses the standard rules — power, product, quotient and chain rules — applied symbolically, then simplified. Second derivative = derivative of the first.
Frequently asked questions
How do I write functions?
Use ^ for powers, * for multiplication (2x also works), sqrt(), exp(), log() for natural log, and sin, cos, tan.
Does it show steps?
It shows the derivative and second derivative. Step-by-step working is on our roadmap.
Can it do partial derivatives?
Differentiate with respect to another variable by choosing it in the 'with respect to' field; other letters are treated as constants.
A worked example: the power rule and evaluating at a point
For f(x) = x³, the power rule gives f′(x) = 3x² directly — this tool returns exactly that, written as '3 * x ^ 2'. Asking it to evaluate at x = 2 plugs that value into the derivative, not the original function: 3 × 2² = 12, which is the slope of the tangent line to y = x³ at the point (2, 8) — not the height of the curve there.
Why x² sin(x) needs the product rule
For f(x) = x² sin(x), the derivative isn't just 2x cos(x) — it's 2x sin(x) + x² cos(x), because differentiating a product of two functions means differentiating each one in turn while holding the other fixed, then adding the results: (x²)′ sin(x) + x² (sin x)′. Forgetting the second term is one of the most common calculus mistakes, and it's exactly the kind of case a symbolic engine like this one handles automatically rather than needing you to memorize which rule applies.
The second derivative and what it tells you
f″(x) — the derivative of the derivative — is simplified after being computed, since differentiating twice often produces an expression with terms that can be combined. It describes concavity: where f″(x) > 0 the curve bends upward (like the bottom of a bowl), and where it's negative the curve bends downward, which is how inflection points and local extrema are identified in calculus beyond just finding where the slope is zero.
Change the letter to t and x³ becomes a constant
With respect to has to be a single letter. Anything else stops with The variable should be a single letter. Leave it blank and the derivative is taken with respect to x. Every other letter is treated as a constant. The derivative of x^3 with respect to t is 0, because t never appears. The derivative of x*t with respect to t is x. Evaluate at is optional. Leave it empty and you only see the two formulas. Type a number and you also get the slope from the first derivative at that point, shown with up to six digits after the decimal. For x^3 at 2, that slope is 12. A formula that cannot be differentiated stops with Couldn't differentiate and the reason.
The first derivative keeps the multiplication signs and carets
f′ is written out with spaces around the times signs and the carets. x^3 appears as 3 * x ^ 2. x^2 * sin(x) appears as 2 * x * sin(x) + x ^ 2 * cos(x). The second derivative is simplified before it is shown. For x^2 * sin(x) that line is 2 * (2 * x * cos(x) + sin(x)) - x ^ 2 * sin(x). The number next to Evaluate at comes from the first derivative, so it can be a plain decimal like 12 while the formulas above it still use * and ^.
Related tools
- Integral Calculator (Definite & Antiderivative)
Compute definite integrals of any function numerically to high precision, and get the exact antiderivative of polynomials — the area under a curve in seconds.
- Limit Calculator
Find the limit of a function as x approaches a number or infinity — checks the left- and right-hand limits and spots infinite limits and limits that don't exist.
- Equation Solver (Linear & Quadratic)
Solve linear and quadratic equations in x — typed naturally like 3x + 5 = 2x - 7 or x^2 - 5x + 6 = 0 — with the discriminant, vertex and real or complex roots.
- Polynomial Factoring Calculator
Factor polynomials with integer coefficients — common factors, rational roots, difference of squares and irreducible quadratics — and list all the roots.
- Slope, Distance & Midpoint Calculator
Find the slope, line equation (y = mx + b), distance, midpoint and angle between two points on a coordinate plane.
- UK Degree Classification Calculator
Estimate your UK degree classification — First, 2:1, 2:2 or Third — from your module marks and credits and your university's year weightings.