Lemmara logo

The Chain Rule

شرح قاعدة السلسلة بالعربي: الدرس بالإنجليزية كما في الامتحان، ومع كل خطوة شرحها بالعربي.

Differentiate a function inside a function: powers of brackets, roots, e, sin and cos of an expression, and (0606/4037) ln and tan of an expression.

17real exam questions on this topic
  • 6 steps
  • 8 min
  • 2 syllabuses

Try a real exam question on this

0606/23 · May/Jun 2023 · Q3 · 4 marks · Solve it step by step, the way the examiner marks it.

Loading the animated solution…

See the solution as text
Text version of the solution

Find the derivative of ln(x³ + 3x²) in simplified form, then use that result to work out the integral of (x + 2)/(x(x + 3)) dx.

(a) 2 marks

Work out the derivative with respect to x of ln(x³ + 3x²), giving the result in its simplest form.

  1. Understand the question. We are given the function ln(x³ + 3x²), and we must find its derivative with respect to x, simplified.
  2. Use the chain rule for logarithms. The function is ln of a bracket, so differentiate the bracket and divide by the bracket.
  3. Why does this work? If y changes with u, and u changes with x, the two rates multiply, just like converting units.
  4. dy by du times du by dx gives dy by dx, as if the du parts cancel like fractions.
  5. d/dx ln(x³ + 3x²) = (3x² + 6x)/(x³ + 3x²)
  6. Simplify the fraction. Every term on top and bottom has a factor x, so divide top and bottom by x.
  7. Divide top and bottom by x: (3x + 6)/(x² + 3x)
  8. Factorise the result. The top has a common factor 3, and the bottom has a common factor x.
  9. = 3(x + 2)/(x(x + 3))

Answer (3x + 6)/(x² + 3x) or 3(x + 2)/(x(x + 3))

(b) 2 marks

Using your derivative from part a, determine the value of ∫ (x + 2)/(x(x + 3)) dx.

  1. Understand the question. We are given the integral of (x + 2) over x(x + 3) with respect to x, and we must find it, using the result from part (a).
  2. Use the result from part (a) and integrate by reversing the derivative. Part (a) gave the derivative of ln(x³ + 3x²), so its integral is that logarithm plus a constant.
  3. Why does this work? Integrating is differentiating backwards. Differentiating x to the power n gives n times x to the power n minus 1.
  4. So to go back, add 1 to the power and divide by the new power. A constant disappears when you differentiate, so we add c, and a point on the curve tells us its value.
  5. From (a), ∫ 3(x + 2)/(x(x + 3)) dx = ln(x³ + 3x²) + c
  6. Divide by 3
  7. ∫ (x + 2)/(x(x + 3)) dx = (1/3)ln(x³ + 3x²) + c

Answer (1/3)ln(x³ + 3x²) + c

The lesson, step by step

Step 1 of 6

A function inside a function

Look at . You could expand the bracket, but that is five brackets multiplied out. There is a faster way.

This curve is built in two stages. First x goes into the bracket: . Then the bracket is raised to the power 5: . One function sits inside another.

Example

Think of gears. If gear A turns 5 times for each turn of gear B, and gear B turns 3 times for each turn of gear C, then A turns 5 × 3 = 15 times for each turn of C. The rates multiply.

Formula

  • — the inside part, for example 3x + 1.

  • — the gradient of the outside, treating u as the letter.

  • — the gradient of the inside.

Key idea

Why does this work? If y changes with u, and u changes with x, the two rates multiply, just like converting units.

dy by du times du by dx gives dy by dx, as if the du parts cancel like fractions.

Rule

Learn it. 0606 and 4037 give no calculus formulas. 4PM1 lists it as with the formulas to learn.

Worked example

  1. 1

    Find for .

  2. 2

    — Name the inside and differentiate it.

  3. 3

    — Differentiate the outside with the power rule.

  4. 4

    — Multiply the two gradients.

  5. 5

    — Put the inside back in place of u.

Key idea

Differentiate the outside and leave the inside alone. Then multiply by the derivative of the inside.

اشرحها بالعربي

حين يكون قوس مرفوعًا لقوة كبيرة، فكّه طويل جدًا، وهناك طريق أسرع. هذا المنحنى مبني على مرحلتين: أولًا تدخل السين في القوس، ثم يُرفع القوس للقوة. أي دالة داخل دالة. فكّر في التروس: إذا دار ترس عدة مرات لكل دورة من ترس ثانٍ، ودار الثاني عدة مرات لكل دورة من ثالث، فالمعدلات تُضرب. هذه هي قاعدة السلسلة: مشتقة الصاد بالنسبة للسين تساوي مشتقة الخارج بالنسبة للداخل مضروبة في مشتقة الداخل بالنسبة للسين. في المثال نسمّي القوس رمزًا جديدًا ونشتقه، ثم نشتق القوة بقاعدة القوى، ونضرب المشتقتين، ثم نعيد القوس مكان الرمز. احفظ القاعدة، فهي غير مطبوعة في ورقة القوانين لبعض المناهج. لماذا تصح القاعدة؟ إذا تغير الناتج مع المتغير الداخلي، وتغير المتغير الداخلي مع المتغير الأصلي، فإن المعدلين يُضربان، تمامًا مثل تحويل الوحدات، وكأن الجزء المشترك يختصر كما في الكسور.

