Skip to main content

Derivative Rules

Written by Awn · Published · 7 min read

Quick Answer

The main derivative rules are the constant, power, constant multiple, sum, product, quotient and chain rules. The power rule says the derivative of x to the n is n times x to the n minus 1. The other rules tell you what to do when functions are added, multiplied, divided or nested.

Derivative Rules Cheat Sheet

Derivative rules cheat sheet with the basic, product, quotient and chain rules and the common functions

Open the cheat sheet on its own to save or print it.

RuleFunctionDerivative
Constantcc00
Powerxnx^nnxn−1nx^{n-1}
Constant multiplecf(x)cf(x)cf′(x)cf'(x)
Sum or differencef±gf\pm gf′±g′f'\pm g'
Productfgfgf′g+fg′f'g+fg'
Quotientfg\dfrac{f}{g}f′g−fg′g2\dfrac{f'g-fg'}{g^2}
Chainf(g(x))f(g(x))f′(g(x))⋅g′(x)f'(g(x))\cdot g'(x)

What Is a Derivative Rule?

A derivative is the slope of a curve at one point. Finding it from the limit definition is slow. The rules of differentiation are shortcuts that have been proved from that definition, so you don't have to start over each time.

You will see two notations. f′(x)f'(x) and ddxf(x)\frac{d}{dx}f(x) mean the same thing.

How to Use the Derivative Rules Step by Step

  1. Rewrite roots and fractions as powers: x=x1/2\sqrt{x}=x^{1/2} and 1x=x−1\frac{1}{x}=x^{-1}.
  2. Ask which operation would come last if you put in a number.
  3. Choose the rule: adding means term by term, multiplying means product, dividing means quotient, and a function of something means chain.
  4. Differentiate the parts.
  5. Simplify.

Derivative rules steps: how to choose the sum, product, quotient or chain rule

The Basic Differentiation Rules

Constant and Power Rules

The derivative of 7 is 0, because a flat line has no slope. For a power, bring it down and subtract 1: ddxx5=5x4\frac{d}{dx}x^5=5x^4. It works for negative and fraction powers too: ddxx−2=−2x−3\frac{d}{dx}x^{-2}=-2x^{-3}.

Sum and Constant Multiple Rules

Work term by term, and let the number in front ride along. So ddx(3x2+5x)=6x+5\frac{d}{dx}(3x^2+5x)=6x+5.

Product and Quotient Rules

Never just multiply or divide two derivatives. For the product: first one's derivative times the second, plus the first times the second one's derivative. For the quotient, the top's derivative goes first and the sign is minus.

The Chain Rule

Differentiate the outside, leave the inside alone, then multiply by the inside's derivative. For (2x−1)4(2x-1)^4, that gives 4(2x−1)3⋅2=8(2x−1)34(2x-1)^3\cdot 2=8(2x-1)^3.

Derivative Formulas for Common Functions

FunctionDerivativeFunctionDerivative
sin⁡x\sin xcos⁡x\cos xexe^xexe^x
cos⁡x\cos x−sin⁡x-\sin xaxa^xaxln⁡aa^x\ln a
tan⁡x\tan xsec⁡2x\sec^2 xln⁡x\ln x1x\frac{1}{x}
sec⁡x\sec xsec⁡xtan⁡x\sec x\tan xlog⁡ax\log_a x1xln⁡a\frac{1}{x\ln a}
csc⁡x\csc x−csc⁡xcot⁡x-\csc x\cot xarcsin⁡x\arcsin x11−x2\frac{1}{\sqrt{1-x^2}}
cot⁡x\cot x−csc⁡2x-\csc^2 xarctan⁡x\arctan x11+x2\frac{1}{1+x^2}

Notice that each "co" function (cosine, cosecant, cotangent) has a minus sign.

Why the Rules Work

Every rule comes from one idea: the slope of a line through two points that move closer and closer together. In symbols, that is the limit of f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h} as hh goes to 0.

Power rule. Take f(x)=x2f(x)=x^2. The top is (x+h)2−x2=2xh+h2(x+h)^2-x^2=2xh+h^2. Divide by hh to get 2x+h2x+h. As hh shrinks to 0, only 2x2x is left.

Product rule. Picture a rectangle with sides ff and gg. When both sides grow a little, the area grows by two strips: the growth of ff times gg, and ff times the growth of gg. The tiny corner piece is too small to matter. Those two strips are f′g+fg′f'g+fg'.

