Skip to content
Gioi Toan
Start learning
A parabola on coordinate axes with a smiling ball rolling along it

Notes on Lesson 1: Functions and graphs (Maths 10 Chan troi sang tao, Chapter III)

Lesson summary

Suppose xx and yy are two varying quantities, with x∈Dx \in D.

A function can be given by a table, by a graph, by a formula or described in words.

Picture a function as a machine: you put in a value xx, and the machine gives out exactly one value yy.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Nhận biết được hàm số, tập xác định, tập giá trị, đồ thị
  • Nhận biết được tính đồng biến, nghịch biến qua đồ thị

Have you ever looked at a taxi fare table or an electricity bill? There, the amount you pay changes with the number of kilometres or the amount of electricity used, and each level of use corresponds to exactly one amount. Describing a dependence like that is exactly what a function does. This lesson helps you recognise a function when it is given by a table, by a graph or by a formula; find the domain and the range of a function; read a graph and spot on the graph the intervals where the function is increasing or decreasing.

Practise nowTextbook solutions for this lesson

Key ideas: what do you need to know?

Functions, domain and range

  • Suppose xx and yy are two varying quantities, with x∈Dx \in D.
  • If for each x∈Dx \in D, we determine one unique value yy (y∈Ry \in \mathbb{R}), then we have a function.
  • Then xx is the variable, yy is a function of xx; DD is the domain of the function; T={y∣x∈D}T = \{y \mid x \in D\} is the range of the function.
  • We usually write f(x)f(x) for the value yy corresponding to xx, so a function is often written as y=f(x)y = f(x).
  • Example: a table of temperatures at several times of day gives a function, with the domain being the times listed in the table.

In plain words: Picture a function as a machine: you put in a value xx, and the machine gives out exactly one value yy. The key condition is "one xx gives only one yy". So two different times having the same temperature is still a function, because each time has only one temperature. But the relation y2=xy^2 = x does not give a function, because for x=4x = 4 there are two values y=2y = 2 and y=−2y = -2. The domain is what is allowed to go into the machine, and the range is what the machine can give out.

Phrase by phrase
one unique value yy
Each xx in the domain corresponds to exactly one yy; there cannot be two different values.Example: y=x2y = x^2: x=3x = 3 gives only y=9y = 9.
domain
The set DD of all values that the variable xx can take.Example: For a function given by a table, DD are the values in the row of xx.
range
The set TT of all values yy that the function takes as xx runs through all of DD.Example: y=x2y = x^2 on R\mathbb{R} has range [0;+∞)[0; +\infty).
y=f(x)y = f(x)
The usual way of writing a function, where f(x)f(x) is the value of the function at xx.Example: f(x)=2x+1f(x) = 2x + 1 gives f(2)=5f(2) = 5.

TipAfter writing the piecewise function for the price, test right at the switch point: the two formulas must give the same amount, if they differ you have miscalculated the excess part.

Ways of giving a function and the convention for its domain

  • A function can be given by a table, by a graph, by a formula or described in words.
  • Note: When a function is given by a formula y=f(x)y = f(x) without a stated domain, the domain of the function is the set of all x∈Rx \in \mathbb{R} such that f(x)f(x) makes sense.
  • A function can be given by two or more formulas, each formula corresponding to a different interval of values of xx.
  • Example: y=2x−4y = \sqrt{2x - 4} makes sense when 2x−4≥02x - 4 \ge 0, that is x≥2x \ge 2, so D=[2;+∞)D = [2; +\infty). The function y=1x−1y = \frac{1}{x - 1} makes sense when x≠1x \ne 1, so D=R∖{1}D = \mathbb{R} \setminus \{1\}.

In plain words: Finding the domain means finding where the expression "breaks". You already know two familiar break points: the denominator must be different from 0, and the radicand of a square root must not be negative. If the expression is a sum or a quotient of several parts, every part must make sense, so you write all the conditions and then take the common part. In real-life problems, the domain must also follow the meaning of the quantity: the number of minutes called, the number of kilometres, the amount of electricity used are all non-negative, even if the formula could also be computed with negative numbers.

