Functions
Level: 2 (Recall — definitions, standard textbook problems, short derivations) Time limit: 30 minutes Total marks: 40
Question 1. [3 marks] Define what is meant by a function. State clearly what the domain, codomain, and range of a function are. (1 mark each)
Question 2. [4 marks] For the function , evaluate: (a) (1) (b) (1) (c) (1) (d) (leave in simplified form) (1)
Question 3. [3 marks] State the vertical line test. Explain briefly why the graph of does not represent as a function of .
Question 4. [5 marks] Find the domain of each function. (a) (2) (b) (2) (c) (1)
Question 5. [4 marks] Match each function to its type (constant, linear, quadratic, rational, radical): (a) (b) (c) (d)
Question 6. [5 marks] Given and , find: (a) (2) (b) (2) (c) State whether composition of functions is commutative here. (1)
Question 7. [4 marks] Find the inverse function for . Verify your answer by computing .
Question 8. [5 marks] Classify each function as even, odd, or neither, showing the algebraic test . (a) (2) (b) (2) (c) (1)
Question 9. [4 marks] The graph of is transformed. Describe in words the effect on the graph of each: (a) (1) (b) (1) (c) (1) (d) (1)
Question 10. [3 marks] State what it means for a function to be increasing on an interval. For , state one interval where it is decreasing and one where it is increasing.
Answer keyMark scheme & solutions
Question 1. [3 marks]
- A function is a rule/mapping that assigns to each input exactly one output. (1)
- Domain: the set of all permitted input values (x-values). (1)
- Codomain: the set into which outputs are declared to map; Range: the set of actual output values produced. (1)
Why: The defining property is uniqueness — one input → one output.
Question 2. [4 marks]
- (a) (1)
- (b) (1)
- (c) (1)
- (d) (1)
Question 3. [3 marks]
- Vertical line test: A graph represents a function iff every vertical line meets the graph at most once. (2)
- For : a vertical line such as meets the curve at and (two outputs), so it fails the test. (1)
Question 4. [5 marks]
- (a) Denominator ; domain (2)
- (b) Need ; domain (2)
- (c) Polynomial: domain (all reals) (1)
Question 5. [4 marks]
- (a) constant (1)
- (b) linear (1)
- (c) rational (1)
- (d) radical (1)
Question 6. [5 marks]
- (a) (2)
- (b) (2)
- (c) Not commutative: in general. (1)
Question 7. [4 marks]
- Let . Swap: . So . (3)
- Check: . ✓ (1)
Question 8. [5 marks]
- (a) → even (2)
- (b) → odd (2)
- (c) ; not equal to nor → neither (1)
Question 9. [4 marks]
- (a) Shift up by 3 units. (1)
- (b) Shift right by 2 units. (1)
- (c) Reflection in the x-axis. (1)
- (d) Vertical stretch by factor 2. (1)
Question 10. [3 marks]
- A function is increasing on an interval if for any in it, (outputs rise as inputs rise). (1)
- is decreasing on (1) and increasing on . (1)
[
{"claim":"f(a+1) simplifies to 2a^2 + a for f(x)=2x^2-3x+1","code":"a=symbols('a'); f=lambda x: 2*x**2-3*x+1; result = simplify(f(a+1) - (2*a**2 + a))==0"},
{"claim":"f(2)=3 for f(x)=2x^2-3x+1","code":"result = (2*4-3*2+1)==3"},
{"claim":"composition f(g(x))=x^2+3 and g(f(x))=x^2+6x+9","code":"x=symbols('x'); f=lambda t:t+3; g=lambda t:t**2; result = (simplify(f(g(x))-(x**2+3))==0) and (simplify(g(f(x))-(x**2+6*x+9))==0)"},
{"claim":"inverse of (x-5)/2 is 2x+5 and f(finv(x))=x","code":"x=symbols('x'); f=lambda t:(t-5)/2; finv=lambda t:2*t+5; result = simplify(f(finv(x))-x)==0"},
{"claim":"x^3 is odd: f(-x)=-f(x)","code":"x=symbols('x'); result = simplify((-x)**3 + x**3)==0"}
]