Skip to content

The chain rule and logarithms

The chain rule is the rule for compositions, and once you have it almost every function in the course is in reach. The logarithm arrives with it: log⁡x\log x, which here as in the course text means the natural logarithm, differentiates to 1/x1/x, and logarithmic differentiation turns an ugly product, quotient or variable power into a sum before any differentiating happens.

In this topic

Taught
Before the midterm
Questions
30
Total marks
85
Suggested time
132 min
Difficulty

Introductory to Capstone

Show the 8 hardest

Key results

The chain rule
ddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx} f\bigl(g(x)\bigr) = f'\bigl(g(x)\bigr)\, g'(x)

When gg is differentiable at xx and ff is differentiable at g(x)g(x).

The derivative of the logarithm
ddxlog⁡x=1x,ddxlog⁡∣x∣=1x\frac{d}{dx}\log x = \frac{1}{x}, \qquad \frac{d}{dx}\log|x| = \frac{1}{x}

The first for x>0x > 0, the second for every x≠0x \neq 0.

The logarithm of a function
ddxlog⁡u(x)=u′(x)u(x)\frac{d}{dx}\log u(x) = \frac{u'(x)}{u(x)}

When uu is differentiable at xx and u(x)>0u(x) > 0.

Laws of logarithms
log⁡(ab)=log⁡a+log⁡b,log⁡ab=log⁡a−log⁡b,log⁡(ar)=rlog⁡a\log(ab) = \log a + \log b, \qquad \log\frac{a}{b} = \log a - \log b, \qquad \log\bigl(a^{r}\bigr) = r\log a

For a>0a > 0, b>0b > 0 and any constant rr.

Logarithmic differentiation
f′(x)=f(x) ddxlog⁡f(x)f'(x) = f(x)\,\frac{d}{dx}\log f(x)

When ff is differentiable at xx and f(x)>0f(x) > 0; if f(x)<0f(x) < 0, use log⁡∣f(x)∣\log|f(x)| instead.

Change of base
ax=exlog⁡a,log⁡ax=log⁡xlog⁡aa^{x} = e^{x\log a}, \qquad \log_{a} x = \frac{\log x}{\log a}

For a constant base a>0a > 0 with a≠1a \neq 1, and x>0x > 0 in the second.

Read the theoryUBC Math 100 §4.3 The chain ruleUBC Math 100 §4.4 Logarithmic differentiationCLP-1 §2.9 The chain ruleCLP-1 §2.10 The natural logarithm

Worked example

Standard3 marks · 4 min

Let y=(3x2+1)5y = \bigl(3x^{2} + 1\bigr)^{5}. Find dydx\dfrac{dy}{dx} at x=1x = 1.

Strategy

Differentiate the outside function with the inside left alone, then multiply by the derivative of the inside. Substitute only at the end.

Working

  1. dydx=5(3x2+1)4⋅ddx(3x2+1)\frac{dy}{dx} = 5\bigl(3x^{2} + 1\bigr)^{4} \cdot \frac{d}{dx}\bigl(3x^{2} + 1\bigr)

    Outer derivative first. The bracket is carried through unchanged.

  2. =5(3x2+1)4⋅6x=30x(3x2+1)4= 5\bigl(3x^{2} + 1\bigr)^{4} \cdot 6x = 30x\bigl(3x^{2} + 1\bigr)^{4}

    The inner derivative is 6x. Multiply the constants.

  3. 3(1)2+1=43(1)^{2} + 1 = 4

    Evaluate the inside at x = 1 before raising to the fourth power.

  4. dydx∣x=1=30(1)(4)4=30⋅256=7680\left.\frac{dy}{dx}\right|_{x=1} = 30(1)(4)^{4} = 30 \cdot 256 = 7680

    Substitute and compute. 4⁴ = 256.

Answer

dydx∣x=1=7680\left.\frac{dy}{dx}\right|_{x=1} = 7680

The answer is 7680.

Check

y(0.999) ≈ 1016.35 and y(1.001) ≈ 1031.71, a rise of about 15.36 over a step of 0.002, a slope of 7680.

Where this goes wrong

Stopping at 5(3x² + 1)⁴ and forgetting the inner derivative, which gives 1280. The chain rule is a product of two derivatives, and the second one is easy to leave out.

On the paper

Name the inner function, write the outer derivative times the inner derivative before simplifying, and substitute the point last.

Leans on

The power rule, from Differentiation rules

Your turn

Standard3 marks · 4 min

Let f(x)=log⁡(x2+4)f(x) = \log\bigl(x^{2} + 4\bigr). Find f′(2)f'(2).

Answer this question

Practice questions

5 of the 30, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.

  • Introductory1 mark · 2 min

    Let f(x)=(2x+1)4f(x) = (2x + 1)^{4}. Find f′(0)f'(0).

    Answer this question
  • Introductory2 marks · 3 min

    Let F(x)=sin⁡ ⁣(x2)F(x) = \sin\!\left(x^{2}\right). Which of the following is F′(x)F'(x)?

    Answer this question
  • Standard3 marks · 4 min

    Let g(x)=x2 h ⁣(x3)g(x) = x^{2}\,h\!\left(x^{3}\right), where hh is a differentiable function with h(8)=3h(8) = 3 and h′(8)=−1h'(8) = -1. Find g′(2)g'(2).

    Answer this question
  • Challenging4 marks · 6 min

    Let f(x)=(x2+1)xf(x) = \bigl(x^{2} + 1\bigr)^{x}. Use logarithmic differentiation to find f′(1)f'(1).

    Answer this question
  • Capstone5 marks · 9 min

    Let ff be a differentiable function with f(x)>0f(x) > 0 for every xx, f(1)=ef(1) = e and f′(1)=3f'(1) = 3. Let gg be the function below. Find g′(1)g'(1).

    g(x)=(f(x2))xg(x) = \bigl(f(x^{2})\bigr)^{x}
    Answer this question

Browse all 30 questions

  • Needs

    Differentiation rules

    Power, sum, product and quotient rules, tangent lines and higher-order derivatives.

    23 questions

  • Needs

    Exponential and trigonometric functions

    Derivatives of eˣ, aˣ, sine, cosine and tangent, and the limits behind them.

    22 questions

  • Leads to

    Implicit differentiation and inverse trigonometric functions

    Differentiating relations, tangent lines to curves, and the derivatives of inverse and inverse trigonometric functions.

    30 questions

  • Leads to

    L’Hôpital’s rule

    Indeterminate forms 0/0, ∞/∞, 0·∞, ∞−∞, 1∞, 00 and ∞0, and when the rule does not apply.

    26 questions

  • Leads to

    Curve sketching

    Increase, concavity, inflection points, asymptotes and full sketches.

    29 questions

  • Leads to

    Optimization

    Building an objective function and justifying the extreme value.

    18 questions

  • Leads to

    Linear approximation

    Tangent-line estimates, whether they run high or low, and approximating a value without a calculator.

    14 questions

  • Leads to

    Exponential growth and decay

    The differential equations y′ = ky and y′ = a − by: half-lives, doubling times, Newton’s law of cooling and inflow and outflow.

    11 questions

  • Leads to

    Functions of two variables and partial derivatives

    Evaluating and reading functions of two variables, level curves, partial derivatives as marginal rates, and second partials.

    15 questions

  • Leads to

    Antiderivatives

    Reversing differentiation, the constant of integration and initial conditions.

    11 questions