Derivative Calculator

Find the derivative of any function with AI-powered step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
x^3 + 2x^2 - 5x
sin(x) * cos(x)
e^(2x)
ln(x^2 + 1)

What is a Derivative?

A derivative measures the instantaneous rate of change of a function. For a function f(x)f(x), the derivative f(x)f'(x) is defined as:

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

Geometrically, the derivative at a point equals the slope of the tangent line to the function's graph at that point.

Common notations:

  • f(x)f'(x) — Lagrange notation
  • dydx\frac{dy}{dx} — Leibniz notation
  • y˙\dot{y} — Newton notation (used in physics)

Basic Derivative Rules

Power Rule

ddxxn=nxn1\frac{d}{dx} x^n = nx^{n-1}

Sum / Difference Rule

ddx[f(x)±g(x)]=f(x)±g(x)\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x)

Product Rule

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}[f(x) \cdot g(x)] = f'(x)g(x) + f(x)g'(x)

Quotient Rule

ddx[f(x)g(x)]=f(x)g(x)f(x)g(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}

Chain Rule

ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

Common Derivatives

FunctionDerivative
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
exe^xexe^x
lnx\ln x1x\frac{1}{x}
axa^xaxlnaa^x \ln a

Common Mistakes to Avoid

  • Forgetting the chain rule: When differentiating composite functions like sin(3x)\sin(3x), don't forget to multiply by the inner derivative (33).
  • Power rule sign errors: ddxx2=2x3\frac{d}{dx} x^{-2} = -2x^{-3}, not 2x1-2x^{-1}.
  • Confusing product and chain rules: (fg)=fg+fg(fg)' = f'g + fg' is the product rule; (fg)=f(g)g(f \circ g)' = f'(g) \cdot g' is the chain rule.
  • Forgetting constants: The derivative of a constant is 00, not 11.

Examples

Step 1: Apply power rule to each term: ddx(x3)=3x2\frac{d}{dx}(x^3) = 3x^2
Step 2: ddx(2x2)=4x\frac{d}{dx}(2x^2) = 4x, ddx(5x)=5\frac{d}{dx}(-5x) = -5, ddx(3)=0\frac{d}{dx}(3) = 0
Step 3: Combine: f(x)=3x2+4x5f'(x) = 3x^2 + 4x - 5
Answer: f(x)=3x2+4x5f'(x) = 3x^2 + 4x - 5

Step 1: Apply product rule: f(x)=cos(x)cos(x)+sin(x)(sin(x))f'(x) = \cos(x) \cdot \cos(x) + \sin(x) \cdot (-\sin(x))
Step 2: Simplify: f(x)=cos2(x)sin2(x)=cos(2x)f'(x) = \cos^2(x) - \sin^2(x) = \cos(2x)
Answer: f(x)=cos(2x)f'(x) = \cos(2x)

Step 1: Apply chain rule: outer function eue^u where u=2xu = 2x
Step 2: f(x)=e2xddx(2x)=e2x2f'(x) = e^{2x} \cdot \frac{d}{dx}(2x) = e^{2x} \cdot 2
Answer: f(x)=2e2xf'(x) = 2e^{2x}

Frequently Asked Questions

The power rule states that the derivative of x^n is n·x^(n-1). For example, the derivative of x³ is 3x².

Use the chain rule when differentiating composite functions — functions inside other functions, like sin(3x), e^(x²), or ln(2x+1). Multiply the outer derivative by the inner derivative.

A derivative finds the rate of change (slope) of a function, while an integral finds the accumulated area under a curve. They are inverse operations of each other.

Related Solvers

QuadraticStandard deviation
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving