Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Practice questions · Functions

Functions, Practice Questions

Six original Functions practice questions of rising difficulty, each with a complete worked solution. They cover images and objects, composite functions fg(x)=f(g(x))fg(x)=f(g(x)), inverse functions f1(x)f^{-1}(x), finding an unknown function, finding unknown constants, and the absolute value function.

Attempt each under timing, then check every line.

How to use these practice questions

The six questions below rise in difficulty across the whole Functions chapter, from finding an image to solving an absolute value equation. Give yourself roughly five to eight minutes per question and work on paper first, writing every line the way you would in the real exam, a method line, a clear substitution, then the final answer.

Resist the urge to peek. Only once you have committed to a full answer should you open the solution and mark yourself line by line.

When your working differs from ours, stop at the exact line where the two part company; that single step is almost always where the mark was lost. Because Add Math is marked analytically, a clear method line still earns credit even when the final arithmetic slips, so always show your substitution in full.

Treat this page as a rehearsal, not a test, the point is to find weak steps now, while there is still time to fix them.

Six practice questions

Q1[3 marks]

The function ff is defined by f(x)=3x4f(x)=3x-4. Find (a) the image of 22, and (b) the object whose image is 1111.

Show worked solution

(a) The image of 22 is the output f(2)f(2). Substitute the object x=2x=2 into the rule and simplify:

f(2)=3(2)4=64=2f(2)=3(2)-4=6-4=2

(b) An object whose image is 1111 is a value of xx with f(x)=11f(x)=11. Set the rule equal to 1111 and solve the linear equation for xx:

3x4=11    3x=15    x=53x-4=11 \;\Rightarrow\; 3x=15 \;\Rightarrow\; x=5

Answer

The image of 22 is 22, and the object is 55. Check part (b) by substituting back: f(5)=3(5)4=11f(5)=3(5)-4=11, as required.

Q2[4 marks]

Two functions are defined by f(x)=2x+1f(x)=2x+1 and g(x)=x23g(x)=x^{2}-3. Find (a) the composite function fg(x)fg(x), and (b) the value of gf(2)gf(2).

Show worked solution

(a) fg(x)fg(x) means f(g(x))f(g(x)), so gg acts first. Replace the input of ff with the whole of g(x)=x23g(x)=x^{2}-3, then expand carefully:

fg(x)=f(x23)=2(x23)+1=2x26+1=2x25fg(x)=f(x^{2}-3)=2(x^{2}-3)+1=2x^{2}-6+1=2x^{2}-5

(b) gf(x)gf(x) means g(f(x))g(f(x)), so now ff acts first. Work inside-out: find f(2)f(2), then apply gg to that result.

f(2)=2(2)+1=5f(2)=2(2)+1=5
gf(2)=g(5)=(5)23=253=22gf(2)=g(5)=(5)^{2}-3=25-3=22

Answer

fg(x)=2x25fg(x)=2x^{2}-5 and gf(2)=22gf(2)=22. Check part (b) the other way: gf(x)=g(2x+1)=(2x+1)23=4x2+4x2gf(x)=g(2x+1)=(2x+1)^{2}-3=4x^{2}+4x-2, so gf(2)=4(4)+4(2)2=22gf(2)=4(4)+4(2)-2=22, which agrees.

Q3[4 marks]

A function is defined by f(x)=4x+1f(x)=4x+1. Find (a) the inverse function f1(x)f^{-1}(x), and (b) the value of f1(9)f^{-1}(9).

Show worked solution

(a) To find the inverse, let y=f(x)y=f(x), then make xx the subject and swap the letters at the end. Start from the rule:

y=4x+1    y1=4x    x=y14y=4x+1 \;\Rightarrow\; y-1=4x \;\Rightarrow\; x=\frac{y-1}{4}

Replacing yy with xx gives the inverse function:

f1(x)=x14f^{-1}(x)=\frac{x-1}{4}

(b) Substitute x=9x=9 into the inverse you found:

f1(9)=914=84=2f^{-1}(9)=\frac{9-1}{4}=\frac{8}{4}=2

Answer

f1(x)=x14f^{-1}(x)=\dfrac{x-1}{4} and f1(9)=2f^{-1}(9)=2. Check by running ff forward: f(2)=4(2)+1=9f(2)=4(2)+1=9, so the inverse sends 99 back to 22, as it should.

Q4[4 marks]

The function ff is defined by f(x)=3x+1f(x)=3x+1, and the composite function fg(x)=6x2fg(x)=6x-2. Find the function g(x)g(x).

Show worked solution

Here fg(x)=f(g(x))fg(x)=f(g(x)), so wherever ff has an input, that input is now the whole of g(x)g(x). Apply the rule of ff to g(x)g(x) and set it equal to the given composite:

f(g(x))=3g(x)+1=6x2f(g(x))=3\,g(x)+1=6x-2

Now treat g(x)g(x) as the unknown and solve. Subtract 11 from both sides, then divide by 33:

3g(x)=6x3    g(x)=2x13\,g(x)=6x-3 \;\Rightarrow\; g(x)=2x-1

