Derivative Calculator

Our Derivative Calculator is a powerful symbolic differentiation tool that computes exact derivatives with detailed step-by-step explanations. Enter any mathematical function and get the derivative immediately, with each differentiation rule clearly shown. Supports all standard calculus functions including polynomials, sine, cosine, tangent, exponentials, natural logarithms, and more. Perfect for calculus students, engineers, and anyone needing to differentiate functions quickly.

star 4.9
auto_awesome AI
New

Derivative Calculator calculator

Use ^ for powers, * for multiplication
f'(x) =
3x² + 4x − 5
Rules Applied

functions Key Derivative Rules

xⁿ n·xⁿ⁻¹
sin(x) cos(x)
cos(x) −sin(x)
tan(x) sec²(x)
ln(x) 1/x
√x 1/(2√x)
aˣ·ln(a)

rule Combination Rules

Sum / Difference
(u ± v)' = u' ± v'
Product Rule
(uv)' = u'v + uv'
Quotient Rule
(u/v)' = (u'v−uv')/v²
Chain Rule
[f(g(x))]' = f'(g)·g'

lightbulb Input Syntax

  • ^ for power: x^3 = x³
  • * or implicit: 3x or 3*x
  • e = Euler's number ≈ 2.718
  • pi = π ≈ 3.14159
  • Functions: sin, cos, tan, ln, sqrt, exp...

How to Use the Derivative Calculator

1

Enter Your Function

Type the function you want to differentiate, e.g., x^3 + 2*x^2 - 5 or sin(x)*e^x

2

Select Variable

Choose the variable to differentiate with respect to (x, y, t, or n)

3

Choose Derivative Order

Select 1st, 2nd, or 3rd order derivative

4

View Result with Steps

See the derivative and the step-by-step solution showing which rules were applied

The Formula

Differentiation finds the instantaneous rate of change of a function. Key rules: Power Rule d/dx(xⁿ) = nxⁿ⁻¹, Product Rule d/dx(uv) = u'v + uv', Quotient Rule d/dx(u/v) = (u'v − uv')/v², Chain Rule d/dx[f(g(x))] = f'(g(x))·g'(x).

d/dx[f(x)] — Apply differentiation rules

lightbulb Variables Explained

  • f(x) The function to differentiate
  • f'(x) The first derivative (rate of change)
  • f''(x) The second derivative (rate of change of rate of change)
  • x The variable of differentiation

tips_and_updates Pro Tips

1

Use ^ for exponents: x^2 means x²

2

Use * for multiplication: 3*x or just 3x (implicit multiplication supported)

3

Supported functions: sin, cos, tan, sec, csc, cot, arcsin, arccos, arctan, exp, ln, log, sqrt, abs

4

Use 'e' for Euler's number (≈ 2.718) and 'pi' for π (≈ 3.14159)

5

Chain Rule is applied automatically: d/dx(sin(2x)) = 2cos(2x)

6

For the second derivative, select order 2 — it differentiates the result again

Differentiation is one of the two fundamental operations in calculus, measuring how a function changes as its input changes. Derivatives appear everywhere in science and engineering — velocity is the derivative of position, acceleration is the derivative of velocity, marginal cost is the derivative of total cost, and the slope of a tangent line is the derivative of the curve at that point. Calculus students spend significant time learning differentiation rules: the power rule, product rule, quotient rule, chain rule, and the derivatives of trigonometric, exponential, and logarithmic functions. While mastering these rules is essential, verifying answers and understanding the step-by-step process is equally important for building intuition. This derivative calculator performs symbolic differentiation on any function you enter, supporting polynomials, rational functions, trigonometric functions (sin, cos, tan, sec, csc, cot), exponential and logarithmic functions, and compositions of all these via the chain rule. It shows each differentiation step with the rule applied, computes higher-order derivatives up to the fifth order, and evaluates the derivative at any specified point.

What is a Derivative Calculator?

A derivative calculator is a tool that applies calculus differentiation rules automatically to find the exact derivative of any mathematical function.

Instead of manually applying the Power Rule, Chain Rule, Product Rule, or Quotient Rule, you simply enter your function and get the answer instantly with full step-by-step working.

Differentiation Rules Explained

Our calculator applies these rules automatically and shows you exactly which rule was used at each step:

  • The Power Rule (d/dx xⁿ = nxⁿ⁻¹) handles polynomials.
  • The Chain Rule handles composite functions.
  • The Product and Quotient Rules handle multiplication and division of functions.

What Is a Derivative and How Does Differentiation Work?

A derivative measures the instantaneous rate of change of a function — the slope of the line tangent to its graph at a single point.

Formally, the derivative f'(x) is the limit of the difference quotient [f(x+h) − f(x)] / h as h approaches 0. When that limit exists, the function is differentiable at x. As Wolfram MathWorld notes, the derivative is the foundational object of differential calculus.

Geometrically, if you zoom infinitely close to a smooth curve it looks like a straight line, and the derivative gives that line's slope. Physically, if f(x) is position, then f'(x) is velocity — how fast position changes at each instant.

The Core Differentiation Rules: Power, Product, Quotient, and Chain

Four rules cover most differentiation:

  • The Power Rule: d/dx(xⁿ) = n·xⁿ⁻¹, so d/dx(x⁴) = 4x³.
  • The Product Rule: d/dx(u·v) = u'v + uv'.
  • The Quotient Rule: d/dx(u/v) = (u'v − uv')/v².
  • The Chain Rule for composites: d/dx[f(g(x))] = f'(g(x))·g'(x).

