Skip to main content

Functions, relations and notation for HSC Maths Advanced: the function machine and f(x)f(x) notation, evaluating and substituting into a function, function versus relation, the vertical line test, and classifying relations as one-to-one, many-to-one, one-to-many or many-to-many with the horizontal line test

Syllabus dot point

“Define and use function notation, distinguish a function from the more general relation using the vertical line test, and classify relations as one-to-one, many-to-one, one-to-many or many-to-many using the horizontal line test”

HSCMaths AdvancedYear 11: Functions19 min read

Quick answer

A function is a rule in which each input xx has exactly one output, written f(x)f(x) (read "ff of xx", not a product); to evaluate it, substitute the input for every xx, keeping brackets around any expression so f(2a)=(2a)2+1=4a2+1f(2a) = (2a)^2 + 1 = 4a^2 + 1. A relation is any set of ordered pairs and may have one input giving several outputs, so every function is a relation but not the reverse. The vertical line test decides which is which: a graph is a function exactly when no vertical line meets it more than once. The horizontal line test then classifies the graph into one of four types: one-to-one (passes both, like y=2xy = 2x), many-to-one (function but fails horizontal, like y=x2y = x^2), one-to-many (not a function but passes horizontal, like y2=xy^2 = x) and many-to-many (fails both, like a circle). The first word counts outputs per input, the second counts inputs per output.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Practice questions

What this dot point is asking

This dot point sets up the language used for the rest of the course. Three ideas sit together. First, function notation: the rule f(x)f(x), read as a machine that turns an input into a single output, and how to evaluate it, including substituting whole expressions like f(a+1)f(a + 1). Second, the difference between a function and the more general relation, decided cleanly by the vertical line test. Third, the horizontal line test, which sorts every graph into one of four types: one-to-one, many-to-one, one-to-many and many-to-many. None of this is hard once the "input to output" picture is fixed, but it is examined constantly and underpins everything later: domain and range, inverse functions, logarithms as the reverse of exponentials, and reading a graph backwards. The goal is to make f(x)f(x) as automatic as the y=…y = \dots you already know, and to never mislabel a relation.

The answer

A function is a rule with one output per input

Informally, yy is a function of xx when yy is completely determined by xx through some rule. The variable xx is the independent variable (the input you choose) and yy is the dependent variable (the output the rule hands back). The single defining property is this: each input has exactly one output. A rule that could give two different outputs for the same input is not a function.

It helps to picture the rule as a machine: you feed in a value of xx, the machine applies its rule, and a single value comes out. The diagram below is the machine for f(x)=2x+1f(x) = 2x + 1, with a table of inputs and the one output each produces.

The function machine for f(x) = 2x + 1A box labelled f takes an input x on the left and returns the output 2x plus 1 on the right, with a table of inputs minus two to three and their outputs.fxinput2x + 1outputxf(x)-2-3-1-101132537Each input x has exactly one output f(x) = 2x + 1.

Function notation f(x)f(x)

Instead of writing y=2x+1y = 2x + 1, we can give the rule a name, usually ff, and write f(x)=2x+1f(x) = 2x + 1. This Euler notation, in use since 1735, sits alongside the y=…y = \dots form throughout the course. The symbol f(x)f(x) is read "ff of xx" and means "the output of the rule ff when the input is xx". It is not ff multiplied by xx.

The power of the notation is that it lets you name a specific output. To evaluate ff at a number, substitute that number for every xx:

  • f(0)=2(0)+1=1f(0) = 2(0) + 1 = 1, read "ff of zero equals one".
  • f(3)=2(3)+1=7f(3) = 2(3) + 1 = 7.

You can name several functions at once, say f(x)f(x), g(x)g(x) and h(x)h(x), and a function can be described in words ("cube the number and subtract 77" is g(x)=x3−7g(x) = x^3 - 7) rather than by a formula.

Key fact

f(x)f(x) is the output of the rule named ff when the input is xx; it is read "ff of xx" and is not a product. To evaluate ff at a value, replace every xx in the rule with that value. So if f(x)=x2−3xf(x) = x^2 - 3x then f(4)=42−3(4)=4f(4) = 4^2 - 3(4) = 4. The same rule can be written y=x2−3xy = x^2 - 3x; the f(x)f(x) form just lets you name a particular output such as f(4)f(4).

