πAI Math Solver

Calculators

Derivative Calculator

A derivative calculator with steps: type a function and get its derivative — power, product, and chain rules, each shown working.

Type a function, pick the variable, click Calculate.

Type or handwrite the full problem — the AI will solve it and explain every step

How to use this derivative calculator

Type a function, click Calculate. This derivative calculator gives exact derivatives instantly, right on the page.

  • Function to differentiate — the box comes pre-filled with x^3 + 2x. Replace it with any function, or tap an example button such as x^2, sin(x), e^x, or 1/x
  • With respect to — pick the variable you are differentiating with respect to: x, y, or t. Almost every problem in a first calculus course uses x

Click Calculate and the derivative calculator returns the derivative: for the pre-filled x3+2xx^3 + 2x it gives 3x2+23x^2 + 2 — the slope of the function at every point, computed exactly.

This page is more than a static derivative calculator — it is also an AI tutor you can ask questions. The question box under the form takes full questions, photos of the problem, and follow-ups:

  • Ask in plain words. “What is the derivative of x^3 + 2x, one step at a time?” The AI reads it and differentiates it with every rule named.
  • Take a photo of your homework. No typing: the AI reads the function and shows the full solution, step by step.
  • Ask about the ideas, not just the answer. “Why does the chain rule need an extra factor?” The AI explains step by step — every result still comes from the derivative calculator on this page, so nothing is guessed.
  • Work backwards, then keep asking. Give a derivative and ask which functions produce it. Follow-up questions are welcome: ask “why?” as often as you need — the derivative calculator page keeps teaching.

What a derivative is

A speedometer does something algebra cannot: it reports your speed at one exact instant. Ordinary rates compare two moments — 100 km over 2 hours — but a derivative measures change at a single point. That is the first reading: a derivative is an instantaneous rate of change.

The second reading is geometric. Draw a curve and zoom into one point: the more you zoom, the straighter the curve looks, and the slope of that line is the derivative there — the slope of the tangent line. Ask “how steep?” anywhere, and the derivative answers.

Both readings share one notation:

f′(x)=dydxf'(x)=\dfrac{dy}{dx}

SymbolHow to read it
f′(x)f'(x)“f prime of x” — the derivative of ff
dydx\dfrac{dy}{dx}a tiny change in yy divided by a tiny change in xx
f′(x)=2f'(x)=2at this point the function climbs 2 units for every 1 unit of xx

The sign tells direction: f′(x)>0f'(x) > 0 rising, f′(x)<0f'(x) < 0 falling, f′(x)=0f'(x) = 0 flat — a hilltop or a valley floor. Type any function into the derivative calculator above and read its steepness everywhere at once.

Rules the calculator applies

Every answer the derivative calculator produces is built from six short rules. Learn them once and you can differentiate almost anything by hand — and check it here.

The workhorse is the power rule:

ddxxn=n xn−1\dfrac{d}{dx}x^n=n\,x^{n-1}

Bring the exponent down in front, then knock the exponent down by one. It is why x3x^3 differentiates to 3x23x^2. Around it sit the supporting rules:

RuleFormulaIn words
Powerddxxn=n xn−1\dfrac{d}{dx}x^n = n\,x^{n-1}exponent down front, exponent minus one
Constantddxk=0\dfrac{d}{dx}k = 0plain numbers vanish — ddx(5)=0\dfrac{d}{dx}(5) = 0
Sum(u+v)′=u′+v′(u + v)' = u' + v'differentiate term by term
Constant multiple(ku)′=k u′(ku)' = k\,u'the coefficient rides along
Product(uv)′=u′v+uv′(uv)' = u'v + uv'two pieces, then add them
Chain(f(g(x)))′=f′(g(x))⋅g′(x)\left(f(g(x))\right)' = f'(g(x))\cdot g'(x)outer derivative times inner derivative

The last two deserve respect. The product rule handles two functions multiplied together. The chain rule handles functions inside functions — sin⁡(2x)\sin(2x) is sine with 2x2x nested inside, and Example 2 below works it through. When a derivative calculator answer looks longer than its input, one of these two rules is usually the reason.

Example 1 - power and sums

