Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

The idea of a function and its graph

Lesson 7.3 · 25 min read · Updated

A cyclist rides at a constant 1212 km/h. After tt hours the cyclist has gone s=12ts=12t (km). For each time tt we can work out exactly one distance ss. So the distance depends on the time by a clear rule, and we want a name for such a rule.

But not every relationship between two quantities is like this. For example, knowing that you spent 50 00050\,000 dong today does not tell you how many items you bought. This lesson helps you tell the two situations apart and draw them on the coordinate plane.

Let's explore

The table shows the temperature TT (°C) measured at times tt (hours) during a day (an imagined case):

tt (hours) 66 99 1212 1515 1818
TT (°C) 2424 2727 3131 3333 2929

Each value of tt has exactly one value of TT. Compare this with the relation between xx and yy given by y^2=x: for x=4 we have both y=2 and y=-2. One value of x gives two values of y, so we cannot say that "y is determined by x".

The difference between the two cases is this: in the temperature table each t gives only one T; in the relation y^2=x one x gives two y. We use the idea of a function to describe the first case.

The idea of a function

Going deeper. A function does not require different values of x to give different values of y. The table with x:1,2,3 and y:5,5,6 is still a function, because each x has only one y. It fails to be a function only when one x gives two or more values of y.

A function can be given by a table, by a formula (such as y=2x+3), by a description in words or by a graph. When it is given by a formula, the set of values of x for which the expression makes sense is called the domain of the function.

The graph of a function

To draw a function we use the coordinate plane Oxy, made of a horizontal axis Ox (the x-axis) and a vertical axis Oy (the y-axis) meeting at the origin O. Each point M has coordinates (x_0, y_0): the x-coordinate x_0 (read along the x-axis) and the y-coordinate y_0 (read along the y-axis).

A point M(a, b) lies on the graph of y=f(x) exactly when b=f(a). To draw a graph we make a table of values, mark the points and join them.

-3-2-11234-4-2246xyO(-1, -3)(0, -1)(1, 1)(2, 3)
Graph of the function y=2x-1

We return to the cyclist at the start, using the four steps of solving a problem.

-112345610203040506070xyO(2.5, 30)(4, 48)
Distance s=12t against time t

Connections. This lesson uses linear equations from linear equations in one unknown to find x when f(x) is known, and the coordinate plane from earlier years. It prepares the lesson on the gradient of a straight line, where we study graphs of the form y=ax+b like the line we have just drawn.

Key terms

Summary

  • y is a function of x if each value of x gives exactly one value of y; we write y=f(x).
  • A function can be given by a table, a formula, words or a graph; the domain consists of the values of x for which the expression makes sense.
  • The value f(a) is found by substituting x=a into the formula.
  • The graph of y=f(x) is the set of points (x, f(x)); a point (a, b) lies on the graph when b=f(a).
  • Coordinates are written in the order (x-coordinate, y-coordinate).

Practice

Each exercise comes with what you need and how to start. Try it yourself first, then open the solution.

Exercise 1

In each table, is y a function of x?

a) x:0,1,2,3 and y:1,3,5,7.

b) x:1,1,2 and y:2,3,4.

What you need and how to start

What you need: each value of x must have exactly one value of y.

Steps:

  1. See whether any value of x is repeated.
  2. If so, compare the corresponding values of y.
Show solution

The quantity y is a function of the quantity x if each value of x determines exactly one value of y.

a) The values of x, namely 0, 1, 2, 3, are all different, and each value of x has exactly one value of y (respectively 1, 3, 5, 7). Hence y is a function of x.

b) The value x=1 appears twice and corresponds to two different values y=2 and y=3. One value of x gives two values of y, so y is not a function of x.

So in table a) y is a function of x; in table b) y is not a function of x.

Answer. a) a function. b) not a function.

Exercise 2

In each relation, is y a function of x?

a) y^2=x.

b) y=3-x.

c) y=\dfrac1x.

What you need and how to start

What you need: for each x, count the values of y.

Steps:

  1. Try a few specific values of x.
  2. For c), notice the value of x that makes the denominator 0.
Show solution

We check whether each value of x gives exactly one value of y or more than one.

a) For x=4, the relation y^2=4 gives y=2 or y=-2. One value of x gives two values of y, so y is not a function of x.

b) For each value of x, the expression 3-x gives exactly one value of y. Hence y is a function of x.

c) The expression \dfrac1x is defined when x\neq0. For each x\neq0 we obtain exactly one value y=\dfrac1x. Hence y is a function of x with domain x\neq0.

So y is not a function of x in part a); y is a function of x in parts b) and c) (in part c) for x\neq0).

Answer. a) no. b) yes. c) yes (for x\neq0).

Exercise 3

Let f(x)=3x-4. Find f(0), f(2), f(-1) and find x such that f(x)=11.

What you need and how to start

What you need: f(a) is the value of the expression when x=a.

Steps:

  1. Substitute x=0, 2, -1 in turn.
  2. Solve the equation 3x-4=11.
Show solution

For f(x)=3x-4, we substitute the given values of x into the formula.

For x=0: f(0)=3\cdot0-4=-4.

For x=2: f(2)=3\cdot2-4=6-4=2.

For x=-1: f(-1)=3\cdot(-1)-4=-3-4=-7.

To find x such that f(x)=11, we solve the equation 3x-4=11. Moving terms, we get 3x=15. Hence x=5.

Check: f(5)=3\cdot5-4=11.

So f(0)=-4, f(2)=2, f(-1)=-7 and f(x)=11 when x=5.

Answer. -4; 2; -7; x=5.

Exercise 4

Find the domain of each function:

a) y=\dfrac{2}{x+3}.

b) y=\dfrac{x-1}{2x-6}.

c) y=x^2+1.

What you need and how to start

What you need: the denominator must not be 0.

Steps:

  1. Set the denominator equal to 0 and solve to find the value to exclude.
  2. In c) there is no denominator.
Show solution

The domain of a function given by a formula is the set of values of x for which the expression makes sense.

a) The expression \dfrac{2}{x+3} makes sense when the denominator is non-zero, that is x+3\neq0. Hence x\neq-3.

b) The expression \dfrac{x-1}{2x-6} makes sense when 2x-6\neq0, that is 2x\neq6. Hence x\neq3.

c) The expression x^2+1 is a polynomial, so it makes sense for every value of x. Hence the domain is \mathbb R.

So the domains of the functions are: a) x\neq-3; b) x\neq3; c) \mathbb R.

Answer. a) x\neq-3. b) x\neq3. c) \mathbb R.

Exercise 5

Which of the points A(1, 2), B(2, 2), C(0, 3), D(-1, 4) lie on the graph of y=-x+3?

What you need and how to start

What you need: a point (a, b) lies on the graph when b=f(a).

Steps:

  1. Work out -a+3 for each point.
  2. Compare with the y-coordinate.
Show solution

A point lies on the graph of y=-x+3 when its coordinates satisfy the relation y=-x+3. We substitute the x-coordinate of each point into the formula and compare the result with the y-coordinate.

For A(1, 2): -1+3=2, which equals the y-coordinate 2, so A lies on the graph.

For B(2, 2): -2+3=1\neq2, so B does not lie on the graph.

For C(0, 3): -0+3=3, which equals the y-coordinate 3, so C lies on the graph.

For D(-1, 4): -(-1)+3=4, which equals the y-coordinate 4, so D lies on the graph.

So A, C, D lie on the graph of y=-x+3.

Answer. A, C, D.

Exercise 6

Make a table of values of y=x+1 for x=-2,-1,0,1,2 and describe the shape of the graph.

What you need and how to start

What you need: the graph is the set of points (x, y).

Steps:

  1. Work out y for each value of x.
  2. Mark the points and observe them.
Show solution

We get the table:

x -2 -1 0 1 2
y -1 0 1 2 3

The points (-2, -1), (-1, 0), (0, 1), (1, 2), (2, 3) lie on a straight line rising to the right.

So the graph of y=x+1 is a straight line.

Answer. A straight line through the points in the table.

Exercise 7

Suppose a taxi company charges y=14\,000x+12\,000 (dong) for a journey of x kilometres (x\geq0). Find the fare for 5 km and for 10 km. How many kilometres give a fare of 96\,000 dong?

What you need and how to start

What you need: substitute the value of x into the formula; solve an equation when y is known.

