Add Maths · 1 Functions
1 Functions
Before you start
- Making a letter the subject of a formula, including when it appears twice: collect, factorise, divide.
- Completing the square, e.g. . The Quadratic functions lesson teaches it in full.
- Inequality notation: , , , , and combined forms such as .
- The shapes of straight lines, parabolas, cubics, and and for .
Syllabus objectives covered (8)
- Understand the terms: function, domain, range (image set), one–one function, many–one function, inverse function and composition of functions.
- Find the domain and range of functions.
- Recognise and use function notation.
- Understand the relationship between y = f(x) and y = |f(x)|, where f(x) may be linear, quadratic, cubic or trigonometric.
- Explain in words why a given function does not have an inverse.
- Find the inverse of a one–one function.
- Form and use composite functions.
- Use sketch graphs to show the relationship between a function and its inverse.
Part 1 of 7
What makes a rule a function
- A function is a rule that takes each input and gives back exactly one output. The word doing the work is exactly: not two outputs, not none.
- The set of inputs you are allowed to use is the domain. The set of outputs the rule actually produces is the range, which the syllabus also calls the image set.
- A function always comes with its domain. ' for ' means the rule is 'double, then add 3', and you may put in any real number ( stands for the set of all real numbers). Same rule, different domain: a different function.
- You need to read both ways of writing a function. The second is read 'f maps to '.
- means 'use 4 as the input': . Anything can go in the bracket. For , replace every with the whole of : .
- To explain in words why a rule is a function, say that every value in the domain gives exactly one output. For , : each real number, doubled and increased by 3, gives one real number.
- Here is a rule that is not a function: for . The input 9 gives both 3 and . One input with two outputs is enough to fail.
- On a graph, a curve is a function of if every vertical line through the domain meets it exactly once. A circle fails, because the vertical line through its centre meets it twice.
Part 2 of 7
Domain and range, in the right notation
- The domain is about inputs, so write it with : , or , or .
- The range is about outputs, so write it with , or if you are describing a graph: . Writing a range as is wrong. It describes the inputs, which is not what you were asked for.
- Straight line on a restricted domain. Take for . A line with positive gradient is lowest at its left end and highest at its right end, so work out both ends: and .
- Match the signs to the domain. If the domain were , the value 5 would never be reached, and the range would be .
- Quadratic. End values alone are not enough, because a parabola turns. Complete the square to find the turning point first.
- is a square, so it is never negative. Its least value is 0, when . So the least value of is 3, and for the range is .
- When the rule limits the domain. You cannot divide by zero, so needs . You cannot take the square root of a negative number, so needs , which means . A square root is never negative, so its range is .
- The safest route to any range is a quick sketch of the graph over the domain only. Read off the lowest and highest -values the curve actually reaches, and whether each end is included.
Part 3 of 7
One–one, many–one, and why some functions have no inverse
- A function is one–one if different inputs always give different outputs. is one–one: two different numbers cannot be doubled and increased by 3 to give the same answer.
- A function is many–one if at least two different inputs give the same output. for is many–one, because and .
- The graph test: a function is one–one if every horizontal line meets its graph at most once. A whole parabola fails, because a horizontal line above the vertex meets it twice.
- The inverse function undoes . If sends to , then sends back to .
- Now you can see why a many–one function has no inverse. For , , an inverse would have to send 4 back to 2 and to . A rule giving one input two outputs is not a function, so cannot exist.
- When asked to explain in words why a function has no inverse, give the reason and a specific pair: ' is many–one, since , so an inverse would have to map 4 to two different values.' The named pair is what turns a claim into an explanation.
- Restricting the domain fixes the problem. Keep only one side of the turning point: for is one–one, and has the inverse for .
- For a quadratic, cut at the turning point. turns at , so the domain (or ) makes it one–one. This is why completing the square keeps appearing in inverse questions.
Part 4 of 7
Composite functions: fg(x) means g first
- A composite function feeds the output of one function straight into another. means : apply to , then apply to the result.
- Work from the inside out. The function written **next to the ** acts first. In that is , even though you read the first. This is the trap to watch for in every composite question.
- Take and , both for . For , put the whole of wherever has an .
- For , put the whole of into .
- These are different functions: but . Order matters, so never swap the letters to make the algebra easier.
- means , which is applying twice. It does not mean . Here . (The syllabus does not use this notation for trigonometric functions, where means .)
- A composite only exists if every output of the first function is an allowed input of the second. For , the range of must lie inside the domain of .
- Example: for , and for . Then does not exist, because is not in the domain of . To form , you would have to restrict the domain of to .
- That is what the syllabus means by 'Domain Domain ' and 'Range Range '. can never accept an input that refuses, and it can never produce an output that cannot produce.
Part 5 of 7
Finding the inverse of a one–one function
- The method is the same every time: write , rearrange to make the subject, then swap the letters so the answer is a function of .
- Find for , . Write . Multiply by 3 to get , then subtract 4.
- Swap the letters: , for . Notice the steps were undone in reverse order. adds 4 then divides by 3, so multiplies by 3 then subtracts 4.
- Check by composing: . If does not simplify to exactly , the inverse is wrong. The check takes seconds and needs no calculator.
- **The domain of is the range of **, and the range of is the domain of . The inverse swaps inputs with outputs, so it swaps these two sets too.
- So find the range of before you state the domain of . A correct rule with a missing or wrong domain is an incomplete answer.
- If appears twice after you clear fractions, as in , use the rearranging routine: multiply out, collect the terms on one side, factorise out, divide. The exam set practises this one.
- If the rearrangement needs a square root, the domain decides the sign. For , , you get . But is never negative in this domain, so take the positive root: .
- is not . Here the is notation meaning 'inverse', not a power.
- The same notation covers exponentials and logarithms, which you meet in topic 6. The syllabus's own example is , whose inverse is written . The method is identical, using the fact that undoes . Leave it until you have studied logarithms.
Part 6 of 7
The graph of an inverse is a reflection in y = x
- If the point lies on , then . So , which means the point lies on .
- Swapping the coordinates of every point is exactly a reflection in the line . So the graph of is the reflection of the graph of in , and is equally the reflection of .
- Take for , whose inverse is for . The points , and on become , and on .
Every point on has a partner on , mirrored across . - The end points swap too. starts at , so starts at . That is the rule 'domain of = range of ', showing up on the graph.
- When you sketch both: draw as a dashed line, use the same scale on both axes (otherwise the reflection looks wrong), label the end points, and make the two curves visibly mirror each other across the dashed line.
- Draw only over its domain. Reflecting the whole parabola would give a sideways parabola, which is not a function. The restricted domain is what allows the inverse to exist.
- For an increasing function, any point where and meet lies on , so you can find those points by solving . Here has discriminant , so there are no real solutions, and that is why the two curves never meet.
Part 7 of 7
The graph of y = |f(x)|
- The modulus is the size of without its sign: , , . A modulus is never negative.
- So to get from : any part of the graph on or above the -axis stays exactly where it is, and any part below the -axis is reflected in the -axis.
- Only the negative parts move. The trap is reflecting the whole graph, or flipping the positive parts down.
- Linear. is below the axis for . In that part flips up, giving a V shape with its point at . It now meets the -axis at instead of .
- Quadratic. dips below the axis between its roots and , with vertex . In that dip becomes an arch with its top at , and the -intercept moves from to .
Only the dip below the axis flips: becomes , and the curve meets the axis at sharp corners. - Where the original crosses the -axis, the modulus graph touches the axis at a sharp corner, not a smooth curve. Draw those corners sharp: they are where a reflected piece meets an unreflected one.
- Cubic. Apply the same rule to each stretch below the axis. is negative for and for , so both of those pieces flip up.
- Trigonometric. The forms you will meet are , and . When the curve is shifted up or down, so the flipped parts are not whole half-waves. Find where the curve actually crosses the axis first; the worked example does this for .
- Two consequences you can use now: the range of never includes negative values, and a horizontal line with can meet the modulus graph more times than it meets the original. Solving equations such as is topic 4; here you only need the picture.
Worked examples
Example 1. The function is defined by for . Find the range of .
Show the working
- End values alone are not safe, because a quadratic turns. Complete the square to find where it turns.
- , and it equals 0 when . So the least value of is 2, at . Check that is inside the domain . It is, so this least value is actually reached.
- Now the ends: and . The larger of these, 11, is the greatest value.
- Picture the curve: it starts at , drops to , then climbs to . Lowest point at the vertex, highest at the right-hand end.
- Both ends of the domain are included (the domain uses ), so both signs in the range are .
- The trap: using only the end values gives , which leaves out every output between 2 and 3.
Answer:
Example 2. The function is defined by for . (a) Explain in words why does not have an inverse. (b) The function is defined by for . Find , stating its domain, and describe how the graphs of and are related.
Show the working
- (a) Look for two inputs with the same output. , so and .
- So is many–one. An inverse would have to map 0 back to both and , and a rule giving two outputs for one input is not a function.
- (b) Complete the square. It shows why is the right restriction.
- The vertex is . For the curve only rises, so is one–one. Its least output is , so the range of is .
- Write and make the subject.
- Let the domain choose the sign. means , so take the positive root: .
- Swap the letters. The domain of is the range of .
- Check: . Correct.
- The graphs: is the reflection of in the line . The vertex of becomes the start point of , and the -intercept of becomes the -intercept of .
Answer: (a) is many–one, e.g. , so an inverse would have to map 0 to two values. (b) for ; the graph of is the reflection of in .
Example 3. The functions and are defined for by and . (a) Find and . (b) Solve . (c) Find .
Show the working
- (a) means , so acts first. Put the whole of , in a bracket, in place of the in .
- means : acts first, then multiplies by 3 and subtracts 1.
- Check they really differ: and .
- (b) Set the composite equal to 11. Don't expand. Getting the bracket on its own is quicker and keeps the numbers small.
- A square root gives two possibilities. Forgetting loses a solution.
- So or . Check the first: , and . Correct.
- (c) means : apply twice. Don't square it.
Answer: (a) and (b) or (c)
Example 4. Sketch the graph of for , and state its range.
Show the working
- Start with itself. lies between and , so lies between and , and between and .
- Work out the key angles, where is , or . At , and the value is ; at it is ; at it is .
- Find where it crosses the axis: gives , so or . The curve is above the axis only between these two angles.
- Apply the modulus. Between and , leave the curve alone. It rises to and falls back to the axis.
- Everywhere else the curve is below the axis, so reflect it. becomes , becomes , becomes , and the lowest point becomes a peak at .
The piece between and is untouched. Everything else is reflected, so the minimum becomes the maximum . - The curve touches the axis at and with sharp corners. On your sketch, label those two points and the peaks and .
- Range: the least value is now 0 and the greatest is 3.
- Read the sketch: the line meets the graph twice, both times on the tall reflected hump, because the untouched piece never rises above 1.
Answer: A curve starting at , touching the -axis at and , with peaks at and , passing through and ending at . Range .
Where people go wrong
Mistake: Working out by applying first.
Instead: The function next to the acts first: .
Composition works from the inside out. With and , the two orders give and . The wrong order gives a different function, so every later mark goes with it.
Mistake: Writing the range of as .
Instead: Write .
The range describes outputs. '' is a statement about inputs, and it is false here, since is allowed.
Mistake: Giving with no domain, or copying the domain of .
Instead: The domain of is the range of . Find that range first.
The inverse swaps inputs with outputs, so it swaps the two sets as well.
Mistake: Reflecting the whole of in the -axis to get .
Instead: Reflect only the parts below the -axis. Parts on or above it stay where they are.
whenever . Only negative outputs change.
Mistake: Explaining that a function has no inverse 'because it is a quadratic'.
Instead: Say it is many–one and name two inputs with the same output, e.g. .
Being quadratic is not the reason: for is a quadratic and has an inverse. Being many–one on the given domain is.
Check yourself
- Explain why the rule , for , is not a function.
Answer
One input gives two outputs: 4 maps to both 2 and . A function must give exactly one output for each input. - for . Find , solve , and simplify .
Answer
. gives . . - State the range of for , and the largest possible domain of .
Answer
, so . For you need , so . - for . Explain in words why has no inverse, and give a domain on which it would be one–one.
Answer
is many–one: , so an inverse would have to send 1 to both 2 and 4. Restricting to (or ) makes it one–one. - Find for , , and state the domain of .
Answer
gives , so . For , , so the domain of is . - and for . Find , and .
Answer
, , . - Describe the graph of : where does it meet the axes, and which parts of are reflected?
Answer
It touches the -axis at , and (sharp corners) and meets the -axis at . The original cubic is negative for and for , so those two parts are reflected in the -axis. - The point lies on , where is one–one. Write down a point on , and the line in which the two graphs are reflections of each other.
Answer
, and the line .
Exam questions
Try each part first. Open the mark scheme after you have written your answer.
Question 1. The function is defined by for .
(a) Show that . 2 marks No calculator
Mark scheme
- M1 writes 2x + 1 as 2(x − 3) + 7, or combines 2 + 7/(x − 3) over the common denominator x − 3
- A1 given result reached with no errors seen
(b) Hence state the range of . 1 mark No calculator
Mark scheme
- B1 f(x) > 2 (accept y > 2 or f > 2; x > 2 does not earn the mark)
(c) Find and state its domain. 4 marks No calculator
Mark scheme
- M1 y(x − 3) = 2x + 1 multiplied out, with the terms in x collected on one side
- M1 x factorised out, e.g. x(y − 2) = 3y + 1, and divided through
- A1 f⁻¹(x) = (3x + 1)/(x − 2) oe, written in terms of x
- B1 domain x > 2; FT their range from (b)
Question 2. The functions and are defined for by and .
(a) Find . 1 mark No calculator
Mark scheme
- B1 2x² − 5 oe
(b) Solve . 3 marks No calculator
Mark scheme
- M1 fg(x) = (2x + 1)² − 3, composed in the correct order
- M1 (2x + 1)² = 9 with both signs considered, or 4x² + 4x − 8 = 0 solved by a valid method
- A1 x = 1 and x = −2
(c) State the range of . 1 mark No calculator
Mark scheme
- B1 fg(x) ≥ −3 (accept fg ≥ −3 or y ≥ −3)
(d) The function is defined by for . Explain why does not exist. 1 mark No calculator
Mark scheme
- B1 f(0) = −3, which is not in the domain of h (h needs an input of at least 1) oe
Question 3. The function is defined by for .
(a) Sketch the graph of , stating the coordinates of the points where it meets the axes and of the turning point between and . 3 marks No calculator
Mark scheme
- B1 correct shape: U-shaped outer arms with the section between x = 1 and x = 5 reflected above the axis, sharp corners at the x-axis
- B1 (1, 0), (5, 0) and (0, 5) all stated
- B1 turning point (3, 4) stated
(b) Write down the number of points at which the line meets your graph. 1 mark No calculator
Mark scheme
- B1 4; FT their sketch if the arch has a maximum above 3
(c) Write down the value of for which the line meets your graph at exactly three points. 1 mark No calculator
Mark scheme
- B1 k = 4; FT the y-coordinate of their turning point from (a)
Question 4. The function is defined by for .
(a) Explain in words why does not have an inverse. 1 mark No calculator
Mark scheme
- B1 f is many–one, supported by a correct pair, e.g. f(−4) = f(0) = 9, or by reference to the turning point at x = −2 oe
(b) The function is defined by for . Find , stating its domain. 4 marks No calculator
Mark scheme
- M1 completes the square: (x + 2)² + 5
- M1 rearranges y = (x + 2)² + 5 to make x the subject, taking a square root
- A1 g⁻¹(x) = −2 + √(x − 5), positive root only
- B1 domain x ≥ 5
(c) On a single diagram, sketch the graphs of and , showing clearly the relationship between them. 2 marks No calculator
Mark scheme
- B1 y = g(x) starting at (−2, 5) and rising; y = g⁻¹(x) starting at (5, −2) and rising more slowly; both end points labelled
- B1 line y = x drawn, with the two curves symmetrical about it
How this is examined
- Finding an inverse and giving its domain: Find , often with 'state the domain of ' attached, frequently after an earlier part asking for the range of ; 3–4 marks. A rearrangement starting from with made the subject, the answer written as in terms of , and a domain equal to the range of , written as an inequality in . A square-root inverse needs the sign chosen from the domain.
- Composite functions in the right order: Find , or solve an equation such as ; 2–4 marks. The inner function substituted, in a bracket, into the outer one (for , goes inside ), then every solution found, including the one from the negative square root.
- Range over a given domain: State or Find the range of ; 1–3 marks, often the opening part of an inverse question. The least or greatest value from a completed square or the end values, whichever applies to the domain, and an inequality written in with or matching whether each end is reached.
- Sketching y = |f(x)|: Sketch for a linear, quadratic, cubic or trigonometric , showing where it meets the axes; 2–3 marks. Only the parts below the axis reflected, sharp corners where it meets the -axis, and the axis intercepts and reflected turning points labelled with coordinates.
- No inverse, and sketching a function with its inverse: A short Explain on why has no inverse, or a Sketch of and on one diagram; 1–2 marks each. ' is many–one' backed by two named inputs with the same output. On a sketch: drawn, the curves mirror images across it, and the end points swapped.
Words to know
- Function
- A rule that gives exactly one output for each input in its domain.
- Domain
- The set of allowed inputs, written with , e.g. .
- Range (image set)
- The set of outputs the function actually produces, written with , e.g. .
- One–one function
- A function in which different inputs always give different outputs. Only one–one functions have inverses.
- Many–one function
- A function in which at least two different inputs give the same output.
- Inverse function
- The function that undoes . Its domain is the range of , and its graph is the reflection of in .
- Composite function
- : apply first, then . means .
- Modulus
- is the size of without its sign, so it is never negative.
- The set of all real numbers. '' means can be any real number.