Start the course

Derivatives

Derivative rules: the complete list, with examples

8 min readUpdated

Quick answer

The main derivative rules are: the power rule ddxxn= nxn−1; the constant multiple and sum rules (differentiate term by term); the product rule (fg)′=f′g+fg′; the quotient rule (fg)′= f′g−fg′g2; and the chain rule ddxf(g(x))= f′(g(x))g′(x), plus formulas for ex, ln⁡x and the trig functions.

Key points
  • The power rule works for every exponent, including negative and fractional ones, once roots and fractions are rewritten as powers.
  • Sums and constant multiples are differentiated term by term; products and quotients are not.
  • To choose a rule, find the last operation used to build the function: that operation's rule comes first.
  • ex is its own derivative; ln⁡x has derivative 1x; sin→cos and cos→−sin.

Why do we need derivative rules?

The definition of the derivative, f′(x)= limh→0f(x+h)−f(x)h, works for any function, but every use means expanding, simplifying and taking a limit. The rules below are shortcuts: each one is that limit worked out once, in general, so you never have to repeat it. Together they let you differentiate any function built from powers, exponentials, logarithms and trig functions, combined in any way.

What is the complete list of derivative rules?

In the table, c and n are fixed numbers, and f and g are functions of x.

FunctionDerivativeRule
c0constant rule
xnnxn−1power rule (any number n)
cf(x)cf′(x)constant multiple rule
f(x)±g(x)f′(x)±g′(x)sum and difference rules
f(x)g(x)f′(x)g(x)+f(x)g′(x)product rule
f(x)g(x)f′(x)g(x)−f(x)g′(x)g(x)2quotient rule
f(g(x))f′(g(x))g′(x)chain rule
exexnatural exponential
bxbxln⁡bother exponentials
ln⁡x1xnatural logarithm (x>0)
logb⁡x1xln⁡bother logarithms
sin⁡x, cos⁡xcos⁡x, −sin⁡xsine and cosine
tan⁡x, sec⁡xsec2⁡x, sec⁡xtan⁡xtangent and secant
cot⁡x, csc⁡x−csc2⁡x, −csc⁡xcot⁡xcotangent and cosecant
arcsin⁡x, arccos⁡x11−x2, −11−x2inverse sine and cosine
arctan⁡x11+x2inverse tangent
Tip

Trig derivatives only take these forms when angles are measured in radians, the standard unit in calculus.

How do you use the power rule?

The power rule says: to differentiate a power of x, bring the exponent down in front and subtract 1 from the exponent.

The power rule
ddxxn= nxn−1 for any number n.
Why it works
  1. For a whole number n, multiply out (x+h)n= xn+nxn−1h+(terms with h2 or higher).
  2. The difference quotient is (x+h)n−xnh= nxn−1+(terms with at least one h).
  3. As h→0, every term with an h goes to 0, leaving nxn−1. (Other exponents are covered later in the course, with logarithms.)

The power rule only applies to xn, so roots and fractions must first be rewritten as powers: x=x1/2, x23= x2/3, and 1xn=x−n.

Worked example: Rewrite, then use the power rule

Differentiate y= 4x5−3x2+2x.

  1. Rewrite every term as a power of x: y= 4x5−3x−2+2x1/2.
  2. Differentiate term by term (sum and constant multiple rules): 4⋅5x4−3⋅(−2)x−3+2⋅12x−1/2.
  3. Simplify: 20x4+6x−3+x−1/2.
  4. Rewrite without negative or fractional exponents if you like: 20x4+6x3+1x.

Answer: y′= 20x4+6x3+1x

Common mistake

Using the power rule on an exponential. ddx2x is not x⋅2x−1. The power rule needs the variable in the base and a fixed exponent; 2x has a fixed base and the variable in the exponent, so it uses ddxbx= bxln⁡b, giving 2xln⁡2.

What are the sum, difference and constant multiple rules?

