myLearning

Topic 3 of 7

Step 15: Calculus 1

Differentiation rules and the chain rule

Step 15 · Calculus 1 topics

Differentiate polynomials, products, quotients and compositions with the standard rules, including exponential, logarithmic and trigonometric functions.

Power, sum and constant rules

You rarely need the limit definition: a few rules handle almost every function. Constants come along for the ride, and sums are differentiated term by term.

FunctionDerivative
c0
xnx^{n}nxn−1nx^{n-1}
exe^{x}exe^{x}
ln⁡x\ln x1x\frac{1}{x}
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x

Example: A polynomial

Differentiate f(x) = 4x³ − 5x² + 7x − 2.

  1. Use the power rule on each term: 12x² − 10x + 7.
  2. The constant −2 has derivative 0.

Answerf′(x) = 12x² − 10x + 7

Example: Roots and reciprocals

Differentiate f(x)=x+2xf(x) = \sqrt{x} + \frac{2}{x}.

  1. Rewrite it as x1/2+2x−1x^{1/2} + 2x^{-1}.
  2. Power rule: 12x−1/2−2x−2\frac{1}{2}x^{-1/2} - 2x^{-2}.

Answerf′(x)=12x−2x2f'(x) = \frac{1}{2\sqrt{x}} - \frac{2}{x^{2}}

Product and quotient rules

(fg)′=f′g+fg′(fg)′=f′g−fg′g2(fg)' = f'g + fg' \qquad \left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^{2}}

Example: Product

Differentiate x² sin x.

  1. Take f = x² and g = sin x, so f′ = 2x and g′ = cos x.
  2. f′g + fg′ gives 2x sin x + x² cos x.

Answer2x sin x + x² cos x

Example: Quotient

Differentiate xx2+1\frac{x}{x^{2} + 1}.

  1. Take f = x and g = x² + 1, so f′ = 1 and g′ = 2x.
  2. 1⋅(x2+1)−x⋅2x(x2+1)2\frac{1 \cdot (x^{2} + 1) - x \cdot 2x}{(x^{2} + 1)^{2}}.

Answer1−x2(x2+1)2\frac{1 - x^{2}}{(x^{2} + 1)^{2}}

The chain rule

For a function inside another function, f(g(x)), differentiate the outside, leave the inside alone, then multiply by the derivative of the inside.

ddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx} f(g(x)) = f'(g(x))\, g'(x)

Example: A power of a polynomial

Differentiate (3x² + 1)⁵.

  1. Outside: u⁵ has derivative 5u⁴.
  2. Inside: 3x² + 1 has derivative 6x.
  3. Multiply: 5(3x² + 1)⁴ · 6x.

Answer30x(3x² + 1)⁴

Example: Exponential and trig

Differentiate esin⁡xe^{\sin x} and cos(4x).

  1. eue^{u} keeps its form, times the inside's derivative, cos x.
  2. cos u becomes −sin u, times the inside's derivative, 4.

Answercos⁡x esin⁡x\cos x \, e^{\sin x} and −4 sin(4x)

Example: Logarithm

Differentiate ln(x² + 5).

  1. The derivative of ln u is 1u\frac{1}{u}, times u′ = 2x.

Answer2xx2+5\frac{2x}{x^{2} + 5}

Try it yourself

Work each one on paper first, then open the answer to check.

  1. Differentiate 6x⁴ − 3x + 9.

    Show answer

    24x³ − 3

  2. Differentiate x3exx^{3}e^{x}.

    Show answer

    3x2ex+x3ex3x^{2}e^{x} + x^{3}e^{x}

  3. Differentiate sin⁡xx\frac{\sin x}{x}.

    Show answer

    xcos⁡x−sin⁡xx2\frac{x\cos x - \sin x}{x^{2}}

  4. Differentiate (2x − 7)⁴.

    Show answer

    8(2x − 7)³

  5. Differentiate e3x2e^{3x^{2}}.

    Show answer

    6x e3x26x\,e^{3x^{2}}

  6. Differentiate ln(5x).

    Show answer

    1x\frac{1}{x}

  7. Find the slope of y = x³ − 4x at x = 2.

    Show answer

    8

What next?