Phrase by phrase
given by a formula
A function whose value yy is computed from xx by an expression.Example: f(x)=−2x2f(x) = -2x^2 gives f(1)=−2f(1) = -2.
f(x)f(x) makes sense
The expression computes to a real number: the denominator is not 0, the radicand of the square root is not negative.Example: x−3\sqrt{x - 3} makes sense when x≥3x \ge 3.
D=R∖{1}D = \mathbb{R} \setminus \{1\}
The set of all real numbers except 1.Example: y=1x−1y = \frac{1}{x - 1} is not defined at x=1x = 1.
two or more formulas
Each interval of xx uses its own formula, often seen in tiered pricing problems.Example: y=1,2xy = 1,2x if 0≤x≤300 \le x \le 30; y=0,9x+9y = 0,9x + 9 if x>30x > 30.

TipTwo "traps" when finding the domain: the denominator must be different from 0, and the radicand of a square root must be non-negative. If the root is in the denominator, the radicand must be strictly positive.

Graph of a function

  • Let a function y=f(x)y = f(x) be defined on DD. The graph of the function is the set of all points M(x;f(x))M(x; f(x)) in the coordinate plane for all x∈Dx \in D, that is (C)={M(x;f(x))∣x∈D}(C) = \{M(x; f(x)) \mid x \in D\}.
  • A point M(xM;yM)M(x_M; y_M) belongs to the graph of the function y=f(x)y = f(x) if and only if xM∈Dx_M \in D and yM=f(xM)y_M = f(x_M).
  • Example: the graph of the function y=12x2y = \frac{1}{2}x^2 passes through the points (0;0)(0; 0), (2;2)(2; 2), (−2;2)(-2; 2); the point (1;2)(1; 2) does not belong to the graph because 12⋅12=12≠2\frac{1}{2} \cdot 1^2 = \frac{1}{2} \ne 2.

In plain words: A graph is the picture of a function: each "input, output" pair becomes a point, with the x-coordinate being xx and the y-coordinate being f(x)f(x). To check whether a point lies on the graph, you do not need to draw anything, just substitute its x-coordinate into the formula and see whether you get the right y-coordinate. Conversely, from the graph you can read the value of the function: wherever the point with x-coordinate 2 is, f(2)f(2) equals that height. Note that the graph is drawn only on the domain, so a function considered on a segment has a graph that is only a segment, not extended beyond it.

Phrase by phrase
M(x;f(x))M(x; f(x))
The point with x-coordinate xx and y-coordinate equal to the value of the function at xx.Example: f(x)=2x+1f(x) = 2x + 1 gives the point (1;3)(1; 3).
yM=f(xM)y_M = f(x_M)
The condition for the point M(xM;yM)M(x_M; y_M) to lie on the graph.Example: (−2;2)(-2; 2) belongs to the graph of y=12x2y = \frac{1}{2}x^2 because 12⋅4=2\frac{1}{2} \cdot 4 = 2.
xM∈Dx_M \in D
The x-coordinate of a point must lie in the domain for the point to belong to the graph.Example: The point (5;3)(5; 3) does not belong to the graph of the function defined on [0;4][0; 4].

Increasing function, decreasing function

  • Given a function y=f(x)y = f(x) defined on the interval (a;b)(a; b).
  • The function is increasing on the interval (a;b)(a; b) if ∀x1,x2∈(a;b), x1<x2⇒f(x1)<f(x2)\forall x_1, x_2 \in (a; b),\ x_1 < x_2 \Rightarrow f(x_1) < f(x_2).
  • The function is decreasing on the interval (a;b)(a; b) if ∀x1,x2∈(a;b), x1<x2⇒f(x1)>f(x2)\forall x_1, x_2 \in (a; b),\ x_1 < x_2 \Rightarrow f(x_1) > f(x_2).
  • Example: the function y=x2y = x^2 is decreasing on the interval (−∞;0)(-\infty; 0) and increasing on the interval (0;+∞)(0; +\infty).

In plain words: Increasing means "same direction": as xx increases, yy also increases. Decreasing means "opposite sense": as xx increases, yy goes down. The words "for all" in the definition matter a lot: trying a few pairs of numbers and seeing it work is not enough for a conclusion, it must hold for every pair x1<x2x_1 < x_2 in the interval. A function can have both increasing intervals and decreasing intervals, like y=x2y = x^2 going down to the left of the origin and up to the right, so when you answer, always say clearly on which interval.

Phrase by phrase
increasing
As xx increases, the value of the function increases, true for every pair x1<x2x_1 < x_2 in the interval being considered.Example: y=3x+1y = 3x + 1 is increasing on R\mathbb{R}.
decreasing
As xx increases, the value of the function decreases, true for every pair x1<x2x_1 < x_2 in the interval being considered.Example: y=−x+1y = -x + 1 is decreasing on R\mathbb{R}.
on the interval (−∞;0)(-\infty; 0)
Increasing and decreasing are always tied to a specific interval of xx.Example: y=x2y = x^2 is decreasing on (−∞;0)(-\infty; 0) but increasing on (0;+∞)(0; +\infty).

Common mistakesTry a few pairs of numbers to see f(x1)<f(x2)f(x_1) < f(x_2), then conclude that the function is increasing. The definition requires it to hold for every x1<x2x_1 < x_2 in the interval, so you must give a general proof or rely on the graph.

Reading increasing and decreasing from the graph

  • On the interval (a;b)(a; b), look at the graph from left to right:

+ If the function is increasing, the graph goes up from left to right;
+ If the function is decreasing, the graph goes down from left to right.

  • Example: the graph of the function y=−x2y = -x^2 goes up on the interval (−∞;0)(-\infty; 0) and goes down on the interval (0;+∞)(0; +\infty), so the function is increasing on (−∞;0)(-\infty; 0) and decreasing on (0;+∞)(0; +\infty).

In plain words: Imagine walking along the graph from left to right, that is, in the direction where xx increases. Where you have to climb, the function is increasing there; where you go downhill, it is decreasing. When you write the increasing and decreasing intervals, write them along the x-axis, that is, the interval of values of xx, not along the y-axis. This is a very common mistake, so remember it well.

Phrase by phrase
goes up from left to right
Moving in the direction where xx increases, the points on the graph get higher and higher, which matches an increasing function.Example: The straight line y=2x+1y = 2x + 1 goes up.
goes down from left to right
Moving in the direction where xx increases, the points on the graph get lower and lower, which matches a decreasing function.Example: The straight line y=−2x+1y = -2x + 1 goes down.
look at the graph
Use the shape of the graph to conclude whether the function is increasing or decreasing, without calculating.Example: A V-shaped graph that goes down and then up shows the function is decreasing and then increasing.

Common mistakesRead the intervals where the function is increasing or decreasing along the y-axis. The increasing and decreasing intervals are intervals of values of xx, read on the x-axis.

TipWalk along the graph from left to right: a climbing stretch is increasing, a descending stretch is decreasing; write the intervals along the x-axis.

Worked examples

Example 1

The table below shows the number of students who got a 10 in Maths in a class during several months: in month 9 there were 3 students, in month 10 there were 5 students, in month 11 there were 5 students, in month 12 there were 8 students. a) Does the table give a function? If so, find its domain and range. b) Does the relation y2=xy^2 = x give yy as a function of xx?

Show the solution to example 1

Step 1: a) Let xx be the month and yy the number of students who got a 10. Each month corresponds to exactly one number of students, so yy is a function of xx, given by a table.
Why: Months 10 and 11 both corresponding to 5 does not break the definition, because the definition only requires each xx to correspond to one single yy, it does not forbid two different xx from giving the same yy.
Step 2: Domain D={9;10;11;12}D = \{9; 10; 11; 12\}; range T={3;5;8}T = \{3; 5; 8\}.
Step 3: b) For x=4x = 4, y2=4y^2 = 4 gives y=2y = 2 or y=−2y = -2, that is, one value of xx corresponds to two values of yy.
Result: a) Yes, D={9;10;11;12}D = \{9; 10; 11; 12\}, T={3;5;8}T = \{3; 5; 8\}; b) yy is not a function of xx.

Common mistakesThinking that two different values xx giving the same yy means it is not a function. What is forbidden is one value xx giving two different values yy; but many xx sharing one yy is still a function.

Example 2

Find the domain of each function: a) y=3−xy = \sqrt{3 - x}; b) y=x+1x2−4y = \frac{x + 1}{x^2 - 4}; c) y=x−1+1x−3y = \sqrt{x - 1} + \frac{1}{x - 3}.

Show the solution to example 2

Step 1: a) 3−x\sqrt{3 - x} makes sense when 3−x≥03 - x \ge 0, that is, x≤3x \le 3. So D=(−∞;3]D = (-\infty; 3].
Step 2: b) The expression makes sense when x2−4≠0x^2 - 4 \ne 0, that is, x≠2x \ne 2 and x≠−2x \ne -2. So D=R∖{−2;2}D = \mathbb{R} \setminus \{-2; 2\}.
Step 3: c) We need both x−1≥0x - 1 \ge 0 and x−3≠0x - 3 \ne 0, that is, x≥1x \ge 1 and x≠3x \ne 3.
Why: The function is the sum of two expressions, so both must make sense, and we take the common part of the two conditions.
Step 4: So D=[1;+∞)∖{3}D = [1; +\infty) \setminus \{3\}.
Result: a) D=(−∞;3]D = (-\infty; 3]; b) D=R∖{−2;2}D = \mathbb{R} \setminus \{-2; 2\}; c) D=[1;+∞)∖{3}D = [1; +\infty) \setminus \{3\}.

Common mistakesFind the domain of y=1x−2y = \frac{1}{\sqrt{x - 2}} but writing only x≥2x \ge 2. Since the root is in the denominator, we need x−2>0x - 2 > 0, that is x>2x > 2, and D=(2;+∞)D = (2; +\infty).

Common mistakesFor a function that is a sum or quotient of several expressions, setting conditions for only one expression is not enough. You must set all the conditions for every expression and then take the common part, as y=x−1+1x−3y = \sqrt{x - 1} + \frac{1}{x - 3} needs both x≥1x \ge 1 and x≠3x \ne 3.

Example 3

Given the function y=f(x)=x2−2xy = f(x) = x^2 - 2x. a) Calculate f(0)f(0), f(−1)f(-1), f(3)f(3). b) Among the points A(1;−1)A(1; -1), B(2;1)B(2; 1), C(−1;3)C(-1; 3), which one belongs to the graph of the function?

Show the solution to example 3

Step 1: a) f(0)=0−0=0f(0) = 0 - 0 = 0; f(−1)=1+2=3f(-1) = 1 + 2 = 3; f(3)=9−6=3f(3) = 9 - 6 = 3.
Step 2: b) The function is defined on R\mathbb{R}. We have f(1)=1−2=−1f(1) = 1 - 2 = -1, exactly equal to the y-coordinate of AA, so AA belongs to the graph.
Why: A point M(xM;yM)M(x_M; y_M) belongs to the graph if and only if xM∈Dx_M \in D and yM=f(xM)y_M = f(x_M), so you only need to substitute the x-coordinate into the formula and compare it with the y-coordinate.
Step 3: f(2)=4−4=0≠1f(2) = 4 - 4 = 0 \ne 1 so BB does not belong to the graph; f(−1)=3f(-1) = 3 so CC belongs to the graph.
Result: a) f(0)=0f(0) = 0, f(−1)=3f(-1) = 3, f(3)=3f(3) = 3; b) AA and CC belong to the graph, BB does not belong.

Example 4

Find the domain and the range of the functions: a) y=3x−1y = 3x - 1 with 0≤x≤20 \le x \le 2; b) y=−x2y = -x^2.

Show the solution to example 4

Step 1: a) Domain D=[0;2]D = [0; 2].
Step 2: Since 0≤x≤20 \le x \le 2, we have 0≤3x≤60 \le 3x \le 6, hence −1≤3x−1≤5-1 \le 3x - 1 \le 5. Every value tt in [−1;5][-1; 5] is attained: take x=t+13x = \frac{t + 1}{3}, then 0≤x≤20 \le x \le 2 and y=ty = t. So the range is [−1;5][-1; 5].
Step 3: b) −x2-x^2 makes sense for every xx, so D=RD = \mathbb{R}.
Step 4: Since x2≥0x^2 \ge 0, we have y=−x2≤0y = -x^2 \le 0; conversely, for each t≤0t \le 0, choose x=−tx = \sqrt{-t}, then y=ty = t. So the range is (−∞;0](-\infty; 0].
Why: The range must contain exactly the values that are attained, so besides an upper or lower bound you must also show that every value in the bounded interval has a corresponding xx.
Result: a) D=[0;2]D = [0; 2], range [−1;5][-1; 5]; b) D=RD = \mathbb{R}, range (−∞;0](-\infty; 0].

Example 5

Using the definition, show that: a) the function y=−3x+2y = -3x + 2 is decreasing on R\mathbb{R}; b) the function y=2x2y = 2x^2 is increasing on the interval (0;+∞)(0; +\infty).

Show the solution to example 5

Step 1: a) Take any x1,x2∈Rx_1, x_2 \in \mathbb{R} with x1<x2x_1 < x_2. Multiplying both sides by −3<0-3 < 0 reverses the inequality: −3x1>−3x2-3x_1 > -3x_2; adding 2 to both sides gives −3x1+2>−3x2+2-3x_1 + 2 > -3x_2 + 2, that is f(x1)>f(x2)f(x_1) > f(x_2).
Why: Multiplying both sides of an inequality by a negative number reverses it, and that is exactly why the coefficient −3-3 makes the function decrease.
Step 2: So the function is decreasing on R\mathbb{R}.
Step 3: b) Take any x1,x2∈(0;+∞)x_1, x_2 \in (0; +\infty) with x1<x2x_1 < x_2. We have f(x2)−f(x1)=2(x22−x12)=2(x2−x1)(x2+x1)f(x_2) - f(x_1) = 2(x_2^2 - x_1^2) = 2(x_2 - x_1)(x_2 + x_1).
Step 4: Since x2−x1>0x_2 - x_1 > 0 and x2+x1>0x_2 + x_1 > 0, we have f(x2)−f(x1)>0f(x_2) - f(x_1) > 0, that is f(x1)<f(x2)f(x_1) < f(x_2).
Result: a) y=−3x+2y = -3x + 2 is decreasing on R\mathbb{R}; b) y=2x2y = 2x^2 is increasing on (0;+∞)(0; +\infty).

Example 6

The graph of the function y=f(x)y = f(x) on the interval [−3;3][-3; 3] consists of two line segments: the first segment joins the point (−3;4)(-3; 4) to the point (0;−2)(0; -2), the second segment joins the point (0;−2)(0; -2) to the point (3;5)(3; 5). On which intervals is the function increasing and decreasing? Find the range of the function.

Show the solution to example 6

Step 1: Going from left to right on the first segment, the y-coordinate decreases from 4 to −2-2: the graph goes down on the interval (−3;0)(-3; 0).
Step 2: On the second segment, the y-coordinate increases from −2-2 to 5: the graph goes up on the interval (0;3)(0; 3).
Why: Intervals of increase and decrease are written by x-coordinate xx, not by y-coordinate.
Step 3: The lowest point of the graph has y-coordinate −2-2, the highest point has y-coordinate 5; the graph is continuous, so yy takes every value from −2-2 to 5.
Result: The function is decreasing on (−3;0)(-3; 0), increasing on (0;3)(0; 3); the range is [−2;5][-2; 5].

Example 7

A phone plan charges 1,200 dong per minute for the first 30 minutes of calls in a month; from the 31st minute on, the price is 900 dong per minute. Let xx be the number of minutes called in the month and yy the amount to pay (thousand dong). a) Write the formula of the function yy in terms of xx. b) Calculate the amount for 20 minutes of calls and for 50 minutes of calls. c) Is the function increasing or decreasing on (0;+∞)(0; +\infty)?

Show the solution to example 7

Step 1: a) When 0≤x≤300 \le x \le 30: y=1,2xy = 1,2x.
Step 2: When x>30x > 30: the first 30 minutes cost 1,2⋅30=361,2 \cdot 30 = 36 (thousand dong), the part beyond x−30x - 30 minutes is charged 0.9 thousand dong per minute, so y=36+0,9(x−30)=0,9x+9y = 36 + 0,9(x - 30) = 0,9x + 9.
Why: The 900 dong price applies only to the part beyond 30 minutes, not again to all xx minutes.
Step 3: b) y(20)=1,2⋅20=24y(20) = 1,2 \cdot 20 = 24; y(50)=0,9⋅50+9=54y(50) = 0,9 \cdot 50 + 9 = 54.
Step 4: Check again at the step change: y(30)y(30) by the first formula equals 36, by the second formula also equals 0,9⋅30+9=360,9 \cdot 30 + 9 = 36, so the graph is continuous at x=30x = 30.
Step 5: c) On each interval, the coefficient of xx is positive, so the graph goes up; the graph is also continuous at x=30x = 30, so the whole graph goes up from left to right.
Result: a) y=1,2xy = 1,2x if 0≤x≤300 \le x \le 30, y=0,9x+9y = 0,9x + 9 if x>30x > 30; b) 24 thousand dong and 54 thousand dong; c) the function is increasing on (0;+∞)(0; +\infty).

Terms

Function
A rule that assigns to each xx belonging to the domain DD exactly one value yy belonging to R\mathbb{R}.Example: y=2ty = 2t is the distance over time.
Variable
The quantity xx changes and takes values in the domain.Example: In S=2tS = 2t, the variable is tt.
Domain
The set DD consists of all values of the variable xx.Example: y=xy = \sqrt{x} has D=[0;+∞)D = [0; +\infty).
Range
The set TT consists of all values yy that the function takes.Example: y=x2y = x^2 has range [0;+∞)[0; +\infty).
Graph of a function
The set of points M(x;f(x))M(x; f(x)) on the coordinate plane with xx belonging to the domain.Example: The graph of y=2x+1y = 2x + 1 is a straight line.
Increasing function
On the interval (a;b)(a; b), x1<x2x_1 < x_2 implies f(x1)<f(x2)f(x_1) < f(x_2).Example: y=x2y = x^2 is increasing on (0;+∞)(0; +\infty).
Decreasing function
On the interval (a;b)(a; b), x1<x2x_1 < x_2 implies f(x1)>f(x2)f(x_1) > f(x_2).Example: y=−x+1y = -x + 1 is decreasing on R\mathbb{R}.

Practise this lesson with instant marking and saved progress in the study app. Suggested plan: Class lessons plan, Maths 10.

Practice

Answer each question, then press Check. If you get stuck, open the hints under the question one step at a time.

Question 5 of 5Written answer · Applying

This content is not yet available in English. It is shown below in the original Vietnamese.

Một hãng taxi có bảng giá như sau:

Giá mở cửa (0,5 km)Giá cước các kilomet tiếp theoGiá cước từ kilomet thứ 31
Taxi 4 chỗ11 000 đồng14 500 đồng11 600 đồng
Taxi 7 chỗ11 000 đồng15 500 đồng13 600 đồng

a) Xem số tiền đi taxi là một hàm số phụ thuộc số kilomet di chuyển, hãy viết công thức của các hàm số dựa trên thông tin từ bảng giá đã cho theo từng yêu cầu:
i) Hàm số f(x)f(x) để tính số tiền hành khách phải trả khi di chuyển xx km bằng xe taxi 4 chỗ.
ii) Hàm số g(x)g(x) để tính số tiền hành khách phải trả khi di chuyển xx km bằng xe taxi 7 chỗ.
b) Nếu cần đặt xe taxi cho 30 hành khách, nên đặt toàn bộ xe 4 chỗ hay xe 7 chỗ thì có lợi hơn?

Do this question in your notebook and show every step. When you finish, press the button below to compare with the mark scheme.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.