Steps:

  1. Work out y when x=5 and x=10.
  2. Solve 14\,000x+12\,000=96\,000.
Show solution

When x=5: y=14\,000\cdot5+12\,000=82\,000 (dong). When x=10: y=140\,000+12\,000=152\,000 (dong). When y=96\,000: 14\,000x=84\,000, so x=6.

So the fares are 82\,000 dong and 152\,000 dong; a fare of 96\,000 dong is for 6 km.

Answer. 82\,000 dong; 152\,000 dong; 6 km.

Exercise 8

In the temperature table of the exploration, f(6)=24, f(9)=27, f(12)=31, f(15)=33, f(18)=29 (temperature T in °C at time t in hours). Find f(12), say at what time the highest temperature occurs, and say whether the function tells us the temperature at 10 o'clock.

What you need and how to start

What you need: a function given by a table is defined only at the values in the table.

Steps:

  1. Read f(12) from the table.
  2. Find the greatest value of T.
Show solution

We have f(12)=31 (°C). The greatest temperature in the table is 33^\circC, at 15 hours. The value t=10 is not in the table, so this function does not tell us the temperature at 10 o'clock.

So f(12)=31^\circC, the highest value is at 15 hours, and the temperature at 10 o'clock is unknown.

Answer. 31^\circC; 15 hours; not defined.

Exercise 9

Let f(x)=2x-5. Find x such that f(x)=0 and find x such that f(x)=x. (Revise linear equations.)

What you need and how to start

What you need: reduce to a linear equation in one unknown.

Steps:

  1. Solve 2x-5=0.
  2. Solve 2x-5=x.
Show solution

For f(x)=0: 2x-5=0, so x=\dfrac52=2.5. For f(x)=x: 2x-5=x, so x=5.

Check: f(2.5)=0 and f(5)=5.

So x=2.5 when f(x)=0 and x=5 when f(x)=x.

Answer. 2.5; 5.

Exercise 10 Challenge

Let f(x)=ax+b with f(1)=3 and f(2)=5. Find a and b, then find f(10).

What you need and how to start

What you need: f(1)=a+b and f(2)=2a+b.

Steps:

  1. Write two equalities from the two given values.
  2. Subtract them to find a, then find b.
Show solution

We have a+b=3 and 2a+b=5. Subtracting the two equalities gives a=2. From a+b=3 we get b=1. So f(x)=2x+1 and f(10)=21.

Check: f(1)=3 and f(2)=5.

So a=2, b=1 and f(10)=21.

Answer. a=2; b=1; f(10)=21.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. A quantity y is a function of x when
Question 2. Let f(x)=2x-3. The value f(4) is
Question 3. The domain of the function y=\dfrac{5}{x-1} is
Question 4. Which of the following points lies on the graph of y=2x-1?

Part II. True or false

Question 1. Let y=-x+4. Decide whether each statement is true or false.
a) The value of the function at x=0 is 4.
b) The value of the function at x=2 is 2.
c) The point (4, 0) lies on the graph of the function.
d) The point (1, 5) lies on the graph of the function.

Part III. Short answer

Question 1. Let f(x)=3x-4. Find f(5).

Question 2. A cyclist rides at 12 km/h. After how many hours has the cyclist gone 30 km?

Show answers and explanations
  1. Part I, question 1: B. This is the definition of a function. B and C are extra conditions (a function can still give the same y for two different x), D is unrelated.
  2. Part I, question 2: C. f(4)=2\cdot4-3=5. A uses 2\cdot4+3, B uses 4-3, D has the wrong sign.
  3. Part I, question 3: D. The denominator must not be 0: x-1\neq0, so x\neq1. A and B exclude the wrong value, C ignores the denominator.
  4. Part I, question 4: A. 2\cdot2-1=3, so (2, 3) lies on the graph. For B: 2\cdot1-1=1\neq2; C: -1\neq1; D: 5\neq4.
  5. Part II, question 1: a) True; b) True; c) True; d) False. a) True: -0+4=4. b) True: -2+4=2. c) True: -4+4=0. d) False: -1+4=3\neq5.
  6. Part III, question 1: 11. f(5)=3\cdot5-4=11.
  7. Part III, question 2: 2.5. 12t=30, so t=2.5.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email