Answer

g(x)=2x1g(x)=2x-1. Check by rebuilding the composite: fg(x)=f(2x1)=3(2x1)+1=6x3+1=6x2fg(x)=f(2x-1)=3(2x-1)+1=6x-3+1=6x-2, which matches the question.

Q5[5 marks]

A function is defined by f(x)=ax+bf(x)=ax+b, where aa and bb are constants. Given that f(1)=5f(1)=5 and f(3)=11f(3)=11, find (a) the values of aa and bb, and (b) the inverse function f1(x)f^{-1}(x).

Show worked solution

(a) Turn each given value into an equation by substituting the object into the rule. From f(1)=5f(1)=5 and f(3)=11f(3)=11:

a+b=5and3a+b=11a+b=5 \quad\text{and}\quad 3a+b=11

Subtract the first equation from the second to eliminate bb, then back-substitute:

(3a+b)(a+b)=115    2a=6    a=3(3a+b)-(a+b)=11-5 \;\Rightarrow\; 2a=6 \;\Rightarrow\; a=3
a+b=5    3+b=5    b=2a+b=5 \;\Rightarrow\; 3+b=5 \;\Rightarrow\; b=2

So the function is f(x)=3x+2f(x)=3x+2. (b) Find the inverse by letting y=3x+2y=3x+2 and making xx the subject:

y=3x+2    x=y23    f1(x)=x23y=3x+2 \;\Rightarrow\; x=\frac{y-2}{3} \;\Rightarrow\; f^{-1}(x)=\frac{x-2}{3}

Answer

a=3a=3, b=2b=2, so f(x)=3x+2f(x)=3x+2 and f1(x)=x23f^{-1}(x)=\dfrac{x-2}{3}. Check the constants: f(1)=3+2=5f(1)=3+2=5 and f(3)=9+2=11f(3)=9+2=11, both correct.

Q6[5 marks]

The function ff is defined by f(x)=2x6f(x)=|\,2x-6\,|. Find (a) the value of f(1)f(1), and (b) all values of xx for which f(x)=4f(x)=4.

Show worked solution

(a) The absolute value of a number is its distance from zero, so it is never negative. Substitute x=1x=1 and take the size of the result:

f(1)=2(1)6=4=4f(1)=|\,2(1)-6\,|=|-4|=4

(b) The equation 2x6=4|\,2x-6\,|=4 means the inside expression is 44 units from zero, so it can equal either +4+4 or 4-4. Split into two cases and solve each:

2x6=4    2x=10    x=52x-6=4 \;\Rightarrow\; 2x=10 \;\Rightarrow\; x=5
2x6=4    2x=2    x=12x-6=-4 \;\Rightarrow\; 2x=2 \;\Rightarrow\; x=1

Answer

f(1)=4f(1)=4, and f(x)=4f(x)=4 when x=1x=1 or x=5x=5. Check both: 2(1)6=4=4|\,2(1)-6\,|=|-4|=4 and 2(5)6=4=4|\,2(5)-6\,|=|4|=4.

Splitting into a positive and a negative case is what makes sure you find both answers, not just one.

How to mark yourself like an examiner

Add Math is marked analytically, which means marks are attached to steps, not only to the final number. When you check your own script, award yourself credit the way a marker would: look for the correct method being started, the right substitution, and a clean final statement.

  • Method mark: did you write the correct rule or move, for example fg(x)=f(g(x))fg(x)=f(g(x)), or setting the rule equal to the given image?
  • Substitution mark: is the correct value put into the correct place, with brackets around any negative object?
  • Answer mark: is the final value stated clearly, and does it survive a check by substituting back?
  • For an absolute value equation, you only earn full marks if you show both the positive and the negative case.
  • If your final number is wrong but the method line is right, give yourself the method mark, that is exactly what a real marker does.

How a teacher helps

Marking yourself is powerful, but it is hard to see your own blind spots. In a one-to-one lesson our teacher watches the exact line where a mark slips away, a composite read in the wrong order, a missing bracket, or only one case shown for an absolute value equation, and corrects the habit on the spot.

Because our teachers are experienced, you work with someone who explains the why behind each step. Lessons are taught in English, while SPM papers are set in both Malay and English, so we make sure the notation reads the same to you either way.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How long should each of these questions take me?

Aim for roughly five to eight minutes each, rising with the mark value. If a question takes far longer, note it and bring it to a lesson, the time it steals in the exam is often the real problem, not the topic itself.

In fg(x)fg(x), which function acts first?

The one written closest to xx. So fg(x)=f(g(x))fg(x)=f(g(x)) applies gg first, then ff.

Reading the letters right to left keeps the order straight.

Why does an absolute value equation give two answers?

Because A=4|A|=4 means AA is 44 units from zero, so A=4A=4 or A=4A=-4. Both cases are valid, and you must solve each to find every value of xx.

Do I lose all the marks if my final answer is wrong?

No. Because marking is analytic, a correct method line and a correct substitution still earn marks even if the arithmetic slips at the end.

That is why you should always show full working.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply