Functions as a Mapping
شرح الدوال كتطبيق بالعربي: الدرس بالإنجليزية كما في الامتحان، ومع كل خطوة شرحها بالعربي.
Number machines forwards and backwards, a machine as an expression, function notation f(5), and values that cannot be in the domain.
- 7 steps
- 5 min
- 3 syllabuses
Try a real exam question on this
4MA1/1H · Jun 2025 · Q16 · 4 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) = 9 − √x with x ≥ 0 and g(x) = 4x², evaluate f(9) and solve the inequality fg(x) < 0, showing algebraic working.
(a) 1 mark
Calculate the value of f(9) using the definition of f.
- Understand the question. The function f of x is 9 minus the square root of x, and we must find f of 9.
- Use substitution into a function. The function f of x is 9 minus the square root of x, and the question asks for f of 9.
- f(9) = 9 − √9
- Work out the square root. The square root of 9 is 3, so 9 minus 3 is 6.
- = 9 − 3 = 6
Answer 6
(b) 3 marks
Solve the inequality fg(x) < 0, showing clear algebraic steps.
- Understand the question. The function fg of x means put g of x into f, which gives 9 minus the square root of 4 x squared, and we must find the values of x that make it less than 0.
- Use composite functions and inequalities. fg means put g of x into f of x, and the question asks where the result is less than zero.
- Why does this work? fg(x) means do g first, then put its answer into f.
- The function nearest to x acts first, just like working from the inside of brackets outwards.
- fg(x) = f(4x²) = 9 − √(4x²)
- Simplify the square root. The square root of 4x squared is 2x because x is not negative.
- = 9 − 2x
- Set up the inequality. The expression 9 minus 2x must be less than zero.
- 9 − 2x < 0
- Rearrange the inequality. Add 2x to both sides to get 9 less than 2x.
- 9 < 2x
- Divide by 2. Divide both sides by 2 to get x greater than 9 over 2, which is 4.5.
- x > 9/2 (x > 4.5)
Answer x > 9/2
The lesson, step by step
Step 1 of 7
Number Machines
A number machine does its steps in order. Follow the arrows.
Worked example
- 1
— The machine. It does +5 first, then × 4, in the order the arrows point.
- 2
— First arrow: add 5 to the input 10.
- 3
— Next arrow: multiply the 15 by 4. The output is 60.
Common mistake
Doing 5 × 4 first. The machine goes in order, left to right.
اشرحها بالعربي
آلة الأعداد تنفّذ خطواتها بالترتيب، فاتبع الأسهم من اليسار إلى اليمين كما في الشكل. في المثال نبدأ بالمدخل وننفّذ عملية السهم الأول (الجمع)، ثم نأخذ الناتج وننفّذ عليه عملية السهم التالي (الضرب)، فنحصل على المخرج. الخطأ الشائع أن تبدأ بالضرب كما في ترتيب العمليات المعتاد؛ الآلة تسير بترتيب الأسهم فقط.
Step 2 of 7
Working Backwards
“Work out the input when the output is 100”: go right to left and undo each step.
Worked example
- 1
— Draw the arrows backwards from the output 100. Each step becomes its opposite: + 5 becomes − 5, and × 4 becomes ÷ 4.
- 2
— Undo the last step first. The last step was × 4, so divide by 4.
- 3
— Now undo the + 5 by taking away 5. The input is 20.
Key idea
Check forwards: (20 + 5) × 4 = 100.
اشرحها بالعربي
إذا أُعطيت المخرج وطُلب المدخل، فارجع من اليمين إلى اليسار وألغِ كل خطوة. ارسم الأسهم بالعكس، وكل عملية تصبح عكسها: الجمع يصبح طرحًا، والضرب يصبح قسمة. ابدأ بإلغاء الخطوة الأخيرة أولًا، ثم التي قبلها، حتى تصل إلى المدخل. وفي النهاية تحقّق بتشغيل الآلة إلى الأمام على الجواب لترى أنه يعطي المخرج نفسه.
Step 3 of 7
A Machine as an Expression
When the input is a letter, write each step on the letter. Use a bracket before dividing or multiplying a whole expression.
Worked example
- 1
— A machine with the letter y as its input.
- 2
— First step: y × 7 is written 7y.
- 3
— Second step: take 9 from that. This is the output.
- 4
— Another machine, with input n.
- 5
— First step: n × 3 is written 3n.
- 6
— Second step: add 5 to the 3n.
- 7
— Last step: divide by 2. Write it as a fraction, so the whole of 3n + 5 is divided by 2.
Common mistake
Writing 3n + 5 ÷ 2. That only divides the 5.
اشرحها بالعربي
عندما يكون المدخل حرفًا، طبّق كل خطوة على الحرف واكتب التعبير الناتج. الضرب في عدد يُكتب بوضع العدد قبل الحرف، ثم نضيف أو نطرح كما تقول الخطوة التالية. إذا جاءت قسمة أو ضرب بعد جمع، فيجب أن تشمل التعبير كله، لذلك اكتبها ككسر أو ضع التعبير في قوس. الخطأ الشائع أن تكتب علامة القسمة بعد العدد الأخير فقط، فيُقسم ذلك العدد وحده لا التعبير كله.
Step 4 of 7
Function Notation (Higher)
is a machine: times 3, then take 4. means put 5 in.
Worked example
- 1
— Replace every x with 5, and keep the brackets.
- 2
— Multiply first: 3 × 5 = 15.
- 3
— Then subtract: 15 − 4 = 11.
- 4
— Replace x with −2. The brackets stop you losing the minus sign.
- 5
— 3 × (−2) = −6, because a positive times a negative is negative.
- 6
— −6 − 4 = −10. Both are negative, so add the sizes and keep the minus.
- 7
— Replace x with 1/3. A fraction works the same way.
- 8
— 3 × 1/3 = 1, because the 3s cancel.
- 9
— 1 − 4 = −3.
A square needs more care. Square the bracket first, then multiply.
Worked example
- 1
— A function with a square in it. Find f(−2).
- 2
— Replace each x with −2, in brackets.
- 3
— (−2)² = 4. A negative times a negative is positive.
- 4
— −3 × (−2) = +6, for the same reason.
- 5
— 4 + 6 = 10.
Common mistake
Writing −2² and getting −4. Without brackets only the 2 is squared. Write (−2)² = 4.
اشرحها بالعربي
رمز الدالة يصف آلة: إف لعدد معناها أن تضع هذا العدد في الآلة. الطريقة: استبدل كل مجهول بالعدد داخل قوس، ثم اضرب أولًا ثم اطرح. القوس مهم مع الأعداد السالبة حتى لا تضيع الإشارة، والموجب في السالب سالب، والكسور تُعامل بالطريقة نفسها. إذا كان في الدالة مربع، فربّع القوس أولًا ثم اضرب. الخطأ الشائع تربيع العدد السالب دون قوس، فيُربَّع العدد وحده وتبقى الإشارة سالبة؛ مع القوس يصبح الناتج موجبًا.
Step 5 of 7
Solving f(x) = a Number (Higher)
Exams often give you the output and ask for the input. Write equal to the number, then solve it like an equation.
Worked example
- 1
— Find x when the output is 17.
- 2
— Write the rule for f(x), and put it equal to the output 17.
- 3
— Add 4 to both sides.
- 4
— Divide both sides by 3.
- 5
— Check: put 7 back into the machine. It gives 17, so x = 7 is right.
A square in f often gives two answers. Move everything to one side and factorise.
Worked example
- 1
— Find x when the output is 15.
- 2
— Write the rule for f(x), equal to 15.
- 3
— Take 15 from both sides, so one side is 0.
- 4
— Factorise. Two numbers that multiply to −15 and add to +2 are +5 and −3.
- 5
— Each bracket equal to 0 gives an answer.
- 6
— Check both: (−5)² = 25 and 2 × (−5) = −10; 3² = 9 and 2 × 3 = 6. Both give 15.
Common mistake
Putting 17 in place of x. The 17 is the output, so it goes on the right of the equals sign.
Key idea
Show each line. Most of the marks are for writing f(x) equal to the number and for solving correctly. If the question limits x, for example x > 0, cross out any answer that does not fit.
اشرحها بالعربي
كثيرًا ما يعطيك الامتحان المخرج ويطلب المدخل. الطريقة: اكتب قاعدة الدالة مساوية للعدد المعطى، ثم حلّها كمعادلة عادية: انقل العدد ثم اقسم. تحقّق بإعادة الجواب إلى الآلة لترى أنه يعطي المخرج نفسه. إذا كان في الدالة مربع فغالبًا يكون هناك جوابان: انقل كل الحدود إلى طرف واحد ليصبح الطرف الآخر صفرًا، ثم حلّل إلى قوسين وساوِ كل قوس بالصفر. الخطأ الشائع أن تضع المخرج مكان المجهول؛ المخرج يوضع في الطرف الآخر من إشارة المساواة. اكتب كل سطر، ومعظم الدرجات على كتابة المعادلة والحل الصحيح، واحذف أي جواب لا يحقق شرط السؤال.
Step 6 of 7
Numbers That Cannot Go In (Higher)
Some inputs break a function. You cannot divide by 0, and you cannot square root a negative number.
Worked example
- 1
— A fraction with x in the bottom. The bottom of a fraction must never be 0.
- 2
— Find the input that makes the bottom 0.
- 3
— Take 1 from both sides.
- 4
— Divide both sides by 3.
- 5
— Only this one value is left out of the domain. Every other input works.
Key idea
For the inside cannot be negative, so x must be 2 or more.
اشرحها بالعربي
بعض المدخلات تُفسد الدالة: لا يمكن القسمة على صفر، ولا يوجد جذر تربيعي لعدد سالب. إذا كان المجهول في مقام الكسر، فساوِ المقام بالصفر وحلّ المعادلة لتجد القيمة الممنوعة، ثم اكتب أن المجهول لا يساوي هذه القيمة؛ فهي وحدها مستبعدة من المجال وكل القيم الأخرى مسموحة. وإذا كان المجهول تحت جذر تربيعي، فما تحت الجذر لا يكون سالبًا، فيجب أن يكون المجهول أكبر من أو يساوي العدد الذي يجعله صفرًا.
Step 7 of 7
Which Method? Read the Question
Find what you are given. An input means go forwards. An output means undo backwards. means put 5 in. means solve for x.
| You see | You do |
| “Find the output” | Follow the steps in order |
| “Find the input” | Undo each step, last first |
| A letter goes in | Write an expression; bracket before ÷ |
| f(5), f(−2) | Replace x, negatives in brackets |
| “Cannot be in the domain” | Bottom = 0, or root of a negative |
Key idea
Reversing a machine is the same idea as an inverse function. See Inverse Functions.
اشرحها بالعربي
ابدأ بمعرفة ما أُعطيت: إذا أُعطيت المدخل فسِر إلى الأمام، وإذا أُعطيت المخرج فارجع وألغِ الخطوات. الجدول يلخص: لإيجاد المخرج اتبع الخطوات بالترتيب. لإيجاد المدخل ألغِ كل خطوة بدءًا من الأخيرة. إذا كان المدخل حرفًا فاكتب تعبيرًا، وضع قوسًا قبل القسمة. عند التعويض بعدد استبدل المجهول، وضع الأعداد السالبة داخل أقواس. وإذا سُئلت عما لا يدخل في المجال، فابحث عن مقام يساوي صفرًا أو جذر لعدد سالب. وعكس الآلة هو فكرة الدالة العكسية نفسها.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 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 →
- 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 →
- 0580/23May/Jun 2025 · Q228 marksWork with f(x) = 2x + 5, g(x) = x − 4 and h(x) = 5ˣ: evaluate, invert and solve.Solve it →
- 0580/42May/Jun 2025 · Q196 marksUse the functions f(x) = x + 1, g(x) = 5 − 2x and h(x) = 2ˣ to evaluate, find a range, and solve for x.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.