◎ English

Derivative Calculator

Type a function and see every rule used to differentiate it: sum, constant multiple, power, product, quotient and chain rules, plus the derivatives of trigonometric, exponential and logarithmic functions. It also finds second and higher derivatives and the value of the derivative at a point.

Example: x^2*sin(x), (x+1)/(x-1), e^(2x), sqrt(x), ln(x). Use * or write factors side by side (2x).

Interpreted as: x2·sin(x)

Example: 2, pi/4. Leave empty to get only the derivative.

Examples

Calculations run in your browser; what you type is not sent to a server.

Result
f′(x) = 2x·sin(x) + x2·cos(x)

Step-by-step solution

  1. Product rule (f·g)′ = f′·g + f·g′

    d/dx[x2·sin(x)] = d/dx[x2]·sin(x) + x2·d/dx[sin(x)]

    1. Power rule (xn)′ = n·xn−1

      d/dx[x2] = 2x2 − 1

      = 2x

    2. Standard derivative (sin x)′ = cos x

      d/dx[sin(x)] = cos(x)

      = cos(x)

    = 2x·sin(x) + x2·cos(x)

Guide: Derivative Calculator

What a derivative measures

The derivative f′(x) = lim(h→0) [f(x+h) − f(x)]/h is the instantaneous rate of change of f and the slope of the tangent line. For f(x) = x², f′(x) = 2x, so the tangent at x = 3 has slope 6.

Differentiation rules

Constants differentiate to 0. Power rule: (xⁿ)′ = n·xⁿ⁻¹. Constant multiple: (c·f)′ = c·f′. Sum: (f ± g)′ = f′ ± g′. Product: (f·g)′ = f′·g + f·g′. Quotient: (f/g)′ = (f′·g − f·g′)/g². Chain: (f(u))′ = f′(u)·u′. Standard derivatives include (sin x)′ = cos x, (cos x)′ = −sin x, (eˣ)′ = eˣ and (ln x)′ = 1/x.

Typing functions

Use ^ for powers, * or juxtaposition (2x) for multiplication and / for division. sqrt(x) or √x, abs(x) or |x|, ln(x) for the natural logarithm and log(x) for base 10; pi and e are constants. sinx^2 means sin(x²); write sin(x)^2 for the square of the sine. The “Interpreted as” line shows how your input was read.

How the steps are checked

Each box names one rule; d/dx[…] marks a part still to be differentiated, and nested steps work out those parts. If a shorter equivalent form exists it appears as a separate simplification step. Every derivative is compared with a numerical central difference at several points; a result that fails this check is never shown as steps. With several letters, the chosen variable gives a partial derivative and the other letters are treated as constants.

Worked examples

  • Product rule: d/dx x2·sin(x) f′(x) = 2x·sin(x) + x2·cos(x)
  • Chain rule: d/dx (x2 + 1)3 f′(x) = 6x·(x2 + 1)2
  • Quotient rule: d/dx xx + 1 f′(x) = 1(x + 1)2
  • Logarithm and chain rule: d/dx ln(x2 + 1) f′(x) = 2xx2 + 1
  • Logarithmic differentiation: d/dx xx f′(x) = xx·(ln(x) + 1)
  • Second derivative: (d²/dx²) x3 − 2x2 + 5 f″(x) = 6x − 4

Frequently asked questions

Is this derivative calculator free?

Yes. It runs in your browser, needs no account and does not send what you type to a server.

When do I use the product or quotient rule?

Use the product rule for products of two functions such as x²·sin x and the quotient rule for quotients such as x/(x+1). A constant factor only needs the constant multiple rule: (5x³)′ = 15x².

My answer looks different from the book. Which is right?

The same derivative can be written in different equivalent forms, e.g. 2sin x·cos x = sin 2x. The calculator checks each result numerically; plotting both expressions on the graphing calculator shows they coincide.

Can it find partial derivatives?

Yes. Choose the variable to differentiate with respect to; other letters are treated as constants. For x²y + y³ the derivative with respect to y is x² + 3y².

Related tools

Sources: OpenStax — Calculus Volume 1

What would you like to calculate?

Browse all calculators