Derivative Calculator

Enter a function of x and get its derivative, with every step of the working shown underneath. This derivative calculator handles polynomials, sin(x), cos(x) and e^x, using the power rule and the standard derivative rules.

How this calculator works

A derivative measures how fast a function changes. The power rule says d/dx x^n = n·x^(n−1): multiply by the exponent, then lower the exponent by one. For example, the derivative of x^3 is 3x^2.

Type your function into the box, using ^ for powers. The calculator splits it into terms and applies the right rule to each one. If a function is not supported yet, it says so instead of guessing an answer.

Worked examples

Example 1: d/dx (x^3) = 3x^2. The function has one term, x^3. The power rule gives 3 × x^(3 − 1) = 3x^2.

Example 2: d/dx (x^2 + 3x) = 2x + 3. Split the function into two terms: d/dx (x^2) = 2x and d/dx (3x) = 3. Add the results to get 2x + 3.

Example 3: d/dx (5) = 0. 5 is a constant, and the derivative of a constant is 0.

Example 4: d/dx (sin(x)) = cos(x). The derivative of sin(x) is cos(x). The derivative of cos(x) is −sin(x).

Frequently asked questions

What is a derivative?

A derivative is the rate at which a function changes. It gives the slope of the function’s graph at any point and tells you how fast the output grows as x increases.

How do I find the derivative of x^n?

Multiply by the exponent, then lower the exponent by one. For x^5, that gives 5x^4.

What is the power rule?

The power rule states that d/dx x^n = n·x^(n−1). It is the rule to use for every polynomial term.

What is the derivative of a constant?

Zero. A constant never changes, so its rate of change is 0. For example, d/dx (5) = 0 and d/dx (7) = 0.

What is the derivative of sin(x) and cos(x)?

The derivative of sin(x) is cos(x), and the derivative of cos(x) is −sin(x). For 3sin(x), the derivative is 3cos(x).

What is the derivative of e^x?

e^x. The derivative of e^x is e^x itself. For 2e^x, the derivative is 2e^x.

Related tools

  • Equation Solver — solve linear and quadratic equations with the discriminant and roots shown.
  • Statistics Calculator — find the mean, median, mode, range, variance and standard deviation of a list of numbers.
  • Online scientific calculator — the main CalcNova calculator with scientific, graphing, matrix, and fraction modes.
  • Fractions Calculator — add, subtract, multiply and divide two fractions, with the answer simplified, as a mixed number and as a decimal, with each step shown.