See this step move in Lemmara

Step 2 of 6

Powers and roots of a bracket

With practice you skip writing u. For any bracket raised to a power, use this shortcut:

Formula

  • — the expression inside the bracket. It stays the same.

  • — the power. Any rational number, so roots and fractions work too.

  • — the derivative of the inside. Never forget it.

Worked example

  1. 1

    . Find and the gradient at .

  2. 2

    — Write the root as the power one half.

  3. 3

    — Outside: bring down 1/2 and take 1 off. Inside: gives 8x.

  4. 4

    — Tidy: half of 8x is 4x, and the power −1/2 puts the root on the bottom.

  5. 5

    — Substitute. 25 has an exact root, so no calculator is needed.

Worked example

  1. 1

    . Find .

  2. 2

    — Bring the bracket to the top. Its power becomes negative.

  3. 3

    — Bring down −3, take 1 off to get −4, then times 2 for the inside.

  4. 4

    — Multiply the numbers: 6 × (−3) × 2 = −36.

Common mistake

Forgetting to multiply by the inside's derivative. is , not . Mark schemes give a separate mark for this factor.

Common mistake

Changing the inside. The bracket keeps in the answer. Only the power changes.

Key idea

Power down, power minus one, bracket unchanged, times the inside's derivative.

اشرحها بالعربي

مع التمرين تستغني عن كتابة الرمز الجديد. لأي قوس مرفوع لقوة: أنزل القوة أمامه، وأنقص القوة واحدًا، واترك ما داخل القوس كما هو، ثم اضرب في مشتقة الداخل. والقوة قد تكون كسرًا أو سالبة، فالجذور والكسور تعمل أيضًا. في المثال الأول نكتب الجذر التربيعي على صورة قوة نصف، ثم نطبّق القاعدة ونرتّب فيصبح الجذر في المقام، ثم نعوّض لإيجاد الميل. وفي الثاني ننقل القوس من المقام إلى البسط بقوة سالبة، ثم نطبّق القاعدة ونضرب الأعداد. الخطأ الشائع: نسيان الضرب في مشتقة الداخل، ولها درجة مستقلة في سلّم التصحيح، أو تغيير ما داخل القوس.

See this step move in Lemmara

Step 3 of 6

e, sin and cos of an expression

The same idea works for every standard function. Use the standard rule on the outside, then multiply by the derivative of the inside.

Formula

  • — the power. It stays the same; its derivative comes in front.

Formula

  • — the angle, in radians. It stays the same inside the cos.

Formula

  • — the angle. Remember the minus from cos.

Worked example

  1. 1

    . Find the gradient at .

  2. 2

    — The power stays. Its derivative, 2x − 3, comes in front.

  3. 3

    — Substitute x = 3.

  4. 4

    — e to the power 0 is 1.

A power of a trig function hides a chain too. means : the outside is the cube, and the inside is .

Worked example

  1. 1

    . Find .

  2. 2

    — Rewrite so you can see the outside and the inside.

  3. 3

    — Outside: the power rule. Inside: sin 2x gives 2 cos 2x.

  4. 4

    — Multiply the numbers and tidy.

Common mistake

Differentiating the angle and stopping. is , not . The angle inside stays .

Key idea

The inside always stays the same. Its derivative is the extra factor at the front.

اشرحها بالعربي

الفكرة نفسها تعمل مع كل الدوال القياسية: طبّق القاعدة المعروفة على الخارج، ثم اضرب في مشتقة الداخل. للعدد النيبيري (هـ) مرفوعًا لمقدار: يبقى الأس كما هو، ومشتقته تأتي في المقدمة. لجيب مقدار: يصبح جيب تمام المقدار نفسه، مضروبًا في مشتقة المقدار. ولجيب تمام مقدار: يصبح سالب الجيب مضروبًا في مشتقة المقدار، والزوايا بالراديان. وقوة الدالة المثلثية تخفي سلسلة أيضًا: الجيب تكعيب معناه قوس الجيب كله مرفوع للقوة الثالثة، فالخارج هو القوة والداخل هو الجيب. الخطأ الشائع: اشتقاق الزاوية والتوقف؛ الزاوية داخل الدالة تبقى كما هي، ومشتقتها هي العامل الإضافي في المقدمة.

See this step move in Lemmara

Step 4 of 6

ln and tan of an expression (0606/4037)

Rule

This step is for 0606 and 4037 only. 4PM1 does not ask you to differentiate ln or tan.

For ln, the outside rule is “1 over”. So the inside goes on the bottom and its derivative goes on top.

Formula

  • — the expression inside the ln. It must be positive.

  • — its derivative, on top.

Formula

  • — the angle, in radians.

Worked example

  1. 1

    . Find the gradient at .

  2. 2

    — Inside on the bottom, its derivative on top.

  3. 3

    — Substitute. Leave it as a fraction.