Substituting expressions, not just numbers

The input to a function need not be a number: you can substitute another letter, or a whole expression. The rule is always the same, replace every xx with whatever is in the brackets, then simplify. This skill is the engine of differentiation from first principles later, so it is worth drilling now.

For f(x)=x2+1f(x) = x^2 + 1:

  • f(a)=a2+1f(a) = a^2 + 1 (just rename the input).
  • f(a+2)=(a+2)2+1=a2+4a+5f(a + 2) = (a + 2)^2 + 1 = a^2 + 4a + 5 (expand the bracket fully).
  • f(2a)=(2a)2+1=4a2+1f(2a) = (2a)^2 + 1 = 4a^2 + 1 (square the whole input, so the 22 is squared too).

The classic slip is to forget the brackets: f(2a)f(2a) is (2a)2+1=4a2+1(2a)^2 + 1 = 4a^2 + 1, not 2a2+12a^2 + 1. Substitute the input inside brackets and the algebra stays honest.

Relations: the more general idea

Not every graph is a function. A circle such as x2+y2=9x^2 + y^2 = 9 has, for the input x=0x = 0, the two outputs y=3y = 3 and y=−3y = -3, so it breaks the "one output per input" rule. The general word for any set of ordered pairs, function or not, is a relation. Like a function, a relation has a graph, a domain and a range; unlike a function, a relation may have two or more points sharing the same xx-coordinate. A function is therefore a special kind of relation, just as a square is a special kind of rectangle.

Key fact

A relation is any set of ordered pairs (x,y)(x, y), and it has a graph, a domain and a range. A function is the special relation in which every input xx has exactly one output yy. So every function is a relation, but not every relation is a function. Functions are also called maps or mappings, and we say "33 is mapped to 77" when f(3)=7f(3) = 7.

The vertical line test

Because a function forbids one input from having two outputs, you can spot a function straight off its graph: two points with the same xx lie on the same vertical line. So draw vertical lines and look for a double crossing.

Key fact

Vertical line test: a graph represents a function exactly when no vertical line meets it more than once. If even one vertical line crosses the graph twice, that single xx-value has two outputs, so the graph is a relation but not a function. To prove a graph is not a function, you only need to exhibit one vertical line that hits it twice.

Here the test is applied to two graphs. The parabola y=x2y = x^2 passes (every vertical line meets it once), so it is a function. The circle x2+y2=9x^2 + y^2 = 9 fails (a vertical line meets it twice), so it is only a relation.

The vertical line testLeft, a parabola where every vertical line meets the curve once, so it is a function. Right, a circle where a vertical line meets the curve twice, so it is not a function.xymeets once: a functiony = x squaredxymeets twice: not a functionx squared + y squared = 9

Reading a graph backwards, and the horizontal line test

The vertical line test reads a graph forwards, from xx to yy. You can also read it backwards, from yy to xx: to solve f(x)=bf(x) = b, draw the horizontal line y=by = b and read off where it meets the curve. If that horizontal line meets the curve more than once, then that one output bb comes from several inputs.

Counting those backward crossings is exactly the horizontal line test, the companion of the vertical one with "vertical" and "horizontal" swapped. For a graph that is already a function (so it passes the vertical test), the horizontal test sorts it further:

  • If it passes the horizontal test (no horizontal line meets it twice), it is one-to-one: read forwards or backwards, there is never more than one answer. It is a one-to-one correspondence between domain and range.
  • If it fails the horizontal test, it is many-to-one: read forwards there is one output, but read backwards at least one yy has several xx-values mapping to it.

Below, both y=2xy = 2x and y=x2y = x^2 are functions, but y=2xy = 2x is one-to-one (each height reached once) while y=x2y = x^2 is many-to-one (the height y=4y = 4 comes from x=2x = 2 and x=−2x = -2, which is why 44 has two square roots).

The horizontal line test on two functionsLeft, the line y equals two x where every horizontal line meets once, so it is one-to-one. Right, the parabola y equals x squared where a horizontal line meets twice, so it is many-to-one.xymeets once: one-to-oney = 2xxymeets twice: many-to-oney = x squared

The four types of relations, stage by stage

Putting the two tests together classifies every graph into exactly one of four types. The vertical test decides function or not; the horizontal test then decides "to-one" or "to-many". Building the four cases up one at a time makes the pattern click: each panel below changes one test result, sweeping through all four combinations.

