Functions
Chapter: Functions Level: 5 — Mastery (cross-domain: math + physics + coding, build/prove) Time limit: 75 minutes Total marks: 50
Question 1 — Build & Prove: Inverses, Composition, Parity (18 marks)
Consider the function
(a) State the domain and range of . Justify the range by expressing and solving for . (4)
(b) Prove algebraically that is one-to-one (injective), and hence explain why exists. Reference the horizontal line test in your reasoning. (4)
(c) Find explicitly, stating its domain. (4)
(d) Let . Compute as a single simplified rational expression and state any excluded values of . (4)
(e) Define on the common domain. Determine algebraically whether is even, odd, or neither. (2)
Question 2 — Physics Model: Piecewise Motion & Transformations (18 marks)
A drone's height above ground (in metres) as a function of time (seconds) is modelled by the piecewise function
(a) Sketch over , clearly labelling the key features at . State the height at each. (5)
(b) Verify that is continuous at and at by checking the piece values. Identify the interval(s) on which is increasing, constant, and decreasing. (5)
(c) The drone's average vertical velocity on is . Compute it on and on , and interpret the sign of each physically. (4)
(d) A second drone follows the model . Describe in words the transformation from to , and state the new domain of and . (4)
Question 3 — Coding & Reasoning: Function Composition Machine (14 marks)
A student writes pseudocode for numeric functions:
function f(x): return 2*x + 1
function g(x): return x*x
function apply(F, G, x): return F(G(x))
(a) Using the definitions above, compute apply(f, g, 3) and apply(g, f, 3) by hand, showing the composition being evaluated. Explain why the two results differ (comment on non-commutativity). (4)
(b) Write the closed-form algebraic expressions for and , then solve the equation . (5)
(c) The student wants to add a function h so that apply(f, h, x) returns the identity, i.e. for all . Derive the required rule for h(x) (i.e. find ), and verify by substitution that . (5)
Answer keyMark scheme & solutions
Question 1
(a) Domain: all real except , i.e. . (1) Set . Solve: . (2) This has a solution for every . Hence range . (1)
(b) Suppose : . Cross-multiply: . . (3) Since , is injective; every horizontal line meets the graph at most once (horizontal line test passes), so exists. (1)
(c) From (a), swapping roles: , domain (the range of ). (4)
(d) . With : Numerator: . Denominator: . (2) So . Excluded values: (original domain) and (where , i.e. ). (2)
(e) . Then . Hence is odd (as a difference of and its reflected version, the antisymmetric combination). (2)
Question 2
(a) Values: ; (from : ); ; . Graph: straight line on , horizontal at on , downward parabola from to on . (5)
(b) At : left piece , right piece → continuous. At : middle piece , right piece → continuous. (3) Increasing on ; constant on ; decreasing on . (2)
(c) On : m/s (positive → rising). (2) On : m/s (negative → descending). (2)
(d) : horizontal shift right by 1 unit and vertical shift up by 5 units. (2) New domain: (original shifted right by 1). (1) m. (1)
Question 3
(a) apply(f,g,3): , then . (1)
apply(g,f,3): , then . (1)
Results . (1) Composition is not commutative: applying then generally differs from then . (1)
(b) . (1) . (1) Equation: . (2) So or . (1)
(c) Need : . (3) Check: , . ✓ (2)
[
{"claim":"g(x)=f(f(x)) simplifies to (7x-8)/(4x-1)", "code":"x=symbols('x'); f=(3*x-2)/(x+1); g=f.subs(x,f); result = simplify(g-(7*x-8)/(4*x-1))==0"},
{"claim":"f inverse is (x+2)/(3-x)", "code":"x=symbols('x'); f=(3*x-2)/(x+1); inv=(x+2)/(3-x); result = simplify(f.subs(x,inv)-x)==0"},
{"claim":"H average velocity on [7,9] is -4", "code":"result = ((12-2*(9-7)**2)-12)/(9-7)==-4"},
{"claim":"(f o g)=(g o f) solutions are 0 and -2", "code":"x=symbols('x'); sol=solve(Eq(2*x**2+1,(2*x+1)**2),x); result = set(sol)=={0,-2}"}
]