Worked example

  1. 1

    . Find .

  2. 2

    — The inside, 3x, gives 3.

  3. 3

    — Log law first: the root is the power 1/2, and it comes to the front.

  4. 4

    — Derivative of the inside over the inside.

  5. 5

    — Put the terms together.

Common mistake

Writing . That forgets the inside's derivative, 2x, on top.

Common mistake

Splitting a sum inside ln. is not . Log laws split products, not sums.

Key idea

ln of anything: derivative of the inside over the inside.

اشرحها بالعربي

هذه الخطوة لمنهجي الرياضيات الإضافية في كامبريدج فقط. في اللوغاريتم الطبيعي القاعدة الخارجية هي «واحد على»، فيذهب الداخل إلى المقام ومشتقته إلى البسط: مشتقة الداخل على الداخل. وفي الظل تصبح المشتقة مشتقة الداخل مضروبة في مربع القاطع للداخل نفسه. في المثال الأول نكتب مشتقة الداخل على الداخل ثم نعوّض ونترك الناتج كسرًا. وفي الثاني نشتق الظل مع ضرب في مشتقة الزاوية، ونستخدم قانون اللوغاريتم أولًا لننزل الجذر على صورة نصف أمام اللوغاريتم، ثم نشتق. الخطأ الشائع: نسيان مشتقة الداخل في البسط، أو تجزئة لوغاريتم مجموع؛ قوانين اللوغاريتم تفصل حاصل الضرب لا الجمع.

See this step move in Lemmara

Step 5 of 6

Using it: exact answers and dy/dx = 0

Exams often ask you to find , then use it: find an exact gradient, or solve . Factorise the derivative, then ask which factor can be zero.

Worked example

  1. 1

    . Solve for .

  2. 2

    — Outside: the power rule. Inside: cos 2x gives −2 sin 2x.

  3. 3

    — Tidy into factors.

  4. 4

    — Cos is never below −1, so this bracket is never 0.

  5. 5

    — So the only way to get 0 is from this factor.

  6. 6

    — Double the range. Sin is 0 at 0, π and 2π, and only π is inside.

  7. 7

    — Halve to get x.

Marks usually go: one for the outside part, one for the inside's derivative, then marks for solving. So write the unsimplified line first, then tidy.

Common mistake

Dividing by a factor without checking it. A factor like or is never 0, so say so; a factor like can be 0, so solve it.

Key idea

Find the derivative, factorise it, then set each factor that can be zero equal to zero.

اشرحها بالعربي

في الامتحان غالبًا تُوجد المشتقة ثم تُستخدم: لإيجاد ميل دقيق، أو لحل معادلة المشتقة تساوي صفرًا. الطريقة: حلّل المشتقة إلى عوامل، ثم اسأل: أي عامل يمكن أن يساوي صفرًا؟ في المثال نشتق القوس المرفوع لقوة بقاعدة السلسلة، ونرتّب الناتج عوامل. القوس الذي فيه اثنان زائد جيب تمام لا يساوي صفرًا أبدًا لأن جيب التمام لا يقل عن سالب واحد، فيبقى عامل الجيب فقط. نضاعف مدى الزاوية، ونجد أين يكون الجيب صفرًا داخل المدى الجديد، ثم ننصّف. اكتب السطر قبل التبسيط أولًا، فعليه درجات. الخطأ الشائع: القسمة على عامل دون التحقق هل يمكن أن يكون صفرًا.

See this step move in Lemmara

Step 6 of 6

Which method? Read the question

Spot the inside first. If there is no inside, you do not need the chain rule.

You seeYou do
A bracket to a power, or a root of a bracketPower rule on the bracket, like , times the inside's derivative
Bring it up as a negative power first
or or
Rewrite as ; the outside is the power
(0606 / 4037); use log laws first
(0606 / 4037)

Key idea

Today's AI systems learn with the chain rule. To train a neural network, a computer works out how each setting affects the final error, link by link through the network. This method, called backpropagation, is the chain rule used millions of times.

Common mistake

Using the chain rule on two functions multiplied together, like . That is a product: see the product rule lesson.

Key idea

Outside first, inside unchanged, then times the derivative of the inside.

اشرحها بالعربي

ابحث عن «الداخل» أولًا؛ إذا لم يوجد داخل فلا تحتاج قاعدة السلسلة. قوس مرفوع لقوة أو جذر قوس: قاعدة القوى على القوس ثم اضرب في مشتقة الداخل. عدد مقسوم على قوس مرفوع لقوة: انقله إلى البسط بقوة سالبة أولًا. العدد النيبيري مرفوعًا لمقدار: مشتقة الأس في الدالة نفسها. جيب مقدار أو جيب تمامه: مشتقة المقدار في جيب التمام، أو سالبها في الجيب. قوة لدالة مثلثية: أعد كتابتها قوسًا مرفوعًا لقوة. اللوغاريتم الطبيعي لمقدار: مشتقة الداخل على الداخل بعد قوانين اللوغاريتم. الظل لمقدار: مشتقة الداخل في مربع القاطع. الخطأ الشائع: استخدام السلسلة مع دالتين مضروبتين؛ هذه قاعدة الضرب.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 17 questions on this topic

Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.

Try a real exam question on this

Solve it →