Stage 1, one-to-one (passes both tests). The line y=2xy = 2x passes the vertical test, so it is a function, and it passes the horizontal test too. Every input has one output and every output comes from one input, so it is a one-to-one correspondence. Read it forwards or backwards and there is never more than one answer.

One-to-oneThe line y equals two x passes both the vertical and horizontal line tests, so it is a one-to-one function.xyStage 1y = 2xVertical passes (a function); horizontal passes too.One-to-one: one input, one output, both ways.

Stage 2, many-to-one (passes vertical, fails horizontal). The parabola y=x2y = x^2 still passes the vertical test, so it is a function, but the horizontal line y=2.25y = 2.25 meets it at x=1.5x = 1.5 and x=−1.5x = -1.5, so it fails the horizontal test. A function that fails horizontally is many-to-one: many inputs share one output.

Many-to-oneThe parabola y equals x squared passes the vertical line test but fails the horizontal line test, so it is a many-to-one function.xyStage 2y = x squaredVertical passes (a function); horizontal fails.Many-to-one: y = 2.25 comes from x = 1.5 and x = -1.5.

Stage 3, one-to-many (fails vertical, passes horizontal). The sideways parabola y2=xy^2 = x fails the vertical test (the line x=2.25x = 2.25 meets it at y=1.5y = 1.5 and y=−1.5y = -1.5), so it is not a function. But it passes the horizontal test, since each height yy gives a single x=y2x = y^2. A non-function that passes horizontally is one-to-many.

One-to-manyThe sideways parabola y squared equals x fails the vertical line test but passes the horizontal line test, so it is one-to-many and not a function.xyStage 3y squared = xVertical fails (not a function); horizontal passes.One-to-many: x = 2.25 gives y = 1.5 and y = -1.5.

Stage 4, many-to-many (fails both tests). The circle x2+y2=4x^2 + y^2 = 4 fails the vertical test (a vertical line meets it twice) and the horizontal test (a horizontal line meets it twice). Failing both, it is many-to-many: at least one input gives several outputs and at least one output comes from several inputs. That completes all four combinations.

Many-to-manyThe circle x squared plus y squared equals four fails both the vertical and horizontal line tests, so it is many-to-many and not a function.xyStage 4x squared + y squared = 4Both tests fail (not a function).Many-to-many: a vertical and a horizontal line each meet twice.

Key fact

The two line tests classify every graph into one of four types. Run the vertical test first, then the horizontal test:

  • One-to-one: passes vertical (a function), passes horizontal. Example y=2xy = 2x.
  • Many-to-one: passes vertical (a function), fails horizontal. Example y=x2y = x^2.
  • One-to-many: fails vertical (not a function), passes horizontal. Example y2=xy^2 = x.
  • Many-to-many: fails vertical (not a function), fails horizontal. Example x2+y2=r2x^2 + y^2 = r^2.

The first word counts outputs per input (vertical test), the second counts inputs per output (horizontal test). Only the first two are functions.

Functions and relations need not act on numbers. In a database that records each employee's home postcode, the input is a person and the output is a postcode: it is a function (each person has one postcode), and with more employees than NSW postcodes it must be many-to-one, since some postcode is shared.

How exam questions ask about functions and notation

The wording is usually a direct cue to one of these moves:

  • "Find f(2)f(2)" or "evaluate the function at..." wants you to substitute the value for every xx and simplify. Watch negatives: f(−3)f(-3) means substitute −3-3 inside brackets.
  • "Find f(a+h)f(a + h)" or "f(2x)f(2x)" wants you to substitute the whole expression in brackets and expand. The marks are for the correct substitution and full expansion, so keep the brackets.
  • "Show that this graph is (not) a function" wants the vertical line test: either state that every vertical line meets it once, or exhibit a single vertical line crossing twice.
  • "Is the function one-to-one or many-to-one?" wants the horizontal line test applied to a graph already known to be a function. One crossing for every horizontal line means one-to-one; one repeated height means many-to-one.
  • "Classify the relation" wants the full four-type answer: run both tests and name the type.
  • "Solve f(x)=kf(x) = k from the graph" is reading the graph backwards: draw y=ky = k and read off the xx-values where it meets the curve.
  • A worded context (a fee, a fare, a height) defines a function in disguise. Substituting a value reads it forwards; solving for the input reads it backwards.
Worked example

Six examples: evaluating a function at numbers, substituting expressions into a function, a real Australian cost context read both ways, building a table for a verbally defined function, applying the vertical line test, and classifying a graph with both tests.

Evaluate f(x)=x2−3xf(x) = x^2 - 3x at several inputs

Substitute each value for every xx and simplify.

Find f(4)f(4):

f(4)=42−3(4)=16−12=4.f(4) = 4^2 - 3(4) = 16 - 12 = 4.

Find f(0)f(0):

f(0)=02−3(0)=0.f(0) = 0^2 - 3(0) = 0.

Find f(−2)f(-2). Substitute the negative inside brackets:

f(−2)=(−2)2−3(−2)=4+6=10.f(-2) = (-2)^2 - 3(-2) = 4 + 6 = 10.

State the answers. f(4)=4f(4) = 4, f(0)=0f(0) = 0 and f(−2)=10f(-2) = 10. The trap is the negative input: (−2)2=4(-2)^2 = 4 (not −4-4) and −3(−2)=+6-3(-2) = +6, so f(−2)=10f(-2) = 10.

Substitute expressions into f(x)=x2+1f(x) = x^2 + 1

The input can be an expression; replace every xx with the bracket and expand.

Find f(a)f(a). Just rename the input:

f(a)=a2+1.f(a) = a^2 + 1.

Find f(a+2)f(a + 2). Substitute a+2a + 2 and expand the square:

f(a+2)=(a+2)2+1=a2+4a+4+1=a2+4a+5.f(a + 2) = (a + 2)^2 + 1 = a^2 + 4a + 4 + 1 = a^2 + 4a + 5.

Find f(2a)f(2a). Square the whole input, so the 22 is squared too:

f(2a)=(2a)2+1=4a2+1.f(2a) = (2a)^2 + 1 = 4a^2 + 1.

State and check. f(a)=a2+1f(a) = a^2 + 1, f(a+2)=a2+4a+5f(a + 2) = a^2 + 4a + 5 and f(2a)=4a2+1f(2a) = 4a^2 + 1. Check f(a+2)f(a + 2) at a=3a = 3: the formula gives 9+12+5=269 + 12 + 5 = 26, and direct substitution gives f(5)=25+1=26f(5) = 25 + 1 = 26, agreeing. The common slip, writing f(2a)=2a2+1f(2a) = 2a^2 + 1, forgets to square the 22.

Read a delivery cost both forwards and backwards

A courier in Melbourne charges a base fee plus a rate per parcel, so the cost in dollars to send nn parcels is C(n)=90+75nC(n) = 90 + 75n. Find C(0)C(0) and C(4)C(4), then find how many parcels cost $315.

Find C(0)C(0) (read forwards). Put n=0n = 0:

C(0)=90+75(0)=90.C(0) = 90 + 75(0) = 90.

This is the base fee of $90 for sending no parcels.

Find C(4)C(4):

C(4)=90+75(4)=90+300=390.C(4) = 90 + 75(4) = 90 + 300 = 390.

Sending 44 parcels costs $390.

Solve C(n)=315C(n) = 315 (read backwards). Set the rule equal to the output and solve for the input:

90+75n=315  ⇒  75n=225  ⇒  n=3.90 + 75n = 315 \;\Rightarrow\; 75n = 225 \;\Rightarrow\; n = 3.

Answer in context. A cost of $315 corresponds to n=3n = 3 parcels. Because the cost rises by the same $75 for each parcel, this function is one-to-one, so the backward question has a single answer.

Build a table for a verbally defined function

A function gg is defined by the rule "square the number, then subtract 44". Write its rule as an equation and draw up a table of values for x=−3,−2,−1,0,1,2,3x = -3, -2, -1, 0, 1, 2, 3.

Write the rule. "Square the number" is x2x^2; "subtract 44" gives:

g(x)=x2−4.g(x) = x^2 - 4.

Compute each output. Substituting in turn, g(−3)=9−4=5g(-3) = 9 - 4 = 5, g(−2)=4−4=0g(-2) = 4 - 4 = 0, g(−1)=1−4=−3g(-1) = 1 - 4 = -3, g(0)=0−4=−4g(0) = 0 - 4 = -4, then by symmetry g(1)=−3g(1) = -3, g(2)=0g(2) = 0, g(3)=5g(3) = 5.

