Derivative Calculator

Type a function of x. The derivative is found rule by rule.

Answer

Derivative
−2sin⁡(2x)- 2 \sin{\left(2 x \right)}

Checked numerically before it is shown

Step-by-step solution

  1. Chain rule

    Chain rule with the inner function 2x2 x:

    ddx[cos⁡(2x)]=−sin⁡(2x)⋅ddx[2x]\frac{d}{dx}\left[\cos{\left(2 x \right)}\right] = - \sin{\left(2 x \right)} \cdot \frac{d}{dx}\left[2 x\right]
  2. Constant multiple rule

    A constant factor stays in front:

    ddx[2x]=2⋅ddx[x]\frac{d}{dx}\left[2 x\right] = 2 \cdot \frac{d}{dx}\left[x\right]
  3. Simplify

    −sin⁡(2x)⋅ddx[2x]=−2sin⁡(2x)- \sin{\left(2 x \right)} \cdot \frac{d}{dx}\left[2 x\right] = - 2 \sin{\left(2 x \right)}

Try an example

Solved examples

About this solver

How to use

  1. Type the function of x, for example x^2 sin x.
  2. For a higher derivative add primes, (x^4)′′, or use d^2/dx^2.
  3. Each step names the rule it uses, so you can follow the same method by hand.

How to type math

To enterType
Powerx^2 x^(n+1)
Rootsqrt(x) \sqrt[3]{x}
Fraction(x+1)/(x-1) \frac{1}{x}
Functionssin(x) ln(x) log_2(x) exp(x)
Absolute value|x| abs(x)
Derivatived/dx x^2 sin x (x^2+x)'
Integral\int x^2 dx \int_0^1 x^2 dx
Limitlim x->0 sin(x)/x \lim_{x\to\infty} 1/x
Degreessin(30°)
System of equations2x+y=5, x-y=1

How it works

Each step names the rule it uses: sum, constant multiple, power, product, quotient or chain rule.

For a second derivative type (f)′′ or d^2/dx^2 f.

The result is checked against a numerical derivative at several points before it is shown.

Frequently asked questions

Which rules does it use?

The sum, constant multiple, power, product, quotient and chain rules, plus the derivatives of the standard functions.

Can it find second derivatives?

Yes, up to the fifth derivative. Add primes or use d^2/dx^2.

Why does my answer look different?

The same derivative can be written in several equivalent forms. The result is simplified, and every form is checked numerically.