Composite Functions
شرح الدوال المركبة بالعربي: الدرس بالإنجليزية كما في الامتحان، ومع كل خطوة شرحها بالعربي.
fg(3) and fg(x), solving fg(x) = k and fg(x) > 0, and the inverse of a composite function (Higher).
- 8 steps
- 5 min
- 4 syllabuses
Try a real exam question on this
0580/42 · Feb/Mar 2025 · Q14 · 5 marks · Solve it step by step, the way the examiner marks it.
Loading the animated solution…
See the solution as textText version of the solution
For f(x) = 5 − 4x, evaluate the function at a value, form a composite expression in x, and find the inverse function.
(a) 1 mark
Calculate f(−3) using f(x) = 5 − 4x.
- Understand the question. The function f of x is five minus four x, and we must find the value of f at minus three.
- Substitute minus three into the function. The rule is five minus four times x, so replace x with minus three.
- f(−3) = 5 − 4 × (−3) = 5 + 12 = 17
Answer 17
(b) 2 marks
Substitute 3 − 2x into f and simplify the resulting expression.
- Understand the question. The function f of x is five minus four x, and we must find f of three minus two x, in its simplest form.
- Substitute the expression into the function. The rule is five minus four times x, so replace x with three minus two x.
- f(3 − 2x) = 5 − 4(3 − 2x)
- Expand the bracket. Four times three is twelve and four times minus two x is minus eight x, so subtracting gives minus twelve plus eight x.
- = 5 − 12 + 8x
- Collect like terms. Five minus twelve is minus seven, and the x term stays eight x.
- = 8x − 7
Answer 8x − 7
(c) 2 marks
Determine f⁻¹(x) for the function f(x) = 5 − 4x.
- Understand the question. The function f of x is five minus four x, and we must find its inverse, f to the power minus one of x.
- Find the inverse function. Start with y as the output, then swap x and y and make y the subject.
- Why does this work? The inverse function undoes the function. Its inputs are the function's outputs, and its outputs are the inputs.
- So swap x and y, then rearrange to make y the subject. That writes the undoing as a formula.
- y = 5 − 4x, swap: x = 5 − 4y
- Rearrange for y. Add four y to both sides and subtract x, so four y is five minus x.
- 4y = 5 − x
- Divide by four. y is five minus x all divided by four, so the inverse is that expression.
- f⁻¹(x) = (5 − x)/4
Answer (5 − x)/4
The lesson, step by step
Step 1 of 8
What fg Means (Higher)
fg(x) means put x into g, then put the answer into f. The function next to x goes first.
Worked example
- 1
— the two functions; find fg(3)
- 2
— g first: it is next to the 3
- 3
— then f takes the 7
Common mistake
Working out f(3) first. Read fg(3) as f(g(3)): the inside bracket comes first.
Key idea
Getting dressed is a composite function: first socks, then shoes. Swap the order and you get shoes, then socks on top. Now you know why and are usually different!
اشرحها بالعربي
«إف جي» لعدد ما تعني: ضع العدد أولًا في الدالة جي، ثم ضع الناتج في الدالة إف. القاعدة: الدالة الأقرب إلى المدخل هي التي تُنفَّذ أولًا. في المثال نحسب جي أولًا لأنها بجوار العدد، ثم نعوّض بناتجها في إف. الخطأ الشائع أن تبدأ بإف؛ اقرأها كقوسين متداخلين، والقوس الداخلي أولًا. ومثل لبس الجوارب ثم الحذاء، تغيير الترتيب يغيّر النتيجة، لذلك إف جي وجي إف مختلفتان عادةً.
Step 2 of 8
fg(x) as an Expression
“Find fg(x)” means put the whole of g(x) in place of x in f. Use a bracket.
Worked example
- 1
— g(x) goes into f, so the x in f is replaced by g(x).
- 2
— Every x in f becomes (2x + 1). Keep the bracket.
- 3
— A square means times itself, so write the bracket twice.
- 4
— Multiply each term of one bracket by each term of the other.
- 5
— Collect like terms: 2x + 2x = 4x, and 1 − 4 = −3.
fg(x)
g first, then f.
gf(x)
f first, then g.
اشرحها بالعربي
عندما يُطلب إيجاد إف جي بدلالة المجهول، ضع تعبير جي كاملًا مكان المجهول في إف، داخل قوس. في المثال نستبدل كل مجهول في إف بتعبير جي مع الإبقاء على القوس، ثم نفك التربيع بكتابة القوس مرتين وضرب كل حد في القوس الأول في كل حد في الثاني، ثم نجمع الحدود المتشابهة. لاحظ في المقارنة أن إف جي (جي أولًا) تختلف عن جي إف (إف أولًا).
Step 3 of 8
A Function Twice
Putting a function into itself is a composite function too. The inside goes first, as always.
Worked example
- 1
— pp(−1) means p(p(−1)). Work out the inside p(−1) first.
- 2
— Put −1 into p. Use a bracket to keep the negative sign.
- 3
— 4 × −1 = −4, then −4 − 7 = −11.
- 4
— Now put that answer, −11, into p.
- 5
— 4 × −11 = −44, then −44 − 7 = −51.
Worked example
- 1
— For the expression, put the whole of p(x) into p.
- 2
— Every x in p becomes (4x − 7). Keep the bracket.
- 3
— Multiply out the bracket: 4 × 4x and 4 × −7.
- 4
— −28 − 7 = −35.
Key idea
Check with the number: . It matches above.
اشرحها بالعربي
إدخال الدالة في نفسها دالة مركبة أيضًا، والداخل يُحسب أولًا كالعادة. في المثال الأول نحسب قيمة الدالة عند العدد السالب، ونضعه داخل قوس حتى لا تضيع الإشارة، ثم نأخذ الناتج ونعوّض به في الدالة مرة ثانية. في المثال الثاني نضع تعبير الدالة كاملًا مكان المجهول داخل قوس، ثم نفك القوس ونجمع الأعداد. وفي النهاية نتحقق: التعويض بالعدد نفسه في التعبير الناتج يعطي الجواب السابق نفسه.
Step 4 of 8
Solving fg(x) = k
Find fg(x) first. Then it is an ordinary equation.
Worked example
- 1
— This is fg(x) from the fg(x) card, set equal to 5.
- 2
— Take 5 from both sides, so one side is 0.
- 3
— Divide every term by 4 to make the numbers smaller.
- 4
— Factorise: the numbers +2 and −1 multiply to −2 and add to 1.
- 5
— One of the brackets must be 0, so solve each one.
- 6
— Check x = −2: g first, then f. The answer is 5, so it works.
- 7
— Check x = 1 the same way. It also gives 5.
اشرحها بالعربي
أوجد تعبير إف جي أولًا، ثم تصبح المسألة معادلة عادية. في المثال نساوي التعبير بالعدد المعطى، ثم ننقل العدد إلى الطرف الآخر ليصبح أحد الطرفين صفرًا، ونقسم كل الحدود على عامل مشترك لتصغير الأعداد، ثم نحلل إلى قوسين. بما أن حاصل الضرب صفر فأحد القوسين يساوي صفرًا، فنحل كلًّا منهما. وأخيرًا نتحقق من كل حل بالتعويض في جي أولًا ثم في إف.
Step 5 of 8
Solving fg(x) > 0
Some 4-mark questions ask for an inequality. Find where it equals 0, then use the shape.
Worked example
- 1
— This is fg(x) > 0. First find where it equals 0.
- 2
— Factorise the expression.
- 3
— Set each bracket to 0: 2x + 3 = 0 gives −3/2, and 2x − 1 = 0 gives 1/2. These are the crossing points.
- 4
— So the graph is a U-shape, opening upwards.
- 5
— A U-shape is above 0 outside the two crossing points.
Common mistake
Writing −3/2 < x < 1/2. That part is below the x-axis, where fg(x) < 0.
اشرحها بالعربي
بعض الأسئلة ذات الأربع درجات تطلب متباينة، مثل أن يكون إف جي أكبر من الصفر. الطريقة: أوجد أولًا أين يساوي التعبير صفرًا بالتحليل إلى قوسين، فتحصل على نقطتي تقاطع المنحنى مع محور السينات. معامل مربع المجهول موجب، فالمنحنى على شكل كوب مفتوح إلى الأعلى، ويكون فوق الصفر خارج النقطتين: المجهول أصغر من النقطة الصغرى أو أكبر من النقطة الكبرى. الخطأ الشائع أن تكتب المجهول بين النقطتين؛ هذا الجزء تحت محور السينات حيث يكون التعبير سالبًا.
Step 6 of 8
Inverse of a Composite (Higher)
The 5-mark question: find fg(x), complete the square, then find the inverse.
Worked example
- 1
— Here h = fg for x ≥ −2. First put g into f.
- 2
— Every x in f becomes (x + 3). Keep the brackets.
- 3
— Expand (x + 3)². Then multiply both terms of the second bracket by −2.
- 4
— Collect like terms.
- 5
— Complete the square: half of 4 is 2, and (x + 2)² has an extra 4, so take 4 away.
- 6
— −4 + 3 = −1.
- 7
— Write y for h(x), then add 1 to both sides.
- 8
— Square root both sides. A square has two roots.
- 9
— x ≥ −2 means x + 2 is 0 or more, so keep the plus. Then take 2 from both sides.
- 10
— Swap y for x.
Key idea
For swap and solve, see Inverse Functions.
اشرحها بالعربي
سؤال الخمس درجات: أوجد إف جي، ثم أكمل المربع، ثم أوجد الدالة العكسية. عوّض بجي في إف مع الأقواس، ثم فك الأقواس واجمع الحدود المتشابهة. لإكمال المربع خذ نصف معامل المجهول، ثم اطرح المربع الزائد الذي ظهر. بعد ذلك اكتب صاد بدل الدالة، وانقل العدد، وخذ الجذر التربيعي للطرفين، وتذكّر أن للجذر قيمتين موجبة وسالبة. شرط المجال يحدد الإشارة التي نحتفظ بها، وهنا نختار الموجبة. أخيرًا اعزل المجهول وبدّل الرمزين لتحصل على الدالة العكسية.
Step 7 of 8
Inverse of fg Without Expanding (Higher)
Sometimes you need the inverse of fg. You can skip the expanding: undo the functions in the reverse order.
Formula
Rule
does first, then . To undo it, undo first, then . So goes in first and goes outside.
Worked example
- 1
— Undo +1 with −1, then undo ×2 with ÷2.
- 2
— Undo −3 with +3.
- 3
— f⁻¹ goes in first, because f was the last function to be applied.
- 4
— Put f⁻¹(x) into g⁻¹, which adds 3.
- 5
— Write 3 as 6/2, so the fractions have the same bottom.
- 6
— Add the tops: x − 1 + 6 = x + 5.
- 7
— Check: expand fg first, then swap and solve 2x − 5. It gives the same answer.
Common mistake
Using the same order as fg. The inverse of is , not .
اشرحها بالعربي
يمكن إيجاد معكوس إف جي دون فك الأقواس: نلغي الدالتين بالترتيب المعاكس. إف جي تطبّق جي أولًا ثم إف، فلإلغائها نلغي إف أولًا ثم جي؛ لذلك يكون معكوس إف في الداخل ومعكوس جي في الخارج. في المثال نوجد معكوس كل دالة بعكس عملياتها، ثم نضع معكوس إف داخل معكوس جي، ونوحّد المقامات لنجمع الكسرين. ونتحقق بإيجاد إف جي أولًا ثم عكسها بالتبديل والحل، فنحصل على النتيجة نفسها. الخطأ الشائع هو استخدام الترتيب نفسه بدل عكسه.
Step 8 of 8
Which Method? Read the Question
Find what goes in first.
| You see | You do |
| fg(3) | g(3) first, then f |
| fg(x) | Put g(x) into f, with a bracket |
| fg(x) = 5 | Find fg(x), then solve |
| fg(x) > 0 | Solve = 0, then use the shape |
| (fg)⁻¹ or h⁻¹ | Find fg(x), then swap and solve |
Key idea
fg and gf are usually different. Always check which letter is next to x.
اشرحها بالعربي
القاعدة الأساسية: حدّد ما يدخل أولًا. الجدول يلخّص الحالات: إذا رأيت إف جي لعدد فاحسب جي للعدد أولًا ثم إف. إذا طُلب التعبير فضع جي داخل إف مع قوس. إذا كان التعبير مساويًا لعدد فأوجده ثم حل المعادلة. إذا كانت متباينة فحلّ عند الصفر ثم استخدم شكل المنحنى. وإذا طُلب المعكوس فأوجد التعبير ثم بدّل وحلّ. تذكّر أن إف جي وجي إف تختلفان عادةً، فانظر أي حرف بجوار المجهول.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 0580/42Feb/Mar 2026 · Q158 marksGiven f(x) = 10 − 2x and g(x) = 2x² + 3, find a range, an inverse function, a composite function, and evaluate an inverse for h(x) = 10^(2/x).Solve it →
- 0580/41May/Jun 2026 · Q209 marksWork with functions f, g, h and j: evaluate, solve a composite equation, find a range from a domain, and solve with an inverse.Solve it →
- 0580/42May/Jun 2026 · Q177 marksf(x) = 20 − 3x, g(x) = 64/2ˣ and h(x) = 7 + 2x. Find f(4), the inverse of h, gg(5), and solve g⁻¹(x) = 8.Solve it →
- 0580/43May/Jun 2026 · Q188 marksWork with f(x) = 3x + 1 and g(x) = 5 − 3x: solve an equation, invert, compose, then use an inverse for h(x) = 2²ˣ.Solve it →
- 4024/22May/Jun 2026 · Q133 marksGiven f(x) = 2x + 3 and g(x) = 1/(x − 2), evaluate f and the composite gf.Solve it →
- 4024/23May/Jun 2026 · Q156 marksWith f(x) = 6x + 8 and g(x) = (x − 1)/3, evaluate f, find an inverse, and solve a composite equation.Solve it →
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.