Lay out the table.

xx −3-3 −2-2 −1-1 00 11 22 33
g(x)g(x) 55 00 −3-3 −4-4 −3-3 00 55

Read off a feature. The outputs are symmetric about x=0x = 0, and the smallest is g(0)=−4g(0) = -4. Reading backwards, g(x)=0g(x) = 0 comes from two inputs, x=−2x = -2 and x=2x = 2, so gg is many-to-one.

Use the vertical line test on x2+y2=25x^2 + y^2 = 25

Decide whether the circle x2+y2=25x^2 + y^2 = 25 is a function, with reasoning.

Apply the test
A graph is a function only if no vertical line meets it more than once.
Find a vertical line that crosses twice
Take x=0x = 0. Then y2=25y^2 = 25, so y=5y = 5 or y=−5y = -5. The vertical line x=0x = 0 meets the circle at (0,5)(0, 5) and (0,−5)(0, -5), two points.
Conclude
The single input x=0x = 0 has two outputs, so the graph fails the vertical line test and is not a function. It is a relation, with domain −5≤x≤5-5 \le x \le 5 and range −5≤y≤5-5 \le y \le 5. One twice-crossing vertical line is enough to settle it.

Classify y=x3y = x^3 with both tests

State whether y=x3y = x^3 is one-to-one, many-to-one, one-to-many or many-to-many.

Vertical line test first
For each input xx there is exactly one cube x3x^3, so every vertical line meets the curve once. It passes, so y=x3y = x^3 is a function.
Horizontal line test next
The cubing function is always increasing: as xx rises, x3x^3 rises, so each height is reached exactly once. For example y=8y = 8 comes only from x=2x = 2. No horizontal line meets the curve twice, so it passes.
Classify
Passing both tests, y=x3y = x^3 is one-to-one. Reading the graph forwards or backwards always gives a single answer, which is exactly why a cube root is unambiguous.
Final answers
f(4)=4f(4) = 4, f(0)=0f(0) = 0, f(−2)=10f(-2) = 10; f(a)=a2+1f(a) = a^2 + 1, f(a+2)=a2+4a+5f(a + 2) = a^2 + 4a + 5, f(2a)=4a2+1f(2a) = 4a^2 + 1; C(0)=90C(0) = 90, C(4)=390C(4) = 390, and $315 buys 33 parcels; g(x)=x2−4g(x) = x^2 - 4 with the table above; the circle is not a function; and y=x3y = x^3 is one-to-one.
Common traps
Reading f(x)f(x) as multiplication
f(x)f(x) means "the output of ff at xx", not ff times xx. Likewise f(a+b)f(a + b) is not f(a)+f(b)f(a) + f(b) in general; you must substitute a+ba + b as a whole.
Dropping the brackets when substituting
f(2a)f(2a) for f(x)=x2+1f(x) = x^2 + 1 is (2a)2+1=4a2+1(2a)^2 + 1 = 4a^2 + 1, not 2a2+12a^2 + 1. Substitute the entire input inside brackets, then expand.
Mishandling a negative input
f(−2)f(-2) for f(x)=x2−3xf(x) = x^2 - 3x is (−2)2−3(−2)=4+6=10(-2)^2 - 3(-2) = 4 + 6 = 10. Both the square and the subtracted term change carefully; do not write −22=−4-2^2 = -4.
Confusing the two line tests
The vertical test decides function or not (one output per input); the horizontal test decides one-to-one versus many-to-one (one input per output). Using the wrong one mislabels the graph.
Calling a relation a function because it "has a graph"
Every relation has a graph, a domain and a range. Being a function is the extra condition that no vertical line crosses twice, so a circle or a sideways parabola is a relation but not a function.
Stopping at two types
There are four: one-to-one, many-to-one, one-to-many and many-to-many. A graph that fails the vertical test is still classified (one-to-many or many-to-many), it is just not a function.
Exam technique

Markers reward correct evaluation, clean substitution, and the right test named and applied. To bank the method marks:

  • Show the substitution before simplifying. Write f(−2)=(−2)2−3(−2)f(-2) = (-2)^2 - 3(-2) in full, brackets and all, then evaluate. The substitution line is where the method mark sits.
  • Keep brackets around any expression input. For f(a+h)f(a + h) or f(2x)f(2x), write the bracket, then expand. Expanding (a+h)2(a + h)^2 correctly is the marked step.
  • Name the test you are using. Write "vertical line test" or "horizontal line test" and state pass or fail. To show a graph is not a function, point to one vertical line that meets it twice, with the two points.
  • For classification, run both tests in order. Vertical first (function or not), then horizontal (to-one or to-many), then state the four-type name. A one-line justification of each test earns the reasoning mark.
  • Read worded problems both ways. Substituting a value answers "find the cost of...", while solving the rule for the input answers "how many... cost...". State which you are doing.
  • Answer in context with units. A fee or fare question wants "$390" or "33 parcels", not a bare number.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marks
A function is defined by f(x)=3x−5f(x) = 3x - 5. Find f(2)f(2), f(−1)f(-1) and f(0)f(0).
Show worked solution →

Substitute each input for xx. The rule f(x)=3x−5f(x) = 3x - 5 multiplies the input by 33 and then subtracts 55.

Find f(2)f(2):

f(2)=3(2)−5=6−5=1.f(2) = 3(2) - 5 = 6 - 5 = 1.

Find f(−1)f(-1). Take care with the negative:

f(−1)=3(−1)−5=−3−5=−8.f(-1) = 3(-1) - 5 = -3 - 5 = -8.

Find f(0)f(0):

f(0)=3(0)−5=0−5=−5.f(0) = 3(0) - 5 = 0 - 5 = -5.

State the answers. f(2)=1f(2) = 1, f(−1)=−8f(-1) = -8 and f(0)=−5f(0) = -5. Notice f(0)=−5f(0) = -5 is the value where the graph would cross the yy-axis, since the input there is x=0x = 0.

foundation2 marks
Use the vertical line test to decide whether each of these is a function: (a) the parabola y=x2y = x^2, (b) the circle x2+y2=9x^2 + y^2 = 9. Explain your reasoning in one line each.
Show worked solution →
State the test
A graph is a function exactly when no vertical line crosses it more than once, because that would mean one input xx gives two different outputs yy.
Test (a) the parabola y=x2y = x^2
Every vertical line x=ax = a meets the parabola at exactly one point, (a,a2)(a, a^2). It passes, so y=x2y = x^2 is a function.
Test (b) the circle x2+y2=9x^2 + y^2 = 9
The vertical line x=0x = 0 meets the circle at (0,3)(0, 3) and (0,−3)(0, -3), two points. One input gives two outputs, so it fails, and x2+y2=9x^2 + y^2 = 9 is not a function (it is a relation).
Conclusion
The parabola is a function; the circle is only a relation. A single vertical line crossing twice is all the evidence you need to rule a graph out.
core3 marks
A plumber charges a fixed call-out fee plus an hourly rate, so the total cost in dollars for a job of nn hours is C(n)=90+75nC(n) = 90 + 75n. Find C(0)C(0) and C(3)C(3), say what each means, and find the length of a job that costs $315.
Show worked solution →

Find C(0)C(0) and read its meaning. Put n=0n = 0:

C(0)=90+75(0)=90.C(0) = 90 + 75(0) = 90.

This is the cost of a 00 hour job, the call-out fee of $90 that is charged just for turning up.

Find C(3)C(3):

C(3)=90+75(3)=90+225=315.C(3) = 90 + 75(3) = 90 + 225 = 315.

A 33 hour job costs $315.

Solve C(n)=315C(n) = 315 for the job length. Set the rule equal to 315315:

90+75n=315  ⇒  75n=225  ⇒  n=3.90 + 75n = 315 \;\Rightarrow\; 75n = 225 \;\Rightarrow\; n = 3.

State the answer. A job costing $315 lasts n=3n = 3 hours, which matches C(3)=315C(3) = 315 found above. Here nn is the input and CC is the output: finding C(3)C(3) reads the rule forwards, and solving C(n)=315C(n) = 315 reads it backwards.

core3 marks
For h(x)=x2+xh(x) = x^2 + x, find and fully simplify h(a+1)−h(a)h(a + 1) - h(a).
Show worked solution →

Write down h(a+1)h(a + 1) by replacing every xx with a+1a + 1.

h(a+1)=(a+1)2+(a+1).h(a + 1) = (a + 1)^2 + (a + 1).

Expand carefully. Expand the square first, (a+1)2=a2+2a+1(a + 1)^2 = a^2 + 2a + 1:

h(a+1)=a2+2a+1+a+1=a2+3a+2.h(a + 1) = a^2 + 2a + 1 + a + 1 = a^2 + 3a + 2.

Write down h(a)h(a):

h(a)=a2+a.h(a) = a^2 + a.

Subtract and collect like terms.

h(a+1)−h(a)=(a2+3a+2)−(a2+a)=2a+2.h(a + 1) - h(a) = (a^2 + 3a + 2) - (a^2 + a) = 2a + 2.

State and check. The simplified result is h(a+1)−h(a)=2a+2h(a + 1) - h(a) = 2a + 2. Check at a=2a = 2: h(3)=9+3=12h(3) = 9 + 3 = 12 and h(2)=4+2=6h(2) = 4 + 2 = 6, so h(3)−h(2)=6h(3) - h(2) = 6, and 2(2)+2=62(2) + 2 = 6 agrees.

exam3 marks
Classify each graph as one-to-one, many-to-one, one-to-many or many-to-many, giving the result of each line test: (a) y=x3y = x^3, (b) y=∣x∣y = |x|, (c) x=y2x = y^2.
Show worked solution →
Recall the rule
The vertical line test decides function (passes) versus not a function (fails); the horizontal line test then splits "to-one" (passes) from "to-many" (fails).
(a) y=x3y = x^3
It passes the vertical test (one output per input), so it is a function. It also passes the horizontal test, since y=x3y = x^3 is always increasing and each height is reached once. Passing both, it is one-to-one.
(b) y=∣x∣y = |x|
It passes the vertical test, so it is a function. But the horizontal line y=2y = 2 meets it at x=2x = 2 and x=−2x = -2, so it fails the horizontal test. Function but horizontal-fail means many-to-one.
(c) x=y2x = y^2 (a sideways parabola)
The vertical line x=4x = 4 meets it at y=2y = 2 and y=−2y = -2, so it fails the vertical test and is not a function. It passes the horizontal test (each height yy gives a single x=y2x = y^2). Not a function but horizontal-pass means one-to-many.
State the answers
(a) one-to-one, (b) many-to-one, (c) one-to-many. None here is many-to-many; that needs both tests to fail, as a full circle does.
exam4 marks
A Sydney taxi charges a flagfall plus a per-kilometre rate, so the fare in dollars for a trip of dd kilometres is F(d)=4.20+2.50dF(d) = 4.20 + 2.50d. (a) Find F(0)F(0) and explain what it represents. (b) Find the fare for a 1212 km trip. (c) A passenger is charged $24.20. How far did they travel? (d) Is FF a one-to-one or a many-to-one function? Justify briefly.
Show worked solution →

(a) Find F(0)F(0). Put d=0d = 0:

F(0)=4.20+2.50(0)=4.20.F(0) = 4.20 + 2.50(0) = 4.20.

This is the fare for a 00 km trip, the flagfall of $4.20 charged the moment the meter starts.

(b) Fare for 1212 km. Put d=12d = 12:

F(12)=4.20+2.50(12)=4.20+30.00=34.20.F(12) = 4.20 + 2.50(12) = 4.20 + 30.00 = 34.20.

A 1212 km trip costs $34.20.

(c) Solve F(d)=24.20F(d) = 24.20 (read the rule backwards).

4.20+2.50d=24.20  ⇒  2.50d=20.00  ⇒  d=8.4.20 + 2.50d = 24.20 \;\Rightarrow\; 2.50d = 20.00 \;\Rightarrow\; d = 8.

The passenger travelled 88 km. Check: F(8)=4.20+2.50(8)=4.20+20.00=24.20F(8) = 4.20 + 2.50(8) = 4.20 + 20.00 = 24.20, correct.

(d) Classify FF. The graph of F(d)=4.20+2.50dF(d) = 4.20 + 2.50d is a straight line with a non-zero gradient, so every horizontal line meets it exactly once. It passes both line tests, so FF is one-to-one: each fare corresponds to exactly one distance, which is why part (c) had a single answer.

Practise this

Sources & how we know this

ExamExplained