Derivative Calculator screenshot

Derivative Calculator

Differentiate an expression in x with the sum, product, quotient, power and chain rules, and print the simplified derivative.

Privacy First
0 Runs
Updated 2026-11-22
No upload
Instant
No signup

Derivative Calculator

Differentiate an expression in x with the sum, product, quotient, power and chain rules, and print the simplified derivative.

How this page computes

The parser builds an expression tree and differentiates each node with its own rule, then simplifies the tree before formatting. Nothing is guessed from a table of known answers.

The calculation runs entirely in this browser tab; nothing is uploaded.

The page parses an expression in x and applies the standard differentiation rules — sum, product, quotient, power and chain — then simplifies the result before printing it. Worked example: x^3 - 4*x + 7 differentiates to 3*x^2 - 4.

Supported input is + - * / ^, parentheses, sin, cos, tan, sec, exp, ln, sqrt and atan, with implicit multiplication such as 2x. Any other name is refused by name, so the page never prints a derivative it did not derive.

How to use the Derivative Calculator

Type or paste an expression in x, then press Run. The output restates the input and prints d/dx of it on the same line.

Use * for multiplication when in doubt; 2x and 2*x are read the same. A function needs parentheses, so write sin(x) rather than sin x.

The rules this page applies

Sums differentiate term by term, products use the product rule, quotients the quotient rule, and a power uses the power rule with the chain rule on its base. Those are the standard real-variable rules, applied to the tree the parser built.

The answer is simplified before it is printed, so x*x becomes x^2 and an added zero disappears. Simplification only rewrites the same function; it never changes which derivative was taken.

What to Expect

Best for

  • Checking a calculus homework derivative
  • Seeing the chain rule applied to a nested function
  • Getting a simplified slope expression

Not ideal for

  • Antiderivatives, which have their own page
  • Partial derivatives in several variables
  • A proof that a function is differentiable

What this tool keeps

  • The exact input expression and the simplified derivative

What may need cleanup

  • Nothing: the printed derivative is the final simplified form

Common errors

  • An unknown function name is refused with the supported list
  • A malformed expression is refused before differentiation starts

Example use cases

  • Differentiate x^3 - 4*x + 7
  • Check that sin(x^2) gives 2*cos(x^2)*x

Sample input

x^3 - 4*x + 7

Sample output

d/dx of x^3 - 4*x + 7 = 3*x^2 - 4

Who this is for

  • Students checking a derivative
  • Readers learning the chain rule

Frequently asked questions

Does the page show the steps?

No. It prints the input and the simplified derivative, not a line-by-line derivation. Every step is one of the standard rules named in the second guide, so the result can be checked by differentiating the answer back.

Which functions are supported?

sin, cos, tan, sec, exp, ln, sqrt and atan, with + - * / ^ and parentheses. Any other function name is refused rather than treated as a constant, because an unknown name has no derivative rule on this page.

How is the derivative simplified?

Like terms are collected, numeric factors are multiplied, repeated factors become powers and trivial identities such as x + 0 are removed. The rewrite is display-only: it preserves the function and therefore the derivative.

Is anything uploaded?

Nothing is uploaded. The expression is parsed and differentiated in this browser tab with JavaScript, and reloading the page discards both the input and the answer.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.