Chain rule. If yy changes 3 times as fast as uu, and uu changes 2 times as fast as xx, then yy changes 6 times as fast as xx. Rates multiply, so the outside rate is multiplied by the inside rate.

You don't need to prove a rule each time you use it. Still, remembering the rectangle helps you recall that the product rule has two parts.

More Rules You May Meet

These come up less often. Each one follows from the rules above.

RuleFunctionDerivative
Reciprocal1f\frac{1}{f}−f′f2-\frac{f'}{f^2}
Inverse functionf−1(x)f^{-1}(x)1f′(f−1(x))\frac{1}{f'(f^{-1}(x))}
Hyperbolic sinesinh⁡x\sinh xcosh⁡x\cosh x
Hyperbolic cosinecosh⁡x\cosh xsinh⁡x\sinh x
Hyperbolic tangenttanh⁡x\tanh xsech⁡2x\operatorname{sech}^2 x

Notice that hyperbolic cosine has no minus sign, unlike ordinary cosine.

When xx is in both the base and the exponent, as in xxx^x, neither the power rule nor the exponential rule works. Take logs first: ln⁡y=xln⁡x\ln y=x\ln x. Differentiate both sides: y′y=ln⁡x+1\frac{y'}{y}=\ln x+1. So the derivative is xx(ln⁡x+1)x^x(\ln x+1).

Which Derivative Rule Should You Use?

You seeUse
Terms added, like 4x3−2x+74x^3-2x+7Power rule on each term
Two functions multiplied, like x3ln⁡xx^3\ln xProduct rule
A fraction with xx on the bottomQuotient rule, or rewrite as a power
Something inside, like cos⁡(3x)\cos(3x)Chain rule

Worked Examples

Example 1: Power Rule

Differentiate 4x3−2x+74x^3-2x+7.

  1. 4x34x^3 becomes 12x212x^2.
  2. −2x-2x becomes −2-2, and 7 becomes 0.

The answer is 12x2−212x^2-2.

Example 2: Product Rule

Differentiate x3ln⁡xx^3\ln x.

  1. f=x3f=x^3 and g=ln⁡xg=\ln x, so f′=3x2f'=3x^2 and g′=1xg'=\frac{1}{x}.
  2. f′g+fg′=3x2ln⁡x+x3⋅1xf'g+fg'=3x^2\ln x+x^3\cdot\frac{1}{x}.
  3. Simplify: 3x2ln⁡x+x23x^2\ln x+x^2.

Example 3: Quotient Rule

Differentiate x2x+1\dfrac{x^2}{x+1}.

  1. f=x2f=x^2 and g=x+1g=x+1, so f′=2xf'=2x and g′=1g'=1.
  2. 2x(x+1)−x2(x+1)2\dfrac{2x(x+1)-x^2}{(x+1)^2}.
  3. Simplify the top: x2+2x(x+1)2\dfrac{x^2+2x}{(x+1)^2}.

Example 4: Chain Rule

Differentiate cos⁡(3x)\cos(3x). The outside gives −sin⁡(3x)-\sin(3x). The inside gives 3. The answer is −3sin⁡(3x)-3\sin(3x).

Example 5: Two Rules at Once

Differentiate x2(3x+1)4x^2(3x+1)^4.

  1. The last operation is multiplying, so start with the product rule: f=x2f=x^2 and g=(3x+1)4g=(3x+1)^4.
  2. f′=2xf'=2x. For g′g', use the chain rule: 4(3x+1)3⋅3=12(3x+1)34(3x+1)^3\cdot 3=12(3x+1)^3.
  3. Put it together: 2x(3x+1)4+12x2(3x+1)32x(3x+1)^4+12x^2(3x+1)^3.

You may leave it like this. If you need it factored, take out 2x(3x+1)32x(3x+1)^3. What is left is 3x+1+6x=9x+13x+1+6x=9x+1, so the answer is 2x(3x+1)3(9x+1)2x(3x+1)^3(9x+1).

Example 6: Rewrite First

Differentiate x3+4x\dfrac{x^3+4}{x}.

  1. Divide each term by xx: x2+4x−1x^2+4x^{-1}.
  2. Use the power rule: 2x−4x−22x-4x^{-2}.
  3. Write it without negative powers: 2x−4x22x-\dfrac{4}{x^2}.

The quotient rule gives the same answer, but it takes longer. Check for a quick rewrite whenever the bottom is a single term.

Example 7: The Slope at a Point

Find the slope of y=x3−3xy=x^3-3x at x=2x=2.

  1. Differentiate: 3x2−33x^2-3.
  2. Put in 2: 3⋅4−3=93\cdot 4-3=9.

At x=2x=2 the curve is rising steeply, 9 units up for each unit across. Where 3x2−3=03x^2-3=0, which is at x=1x=1 and x=−1x=-1, the curve is flat. Those are its turning points.

What Derivatives Are Used For

A derivative measures how fast something changes. If s(t)s(t) is position, then s′(t)s'(t) is speed in a direction (velocity), and the derivative of velocity is acceleration.

For example, if a ball's height in meters is s(t)=20t−5t2s(t)=20t-5t^2, then s′(t)=20−10ts'(t)=20-10t. At t=1t=1 it is rising at 10 meters per second. At t=2t=2 the rate is 0, so that is the top of its path.

The same step finds the highest profit, the lowest cost or the largest area. Differentiate, set the result equal to zero, and solve.

Common Mistakes

Using the Power Rule on an Exponential

In 2x2^x the variable is in the exponent, so the power rule does not apply. The derivative is 2xln⁡22^x\ln 2.

Dropping a Minus Sign in the Quotient Rule

Put parentheses around fg′fg' before you subtract it.

Forgetting the Inside Derivative

The derivative of cos⁡(3x)\cos(3x) is not −sin⁡(3x)-\sin(3x). The inside has slope 3, so you must multiply by 3.

Multiplying Two Derivatives

The derivative of x2⋅x3x^2\cdot x^3 is not 2x⋅3x2=6x32x\cdot 3x^2=6x^3. Since x2⋅x3=x5x^2\cdot x^3=x^5, the right answer is 5x45x^4. The product rule agrees: 2x⋅x3+x2⋅3x2=5x42x\cdot x^3+x^2\cdot 3x^2=5x^4.

Practice Problems

  1. Differentiate 6x56x^5.
  2. Differentiate x+1x\sqrt{x}+\frac{1}{x}.
  3. Differentiate exsin⁡xe^x\sin x.
  4. Differentiate (2x−1)4(2x-1)^4.
  5. Differentiate ln⁡(x2+1)\ln(x^2+1).
Show the answers
  1. 30x430x^4
  2. 12x−1x2\dfrac{1}{2\sqrt{x}}-\dfrac{1}{x^2}
  3. exsin⁡x+excos⁡xe^x\sin x+e^x\cos x
  4. 8(2x−1)38(2x-1)^3
  5. 2xx2+1\dfrac{2x}{x^2+1}

Check Your Answer With the Derivative Calculator

The derivative calculator names the rule on every line, so you can see where your choice differed. To go the other way, read the integration rules. For the proofs, see Differentiation Rules in OpenStax Calculus.

FAQ

What Are the 7 Basic Derivative Rules?

Constant, power, constant multiple, sum and difference, product, quotient and chain. Some books count sum and difference separately, so the number varies.

What Is the Power Rule in Simple Words?

Bring the power down to the front, then make the power one smaller. x6x^6 becomes 6x56x^5.

When Do You Use the Chain Rule?

Whenever one function sits inside another, such as cos⁡(3x)\cos(3x), (2x−1)4(2x-1)^4 or ln⁡(x2+1)\ln(x^2+1).

Can You Use the Product Rule Instead of the Quotient Rule?

Yes. Rewrite fg\frac{f}{g} as f⋅g−1f\cdot g^{-1}, then use the product and chain rules. Both routes give the same answer.

What Is the Derivative of e to the x?

It is exe^x itself. Its slope always equals its height.

How Do You Find a Second Derivative?

Differentiate twice. For x4x^4, the first derivative is 4x34x^3 and the second is 12x212x^2. The second derivative tells you how the slope itself is changing.

Why Is the Derivative of a Constant Zero?

A constant never changes, so its rate of change is zero. Its graph is a flat line.


Next step: cover the right side of the table and say each result from memory. Once the derivative rules feel automatic, choosing which one to use is the only hard part.

Try the Calculator

Related Pages