Chain Rule
Chain Rule
that 𝑔′(𝑥) and 𝑓′(𝑢) both exist, then 𝑦 can be expressed as a function of 𝑥; that
is, 𝑦 = 𝑓 𝑔 𝑥 . An example is 𝑦 = (2𝑥 + 1)9 , where 𝑢 = 𝑔 𝑥 = 2𝑥 + 1.
• 𝑦 = 3𝑥 + 4 • 𝑦 = (3𝑥 + 4)5
𝑥+3 4
• 𝑦=
Not to Chain Rule To Chain Rule 7𝑥
To Chain Rule
• 𝑦 = 3𝑥 + 4
• 𝑦 = 𝑥4 1
𝑦 = (3𝑥 + 4)2
Not to Chain Rule
To Chain Rule
How to apply the Chain Rule
𝑑𝑦 𝑑𝑦 𝑑𝑢 𝑑𝑦
= or = 𝑓′(𝑔 𝑥 ) ∙ 𝑔′ (𝑥)
𝑑𝑥 𝑑𝑢 𝑑𝑥 𝑑𝑥
𝑫𝒆𝒓𝒊𝒗𝒂𝒕𝒊𝒗𝒆 𝒐𝒇 𝒕𝒉𝒆 𝑶𝑼𝑻𝑬𝑹
𝒅𝒚 𝑫𝒆𝒓𝒊𝒗𝒂𝒕𝒊𝒗𝒆 𝒐𝒇 𝒕𝒉𝒆
= 𝒇𝒖𝒏𝒄𝒕𝒊𝒐𝒏; 𝒍𝒆𝒂𝒗𝒊𝒏𝒈 ∙
𝒅𝒙 𝑰𝑵𝑵𝑬𝑹 𝒇𝒖𝒏𝒄𝒕𝒊𝒐𝒏
𝒕𝒉𝒆 𝒊𝒏𝒏𝒆𝒓 𝒇𝒖𝒏𝒄𝒕𝒊𝒐𝒏 𝒂𝒔 𝒊𝒕 𝒊𝒔
Example 1. Solve for the derivative of 𝑓 𝑥 = (6𝑥 − 4)3
𝑑𝑦
= (6𝑥 − 4)3 Note: The outer function is (6𝑥 − 4)3 while the inner function is 6𝑥 − 4.
𝑑𝑥
𝑑𝑦 3−1
= 3 6𝑥 − 4 (6)
𝑑𝑥
𝑑𝑦
= 3 6𝑥 − 4 2 (6)
𝑑𝑥
𝑑𝑦
= 3(36𝑥 2 − 48𝑥 + 16)(6)
𝑑𝑥
𝑑𝑦
= 108𝑥 2 − 144𝑥 + 48 6
𝑑𝑥
𝑑𝑦
= 648𝑥 2 − 864𝑥 + 288
𝑑𝑥
Example 2. Solve for the derivative of 𝑓 𝑥 = (5𝑥 2 − 4𝑥 + 2)2
𝑑𝑦
= (5𝑥 2 − 4𝑥 + 2)2 Note: The outer function is (5𝑥 2 − 4𝑥 + 2)2 while the inner function is 5𝑥 2 − 4𝑥 + 2.
𝑑𝑥
𝑑𝑦
= 2 5𝑥 2 − 4𝑥 + 2 2−1
(10𝑥 − 4)
𝑑𝑥
𝑑𝑦
= 2(5𝑥 2 − 4𝑥 + 2)(10𝑥 − 4)
𝑑𝑥
𝑑𝑦
= (10𝑥 2 − 8𝑥 + 4)(10𝑥 − 4)
𝑑𝑥
𝑑𝑦
= 100𝑥 3 − 40𝑥 2 − 80𝑥 2 + 32𝑥 + 40𝑥 − 16
𝑑𝑥
𝑑𝑦
= 100𝑥 3 − 120𝑥 2 + 72𝑥 − 16
𝑑𝑥
Example 3. Solve for the derivative of 𝑑𝑦 1
= (3𝑥 2 − 4)2
1 𝑑𝑥
2
𝑓 𝑥 = 3𝑥 2 −4 = (3𝑥 − 4)2
𝑑𝑦 1 1
−1
= 3𝑥 2 − 4 2 (6𝑥)
𝑑𝑥 2
𝑑𝑦 𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑂𝑈𝑇𝐸𝑅 𝐹𝑢𝑛𝑐𝑡𝑖𝑜𝑛; 𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑡ℎ𝑒
= ∙ 𝑑𝑦 1 −
1
𝑑𝑥 𝑙𝑒𝑎𝑣𝑖𝑛𝑔 𝑡ℎ𝑒 𝑖𝑛𝑛𝑒𝑟 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑎𝑠 𝑖𝑡 𝑖𝑠 𝐼𝑁𝑁𝐸𝑅 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 = 3𝑥 2 − 4 2 (6𝑥)
𝑑𝑥 2
𝑑𝑦 1 1
𝑑𝑦 2
1 = (6𝑥)
= (3𝑥 − 4)2 𝑑𝑥 2 3𝑥 2 − 4
𝑑𝑥
𝑑𝑦 6𝑥 3𝑥
1 =
Note: The outer function is (3𝑥 2 − 4) while the 𝑑𝑥 3𝑥 2 − 4
12
2
inner function is 3𝑥 2 − 4.
𝑑𝑦 3𝑥 3𝑥 2 − 4
= ∙
𝑑𝑥 3𝑥 2 − 4 3𝑥 2 − 4
𝑑𝑦 3𝑥 3𝑥 2 − 4
=
𝑑𝑥 3𝑥 2 − 4
Solve for the derivative of 𝑓 𝑥 = (2𝑥 + 1)9
𝑑𝑦
= (2𝑥 + 1)9 Note: The outer function is (2𝑥 + 1)9 while the inner function is 2𝑥 + 1.
𝑑𝑥
𝑑𝑦
= 9 2𝑥 + 1 9−1 (2)
𝑑𝑥
𝑑𝑦
= 9 2𝑥 + 1 8 (2)
𝑑𝑥
𝑑𝑦 8
= 18 2𝑥 + 1 You can readily multiply 9 and 2 since multiplication is associative.
𝑑𝑥
8
You need not further simplify this answer since expanding 2𝑥 + 1 will take time. I will only require you to simplify your
answers when exponent is at most 2.
Solve for the derivative of 𝑓 𝑥 = (2𝑥 2 − 𝑥 + 3)5
𝑑𝑦
= (2𝑥 2 − 𝑥 + 3)5 Note: The outer function is (2𝑥 2 − 𝑥 + 3)5 while the inner function is 2𝑥 2 − 𝑥 + 3.
𝑑𝑥
𝑑𝑦
= 5 2𝑥 2 − 𝑥 + 3 5−1 (4𝑥 − 1)
𝑑𝑥
𝑑𝑦 4
= (20𝑥 − 5) 2𝑥 − 𝑥 + 3 You can readily multiply 5 and (4x-1) since multiplication is associative.
𝑑𝑥
4
You need not further simplify this answer since expanding 2𝑥 − 𝑥 + 3 will take time. I will only require you to simplify
your answers when exponent is at most 2.
Solve for the derivative of 𝑑𝑦 1
= (2𝑥 + 5)2
𝑑𝑥
𝑑𝑦 1 1
𝑓 𝑥 = 2𝑥 + 5 = 2𝑥 + 5 2
−1
(2)
𝑑𝑥 2
𝑑𝑦 1 −
1
𝑑𝑦
=
𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑂𝑈𝑇𝐸𝑅 𝐹𝑢𝑛𝑐𝑡𝑖𝑜𝑛;
∙
𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑡ℎ𝑒 = 2𝑥 + 5 2 (2)
𝑑𝑥 𝑙𝑒𝑎𝑣𝑖𝑛𝑔 𝑡ℎ𝑒 𝑖𝑛𝑛𝑒𝑟 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑎𝑠 𝑖𝑡 𝑖𝑠 𝐼𝑁𝑁𝐸𝑅 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑑𝑥 2
𝑑𝑦 1 1
= (2)
𝑑𝑦 𝑑𝑥 2 2𝑥 + 5
= 2𝑥 + 5
𝑑𝑥 𝑑𝑦 21
=
𝑑𝑥
𝑑𝑦 1 12 2𝑥 + 5
= (2𝑥 + 5)2
𝑑𝑥 𝑑𝑦 1 2𝑥 + 5
= ∙
𝑑𝑥 2𝑥 + 5 2𝑥 + 5
1
Note: The outer function is (2𝑥 + 5)2 while the
inner function is 2𝑥 + 5. 𝑑𝑦 2𝑥 + 5
=
𝑑𝑥 2𝑥 + 5
Example 4. Solve for the derivative of Solving for 𝑔′(𝑥) using the chain rule.
In order to get the derivative, we need to use the 𝑓′(𝑥) = 3(𝑥 + 1)2
quotient rule in combination with the chain rule. 𝑓 ′ 𝑥 = 3 𝑥 2 + 2𝑥 + 1 = 3𝑥 2 + 6𝑥 + 3
𝑓 𝑥 =𝑥−2 Solving for the derivative of 𝑦 = (𝑥 − 2) (𝑥 + 1)3 using the product rule
𝑓′ 𝑥 = 1 𝑑𝑦
= 𝑓 𝑥 ∙ 𝑔′ 𝑥 + 𝑔 𝑥 ∙ 𝑓 ′ 𝑥
𝑑𝑥
𝑔 𝑥 = (𝑥 + 1)3 𝑑𝑦
= (𝑥 − 2) ∙ (3𝑥 2 + 6𝑥 + 3) + (𝑥 + 1)3 ∙ (1)
𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑂𝑈𝑇𝐸𝑅
𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑑𝑥
𝑔′(𝑥) = 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛; 𝑙𝑒𝑎𝑣𝑖𝑛𝑔 𝑡ℎ𝑒 ∙
𝐼𝑁𝑁𝐸𝑅 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛
𝑖𝑛𝑛𝑒𝑟 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑎𝑠 𝑖𝑡 𝑖𝑠 𝑑𝑦
= 3𝑥 3 + 6𝑥 2 + 3𝑥 − 6𝑥 2 − 12𝑥 − 6 + 𝑥 3 + 3𝑥 2 + 3𝑥 + 1
𝑑𝑥
𝑔′(𝑥) = (𝑥 + 1)3
𝑑𝑦
3
Note: The outer function is (𝑥 + 1) while the inner
= 4𝑥 3 + 3𝑥 2 − 6𝑥 − 5
𝑑𝑥
function is 𝑥 + 1.
Solve for the derivative of Solving for 𝑓′(𝑥) using the chain rule.