Khan Academy's differentiation course walks through each with worked examples. For instance, d/dx(x²·sin x) = 2x·sin x + x²·cos x by the Product Rule. These rules combine freely with the Sum Rule, which lets you differentiate a polynomial term by term.

How to Find a Derivative Step by Step

To differentiate f(x) = x³ + 2x² − 5x + 3, apply the Sum Rule and handle each term with the Power Rule: d/dx(x³) = 3x², d/dx(2x²) = 4x, d/dx(−5x) = −5, and d/dx(3) = 0 because constants have zero rate of change. Adding these gives f'(x) = 3x² + 4x − 5.

For composite functions like sin(2x), use the Chain Rule: the outer derivative cos(2x) times the inner derivative 2 gives 2·cos(2x). This calculator reproduces exactly this decomposition, labeling each rule so you can check your own hand computation against a verified result.

Derivatives of Trigonometric, Exponential, and Logarithmic Functions

Beyond polynomials, standard functions have memorized derivatives.

For trigonometry: d/dx(sin x) = cos x, d/dx(cos x) = −sin x, and d/dx(tan x) = sec²x, as tabulated in the NIST Digital Library of Mathematical Functions (DLMF). The exponential function is uniquely self-derivative: d/dx(eˣ) = eˣ. The natural logarithm gives d/dx(ln x) = 1/x for x > 0.

Combined with the Chain Rule, these extend easily: d/dx(e^(2x)) = 2e^(2x) and d/dx(ln(x²)) = 2/x. Encyclopaedia Britannica describes these elementary derivatives as the building blocks that, together with the four rules, differentiate nearly any expression you meet in calculus.

What Is the Second Derivative and Higher-Order Derivatives?

The second derivative f''(x) is simply the derivative of the first derivative, and it measures how the rate of change itself changes. If f(x) is position, f'(x) is velocity and f''(x) is acceleration. For f(x) = x³, the first derivative is 3x², and differentiating again gives f''(x) = 6x.

The second derivative also reveals concavity: f''(x) > 0 means the curve bends upward (concave up), while f''(x) < 0 means concave down, and a sign change marks an inflection point.

Continuing this process yields third, fourth, and higher-order derivatives, written f'''(x) or f⁽ⁿ⁾(x). This tool computes higher-order derivatives by repeated symbolic differentiation.

Real-World Uses of Derivatives in Science and Engineering

Derivatives quantify change wherever it occurs:

  • In physics, velocity is the derivative of position and acceleration is the derivative of velocity — the framework Newton and Leibniz built, as Encyclopaedia Britannica recounts.
  • In economics, marginal cost and marginal revenue are derivatives of total cost and total revenue functions.
  • In optimization, setting f'(x) = 0 locates maxima and minima, which powers everything from engineering design to machine-learning gradient descent.
  • In biology, continuous growth rates of populations are modeled with derivatives, whereas the classic discrete rabbit-breeding sequence behind our fibonacci calculator captures growth generation by generation.
  • Even curve tracing in computer graphics relies on tangent slopes.

Understanding differentiation therefore unlocks a huge range of applied problems across the sciences, finance, and technology.

How to Use Derivatives to Find Maxima, Minima, and Slopes

Because a derivative gives the slope of the tangent line, you can find where a function levels off by solving f'(x) = 0; these are the critical points.

Khan Academy's calculus curriculum teaches the first-derivative test: if f' changes from positive to negative at a critical point, that point is a local maximum; from negative to positive gives a local minimum. The second derivative offers a shortcut — the second-derivative test — where f''(x) < 0 confirms a maximum and f''(x) > 0 confirms a minimum.

To find the slope of a curve at a specific point, simply evaluate f'(x) at that x-value, which this calculator does automatically when you supply an evaluation point.

Common Mistakes When Calculating Derivatives

Several errors trip up students most often:

  • The most frequent error is forgetting the Chain Rule's inner derivative: d/dx(sin(2x)) is 2·cos(2x), not cos(2x).
  • Another is misapplying the Power Rule to exponentials — d/dx(eˣ) = eˣ, not x·eˣ⁻¹.
  • Many students confuse the Product Rule with simply multiplying derivatives; d/dx(u·v) is u'v + uv', not u'·v'.
  • Sign errors are common with d/dx(cos x) = −sin x.
  • Constants inside functions are sometimes dropped, and dividing before differentiating a quotient can invert the Quotient Rule's numerator order.

Wolfram MathWorld's worked examples are a good cross-check. Whenever a hand result disagrees with this calculator's step-by-step output, one of these slips is usually the cause.

Symbolic vs Numerical Differentiation: Which Does This Calculator Use?

This tool performs symbolic differentiation, meaning it manipulates the algebraic expression itself to return an exact formula such as 3x² + 4x − 5, rather than approximating a slope numerically.

Numerical differentiation instead estimates f'(x) with finite differences like [f(x+h) − f(x)] / h for a small h, which introduces rounding and truncation error. Symbolic results are exact and reusable — you can differentiate again or evaluate at any point without accumulating error.

Symbolic computation is the approach used by computer-algebra systems and described in the NIST DLMF for closed-form results. For exact homework answers, tangent-line slopes, and higher-order derivatives, symbolic differentiation is the reliable choice this calculator provides.

Frequently Asked Questions

sell

Tags