The derivative of a sum is the sum of the derivatives, and a number multiplying a function just stays put. So you can split a long expression into its terms and differentiate each one on its own, as in the example above. This only works for adding, subtracting and multiplying by a number; multiplying two functions together needs the product rule.

What are the product and quotient rules?

The derivative of a product is not the product of the derivatives. The product rule differentiates one factor at a time while leaving the other alone, and adds the results. The quotient rule is the rule for one function divided by another; the order on top matters because of the minus sign.

Worked example: The product rule

Differentiate y=x3sin⁡x.

  1. Name the factors: f=x3 with f′=3x2, and g=sin⁡x with g′=cos⁡x.
  2. Product rule: y′= f′g+fg′= 3x2sin⁡x+x3cos⁡x.

Answer: y′= 3x2sin⁡x+x3cos⁡x

Worked example: The quotient rule

Differentiate y=exx+1.

  1. Name the top f=ex with f′=ex, and the bottom g=x+1 with g′=1.
  2. Quotient rule: y′= f′g−fg′g2= ex(x+1)−ex⋅1(x+1)2.
  3. Simplify the top: ex(x+1)−ex= xex+ex−ex= xex.

Answer: y′= xex(x+1)2

Both rules, why they work, and when a rewrite is quicker than the quotient rule are covered in the product and quotient rules.

What is the chain rule?

The chain rule handles a function applied to something other than plain x, such as sin⁡(x2) or (3x+1)5. Differentiate the outside function, leaving the inside alone, then multiply by the derivative of the inside.

Worked example: The chain rule

Differentiate y=sin⁡(x2).

  1. The inside is x2, with derivative 2x. The outside is sin⁡( ), with derivative cos⁡( ).
  2. Outside's derivative with the inside unchanged: cos⁡(x2).
  3. Multiply by the inside's derivative: y′= cos⁡(x2)⋅2x= 2xcos⁡(x2).

Answer: y′=2xcos⁡(x2)

See the chain rule for longer chains and the most common mistakes, and derivatives of ex and ln⁡x for exponentials and logarithms.

How do you know which derivative rule to use?

Look at how the function is built and find the last operation you would do to compute it for a particular x. That operation chooses the first rule; then use the rules again on each piece until only basic functions from the table are left.

The last operation isExampleUse first
adding or subtracting termsx4−3sin⁡xsum rule: term by term
multiplying two pieces that contain xx2exproduct rule
dividing by a piece that contains xsin⁡xx2+1quotient rule
applying a function to something other than xx2+1, e3xchain rule
nothing: a basic function of xtan⁡x, ln⁡xthe formula from the table
Tip

Before choosing, check whether a rewrite makes things simpler: x3+2xx= x2+2 needs no quotient rule, and ln⁡(x2)=2ln⁡x needs no chain rule. The course's Playbook walks through this choice question by question.

Learn it step by step

The full lessons in the course explain this from the ground up, with graphs, worked examples, and practice problems that each have a complete worked solution.

Open the lesson

Frequently asked questions

What is the most important derivative rule?

The power rule is used most often, but the chain rule matters most in practice: nearly every function beyond the basics has an inside function, and forgetting the chain rule is the most common derivative mistake.

Does the power rule work for negative and fractional exponents?

Yes. ddxx−2= −2x−3 and ddxx1/2= 12x−1/2. Rewrite roots and fractions as powers of x first.

Is the derivative of a product the product of the derivatives?

No. For example, ddx(x⋅x)= ddxx2= 2x, but the product of the derivatives is 1⋅1=1. Use the product rule (fg)′=f′g+fg′.

What is the derivative of a constant?

Zero. A constant function doesn't change, so its rate of change is 0 everywhere; its graph is a horizontal line with slope 0.

What is the derivative of e^x?

ex itself. It is the only exponential (apart from multiples of it) whose rate of change equals its value at every point.

Do I need to memorize all the derivative rules?

Most classes expect you to know the power, product, quotient and chain rules and the derivatives of ex, ln⁡x, sin⁡x and cos⁡x by heart. The others can be worked out from these, though it's quicker to know them.