Differentiate x3+2xx^3 + 2x — the function pre-filled in the derivative calculator above.

  1. Split at the plus sign. The sum rule says differentiate each term on its own.
  2. Power rule on x3x^3: bring the 3 down front and drop the exponent to 2, giving 3x23x^2.
  3. Rewrite 2x2x as 2x12x^1: the power rule gives 2⋅1⋅x0=22 \cdot 1 \cdot x^0 = 2 — the coefficient simply survives.
  4. Add the pieces back:

ddx(x3+2x)=3x2+2\dfrac{d}{dx}\left(x^3+2x\right)=3x^2+2

Notice the input has no plain number to erase. Add one — say x3+2x+5x^3 + 2x + 5 — and the 5 contributes nothing: the derivative would still be 3x2+23x^2 + 2, because constants differentiate to 0.

Click Calculate on the derivative calculator above and it confirms 3x2+23x^2 + 2 instantly.

Example 2 - trig and the chain rule

Two more differentiations, both one click away in the derivative calculator.

The trig family. Type sin(x) and the derivative calculator returns cos⁡x\cos x:

ddx(sin⁡x)=cos⁡x\dfrac{d}{dx}(\sin x)=\cos x

Sine and cosine trade places as they differentiate — the pattern every calculus student memorizes first.

The chain rule appears. Now type sin(2x). This is not sine alone: it is sine with 2x2x nested inside, so the chain rule applies:

  1. Outer function first: the derivative of sin⁡\sin is cos⁡\cos, evaluated at the inner function — cos⁡(2x)\cos(2x).
  2. Times the inner derivative: the derivative of 2x2x is 22.
  3. Multiply:

ddx(sin⁡(2x))=2cos⁡(2x)\dfrac{d}{dx}\left(\sin(2x)\right)=2\cos(2x)

The factor of 2 is the whole point. Forget it and the answer is half right — literally. Type both functions into the derivative calculator above and watch the 2 appear the moment the inside stops being plain xx.

Three Common Derivative Calculator Mistakes

  1. Forgetting the inner derivative. The chain rule multiplies: ddxsin⁡(2x)=2cos⁡(2x)\dfrac{d}{dx}\sin(2x) = 2\cos(2x), not cos⁡(2x)\cos(2x). Any function with a function inside needs that extra factor — it is the most commonly lost point on calculus tests.
  2. Panicking at negative exponents. The power rule does not stop at positive powers. Write 1x\dfrac{1}{x} as x−1x^{-1} and differentiate: −x−2-x^{-2}. The minus sign is correct — do not “fix” it. The derivative calculator handles negative exponents exactly as it handles positive ones.
  3. Treating a constant like it differentiates to 1. Constants differentiate to 0, not 1. In x2+3x+5x^2 + 3x + 5, the 5 vanishes: the derivative is 2x+32x + 3, with no lone 1 hanging on the end. Check any answer from the derivative calculator above — constants never survive.
Problem 1

Differentiate 4x². Check your answer with the derivative calculator above.

⏱ 00:00
Page 1
Problem 2

Differentiate x² + 3x + 5. Check your answer with the derivative calculator above.

⏱ 00:00
Page 1

Frequently asked questions

1

How do I find the derivative of a function?

Match the function to a rule: powers take the power rule, products of functions take the product rule, and functions inside functions take the chain rule. Type it into the derivative calculator above — it picks the rule and returns the result, and the AI can walk you through why.

2

What is the power rule for derivatives?

$\dfrac{d}{dx}x^n = n\,x^{n-1}$ — bring the exponent down in front and subtract one from it. It turns $x^3$ into $3x^2$, and it works for negative and fractional exponents too. The derivative calculator applies it to every power it meets.

3

When do I need the chain rule?

Whenever a function sits inside another function, such as $\sin(2x)$. Differentiate the outer function, keep the inside unchanged, then multiply by the derivative of the inside: $2\cos(2x)$. The derivative calculator applies the chain rule automatically.

4

What is the derivative of sin(x)?

$\cos x$. The chain version follows the same pattern: $\dfrac{d}{dx}\sin(2x) = 2\cos(2x)$. Type either one into the derivative calculator above to confirm.

5

What does a derivative tell you?

How fast something changes at an instant — the slope of the tangent line at a point. Positive means rising, negative means falling, and zero means a flat spot like a hilltop. The derivative calculator computes that slope for every x at once.

Related practice