1. Home
  2. Explore
  3. Mathematics
  4. Chain Rule Differentiation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Chain Rule Differentiation

Speaker 1Speaker 2

Chain Rule Differentiation

12:57
0:00-12:57
  1. Anna

    Welcome! Today we’re working through the chain rule, one of calculus’s most useful tools for differentiating a function built from simpler functions. The key is recognizing what happens first and what happens second when you evaluate an expression.

  2. Michael

    So start with a composition like G of H of x. H is the inner function because it acts first; G is the outer function because it acts on the result. The chain rule says: differentiate the outer function, put the inner function in place of its input, and multiply by the derivative of the inner function.

  3. Anna

    In symbols, the derivative of G of H of x is G prime of H of x times H prime of x. Let’s make that concrete with the first example: the derivative of e to the 2x.

  4. Michael

    When you put a value in for x, you multiply it by 2 first, then use that result as the exponent on e. So the inside is 2x and the outside is e to the input. The derivative of the outside is still e to the input; then we multiply by the derivative of 2x, which is 2.

  5. Anna

    That gives e to the 2x times 2, usually written as 2e to the 2x. The factor of 2 is easy to miss if you differentiate the exponential part but forget that its exponent is itself changing.

  6. Michael

    Next, take the derivative of e to the negative x. The outside is again e to the input, and the inside is negative x. Differentiating the outside and substituting the inside gives e to the negative x; multiplying by the inside derivative, negative 1, gives negative e to the negative x.

  7. Anna

    Now for a notation trap: e to the x squared means e raised to the quantity x squared. You square first, then exponentiate. That is different from taking e to the x and squaring the result, which would be written as the quantity e to the x squared.

  8. Michael

    For e to the x squared, the inside function is x squared and the outer function is e to the input. The chain rule gives e to the x squared times the derivative of x squared, or 2x. So the derivative is 2x e to the x squared.

  9. Anna

    That order of operations matters because it determines the inner function—and therefore the extra factor from its derivative. Whenever an expression is nested, ask yourself: what operation happens first, and what happens afterward?

  10. Michael

    Let’s apply that to the square root of e to the 3x. One way is to rewrite the square root as a one-half power. Using exponent rules, the expression becomes e to the 3x over 2.

  11. Anna

    Now the inside is three-halves x, and the outside is e to the input. Differentiate the outside, substitute three-halves x, then multiply by the inside derivative, three-halves. The result is three-halves times e to the three-halves x.

  12. Michael

    You can also use the chain rule twice by treating this as three functions: first multiply x by 3, then exponentiate with base e, then take the square root. The outer square-root function contributes one-half times its input to the negative one-half power; differentiating e to the 3x contributes e to the 3x times 3.

  13. Anna

    When you simplify that expression, you get the same answer: three-halves times the square root of e to the 3x. Using exponent rules first is often shorter, but applying the chain rule in stages shows how nested functions work.

  14. Michael

    The next example is a polynomial raised to the hundredth power: the quantity x cubed plus 5x squared minus 4x plus 1, all to the hundredth. We definitely do not want to expand it. The polynomial is the inner function, and raising the result to the hundredth power is the outer function.

  15. Anna

    Differentiate the outer power using the power rule: bring down 100 and reduce the exponent to 99. Keep the entire polynomial inside parentheses, still raised to the 99th power. Then multiply by the derivative of the inner polynomial, which is 3x squared plus 10x minus 4.

  16. Michael

    So the derivative is 100 times the polynomial to the 99th power, times the entire expression 3x squared plus 10x minus 4. Those parentheses matter: the chain rule multiplies by the whole inner derivative. Expanding the original polynomial to the hundredth power would create a huge expression and is unnecessary.

  17. Anna

    Our next problem illustrates a different use of the chain rule: calculating a derivative from information about functions. Suppose H of x equals G of F of x, and we want H prime at 2.

  18. Michael

    The chain rule says H prime at x equals G prime of F of x times F prime of x. At x equals 2, we need F of 2, F prime of 2, and G prime evaluated at F of 2. We’re given F of 2 equals 8, F prime of 2 equals negative 1, and G prime of 8 equals 3.

  19. Anna

    Substitute those values: H prime of 2 is G prime of 8 times negative 1, which is 3 times negative 1, or negative 3. The other listed values—G of 2, G of 8, and G prime of 2—aren’t needed. A useful problem-solving habit is to identify exactly which information the formula requires.

  20. Michael

    Now let’s connect derivatives to the shape of a graph. For f of x equals e to the negative x squared, we want to find where the graph is concave down. Concavity is determined by the second derivative: the graph is concave down where f double-prime is negative.

  21. Anna

    Be careful with the inside of e to the negative x squared. The usual interpretation is negative x squared: square x first, then multiply by negative 1. The chain rule gives f prime of x equals e to the negative x squared times negative 2x, or negative 2x e to the negative x squared.

  22. Michael

    To find the second derivative, we have a product: negative 2x times e to the negative x squared. Use the product rule. Differentiate the first factor to get negative 2, multiply by the second; then add the first factor times the derivative of the second factor.

  23. Anna

    That second factor needs the chain rule again: the derivative of e to the negative x squared is e to the negative x squared times negative 2x. Putting the terms together gives negative 2e to the negative x squared plus 4x squared e to the negative x squared.

  24. Michael

    Factor out the common positive factor 2e to the negative x squared. Then f double-prime equals 2e to the negative x squared times the quantity negative 1 plus 2x squared. Since the exponential factor is always positive, the sign depends entirely on negative 1 plus 2x squared.

  25. Anna

    For concavity down, solve negative 1 plus 2x squared less than zero. That becomes x squared less than one-half, or absolute value of x less than the square root of one-half. Equivalently, x lies between negative square root of 2 over 2 and positive square root of 2 over 2.

  26. Michael

    So the graph is concave down on that open interval. At the two endpoints, the second derivative is zero and the concavity changes; those points are inflection points. The curve has a bell shape, and concave down means the slopes are decreasing—visually, the graph bends like a frown.

  27. Anna

    Let’s move to an application: a model for Minnesota’s population, in millions, t years after 2000. The model is P of t equals 4.919 times e to the 0.00754t. To estimate the population in 2019, use t equals 19.

  28. Michael

    Substituting 19 gives 4.919 times e to the quantity 0.00754 times 19, which is about 5.677. Because the model measures population in millions, the estimate is about 5.677 million people. It’s a model-based estimate, not a guarantee that the actual population was exactly that amount.

  29. Anna

    For the rate of population change in 2019, differentiate with respect to t and use the chain rule. The derivative is 4.919 times e to the 0.00754t, times 0.00754. That first part is the original population model, so the rate is 0.00754 times the population estimate.

  30. Michael

    At t equals 19, that’s about 0.0428 million people per year, or about 42,800 people per year. Including units is essential: the original function measures millions of people, and its derivative measures millions of people per year.

  31. Anna

    Now for compound interest. If P dollars are invested at an annual rate of R percent, compounded twice per year, the amount after t years is A equals P times the quantity 1 plus R over 200, raised to the 2t power. R is entered as a number like 4 for a 4 percent rate, not as 0.04.

  32. Michael

    We’ll differentiate this formula in two different ways, holding different quantities constant each time. That’s allowed because we’re asking different questions: how the amount changes with time, and how the amount changes with the interest rate.

  33. Anna

    First, hold P and R constant and differentiate with respect to t. The expression has an exponential form, and the exponent 2t is the inner function. Differentiating the exponential introduces the natural logarithm of its base, and the chain rule contributes the derivative of 2t, which is 2.

  34. Michael

    So the time derivative is P times the natural log of the quantity 1 plus R over 200, times that same base raised to 2t, times 2. It measures how quickly the account balance is changing over time. Since A is in dollars and t is in years, its units are dollars per year.

  35. Anna

    Next, hold P and t constant and differentiate with respect to R. Now the varying part is the base, 1 plus R over 200, raised to the constant power 2t. Use the chain rule: the outer power contributes 2t times the base to the power 2t minus 1, and the derivative of the base with respect to R is one over 200.

  36. Michael

    That gives P times 2t times the quantity 1 plus R over 200 to the power 2t minus 1, all divided by 200. This derivative describes how the account amount changes as the rate R changes, with P and t fixed. Its units can be described as dollars per percentage point.

  37. Anna

    That wording avoids a common confusion. If R rises from 4 to 5, that is an increase of one percentage point, even though the rate itself has risen by 25 percent relative to its original value. The derivative tracks a change in R, not a percent increase in R.

  38. Michael

    You may see partial-derivative notation, with a curved d, when differentiating with respect to one variable while holding others fixed. It emphasizes that other quantities are being treated as constant. The notation is just a way to communicate what is held fixed; the main idea is the same.

  39. Anna

    For our final problem, we’ll derive the quotient rule from the product rule and chain rule. Suppose Q of x equals f of x divided by g of x. Rewrite it as f of x times g of x to the negative one, assuming the functions are differentiable and g of x is not zero.

  40. Michael

    Apply the product rule. The derivative of f times g to the negative one is f prime times g to the negative one, plus f times the derivative of g to the negative one. For that second derivative, use the chain rule: the outer power contributes negative one times g to the negative two, and the inner function contributes g prime.

  41. Anna

    So Q prime equals f prime divided by g, minus f times g prime divided by g squared. To combine the fractions, rewrite the first term with denominator g squared by multiplying its numerator and denominator by g. Then subtract the numerators.

  42. Michael

    The result is f prime times g minus f times g prime, all over g squared. In the mnemonic form, that’s “low d high minus high d low, over low squared.” We’ve derived the quotient rule by rewriting the quotient as a product and using the product rule, the chain rule, and algebra.

  43. Anna

    And that’s the recurring strategy throughout these examples: identify the inner and outer functions, apply the appropriate derivative rule, and keep track of the inner derivative. When expressions get more nested, the chain rule can be applied more than once—or combined with rules like the product rule.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent