Salick Academy

Relations, Functions and Graphs I

No calculator

A relation links one set of values to another. A function is a relation with one extra rule, and that rule is what makes the whole of the rest of mathematics work.

Relations and functions

A relation can be given as a set of ordered pairs, a mapping diagram, a table, a graph or a rule.

{(1,3), (2,5), (4,9)}\{(1,3),\ (2,5),\ (4,9)\}

A relation is a function when every input has exactly one output.

{(1,2),(2,4),(3,6)}\{(1,2),(2,4),(3,6)\} is a function — each of 1, 2 and 3 leads to a single value.

{(1,3),(2,5),(1,7),(4,9)}\{(1,3),(2,5),(1,7),(4,9)\} is not a function, because the input 1 leads to both 3 and 7.

The vertical line test

On a graph, a relation is a function if no vertical line crosses the curve more than once. A vertical line represents a single xx value, so two crossings would mean one input with two outputs.

A circle fails the test. A straight line (that is not vertical) passes it. A parabola y=x2y = x^2 passes it.

Domain and range

The domain is the set of inputs. The range is the set of outputs actually produced.

For {(1,3),(2,5),(4,9)}\{(1,3),(2,5),(4,9)\}:

  • Domain: {1,2,4}\{1, 2, 4\}
  • Range: {3,5,9}\{3, 5, 9\}

Find the range of f(x)=x2f(x) = x^2 for the domain {2,1,0,1,2}\{-2, -1, 0, 1, 2\}.

Square each input: 4,1,0,1,44, 1, 0, 1, 4. A set does not repeat values, so the range is {0,1,4}\{0, 1, 4\}.

Function notation

f(x)f(x) is read "f of x" and names the output of the function ff for the input xx. It does not mean ff multiplied by xx.

To evaluate, replace every xx with the given value.

If f(x)=2x+7f(x) = 2x + 7, find f(3)f(3).

f(3)=2(3)+7=6+7=13f(3) = 2(3) + 7 = 6 + 7 = 13

If f(x)=52xf(x) = 5 - 2x, find f(3)f(-3).

f(3)=52(3)=5+6=11f(-3) = 5 - 2(-3) = 5 + 6 = 11

You can also work backwards. If f(x)=4x3f(x) = 4x - 3 and f(x)=9f(x) = 9, find xx.

4x3=94x=12x=34x - 3 = 9 \quad \Rightarrow \quad 4x = 12 \quad \Rightarrow \quad x = 3

Composite functions

fg(x)fg(x) means: apply gg first, then apply ff to the result. Work from the inside out, exactly as with brackets.

Let f(x)=3x5f(x) = 3x - 5 and g(x)=x+2g(x) = x + 2.

fg(x)=f(x+2)=3(x+2)5=3x+65=3x+1fg(x) = f(x+2) = 3(x+2) - 5 = 3x + 6 - 5 = 3x + 1

Going the other way:

gf(x)=g(3x5)=(3x5)+2=3x3gf(x) = g(3x-5) = (3x - 5) + 2 = 3x - 3

Check numerically at x=3x = 3: fg(3)=3(3)+1=10fg(3) = 3(3) + 1 = 10, and going step by step, g(3)=5g(3) = 5 then f(5)=10f(5) = 10 ✓. Meanwhile gf(3)=3(3)3=6gf(3) = 3(3) - 3 = 6 — a different answer, as expected.

Inverse functions

f1(x)f^{-1}(x) undoes ff. If ff turns 4 into 7, then f1f^{-1} turns 7 back into 4.

To find it: write y=f(x)y = f(x), make xx the subject, then swap the letters.

Find the inverse of f(x)=3x5f(x) = 3x - 5.

y=3x5y = 3x - 5 y+5=3xy + 5 = 3x x=y+53x = \frac{y+5}{3} f1(x)=x+53f^{-1}(x) = \frac{x+5}{3}

Check: f(4)=3(4)5=7f(4) = 3(4) - 5 = 7, and f1(7)=7+53=4f^{-1}(7) = \dfrac{7+5}{3} = 4 ✓ — back where we started.

Solving equations graphically

Where two graphs cross, both equations are satisfied at once — so the point of intersection is the solution of the simultaneous equations.

The lines y=2x+1y = 2x + 1 and y=7xy = 7 - x intersect. Find the point.

Algebraically, set them equal:

2x+1=7x2x + 1 = 7 - x 3x=63x = 6 x=2x = 2

Then y=2(2)+1=5y = 2(2) + 1 = 5.

The lines cross at (2,5)(2, 5).

Reading a solution off a graph you have drawn gives an estimate, and the accuracy depends on your scale. If a question says "use your graph", an answer to one decimal place is normally expected, and you should say which graph you read it from.