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

Notes on Lesson 4: Graph of the linear function y = ax + b (a ≠ 0) (Maths 8 Canh Dieu, Chapter III)

Lesson summary

The graph of the function y=ax+by = ax + b (a≠0a \ne 0) is a straight line, also called the line y=ax+by = ax + b.

Function y=axy = ax (a≠0a \ne 0): find the point A(1;a)A(1; a), draw the straight line through OO and AA.

PP is where the line meets the y-axis (set x=0x = 0), QQ is where it meets the x-axis (set y=0y = 0).

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

  • Vẽ được đồ thị của hàm số bậc nhất
  • Nhận biết hệ số góc, sử dụng hệ số góc để nhận biết hai đường thẳng cắt nhau, song song

The graph of a linear function is a straight line, so two points are enough to draw it. This lesson helps you draw the graph, understand the slope, and recognise when two straight lines are parallel, intersect or coincident.

Practise nowTextbook solutions for this lesson

Key ideas: what do you need to know?

Graph of a linear function

  • The graph of the function y=ax+by = ax + b (a≠0a \ne 0) is a straight line, also called the line y=ax+by = ax + b.
  • This line meets the y-axis at the point with y-coordinate bb.

How to draw the graph

  • Function y=axy = ax (a≠0a \ne 0): find the point A(1;a)A(1; a), draw the straight line through OO and AA.
  • Function y=ax+by = ax + b (a≠0a \ne 0, b≠0b \ne 0): find the two points P(0;b)P(0; b) and Q(−ba;0)Q\left(-\frac{b}{a}; 0\right), draw the straight line through those two points.
  • The point QQ is found by setting y=0y = 0 and solving for xx.

In plain words: PP is where the line meets the y-axis (set x=0x = 0), QQ is where it meets the x-axis (set y=0y = 0). These two points are the easiest to calculate and the easiest to mark.

Slope

  • Let AA be the point of intersection of the straight line y=ax+by = ax + b with the OxOx-axis, and TT a point on the line with positive y-coordinate. The angle α\alpha formed by the two rays AxAx and ATAT is called the angle of inclination of the line and the OxOx-axis.
  • The coefficient aa is called the slope of the straight line y=ax+by = ax + b (a≠0a \ne 0).
  • a>0a > 0: the angle α\alpha is an acute angle; a<0a < 0: the angle α\alpha is an obtuse angle. In both cases, the larger aa is, the larger the angle.
Phrase by phrase
slope
the coefficient aa of the straight line y=ax+by = ax + b, which tells how steep the line isExample: y=−x+3y = -x + 3 has slope −1-1.

Position of two straight lines

Given d:y=ax+bd: y = ax + b (a≠0a \ne 0) and d′:y=a′x+b′d': y = a'x + b' (a′≠0a' \ne 0):

  • dd is parallel to d′d' if and only if a=a′a = a', b≠b′b \ne b'.
  • dd is coincident with d′d' if and only if a=a′a = a', b=b′b = b'.
  • dd intersects d′d' if and only if a≠a′a \ne a'.

Worked examples

Example 1

Draw the graph of the function y=2x−4y = 2x - 4.

Show the solution to example 1

Step 1: Set x=0x = 0, then y=−4y = -4, giving the point P(0;−4)P(0; -4).
Step 2: Set y=0y = 0, then 2x−4=02x - 4 = 0, x=2x = 2, giving the point Q(2;0)Q(2; 0).
Step 3: Draw the straight line through PP and QQ; that is the graph to draw.

Common mistakesWrong sign when finding the x-intercept: for y=2x−4y = 2x - 4 you took Q(−2;0)Q(-2; 0) instead. You must solve 2x−4=02x - 4 = 0 to get x=2x = 2, that is Q(2;0)Q(2; 0).

TipChoose two points on the two axes (set x=0x = 0, then set y=0y = 0); if there is time, also calculate a third point to check that the three points are collinear.

Example 2

Draw the graph of the function y=−3xy = -3x. Is the angle formed by this line and the OxOx-axis an acute angle or an obtuse angle?

Show the solution to example 2

Step 1: Set x=1x = 1, then y=−3y = -3, giving A(1;−3)A(1; -3).
Step 2: Draw the straight line through O(0;0)O(0; 0) and A(1;−3)A(1; -3).
Step 3: The slope is a=−3<0a = -3 < 0, so the angle formed by the line and the OxOx-axis is an obtuse angle.

Common mistakesMistaking the slope for bb: thinking that y=3x+5y = 3x + 5 has slope 5. The slope is the number multiplied by xx, which is 3.

Example 3

Given d:y=2x+1d: y = 2x + 1, d1:y=2x−3d_1: y = 2x - 3, d2:y=−x+1d_2: y = -x + 1, d3:y=1+2xd_3: y = 1 + 2x. State the position of dd relative to each of the other lines.

Show the solution to example 3

dd and d1d_1: a=a′=2a = a' = 2, 1≠−31 \ne -3, so they are parallel.
dd and d2d_2: 2≠−12 \ne -1, so they intersect.
dd and d3d_3: d3d_3 rewritten is y=2x+1y = 2x + 1, with the same aa and the same bb, so they are coincident lines.

Common mistakesSeeing two lines with equal aa and concluding they are parallel, forgetting to compare bb: y=2x+1y = 2x + 1 and y=1+2xy = 1 + 2x are in fact coincident lines.

TipCompare two lines: compare aa first. Different aa means they intersect; same aa means compare bb next.

Terms

the straight line y = ax + b
graph of the linear function y=ax+by = ax + b
slope
the coefficient aa of the straight line y=ax+by = ax + b
parallel
two straight lines with no point of intersection
intersect
two straight lines with exactly one point of intersection
coincident lines
two straight lines with every point in common

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

Practice

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

Question 1 of 3Written answer · Applying

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

Xét vị trí tương đối của hai đường thẳng y = - 5x và y = - 5x + 2.

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.

More practice questions for you

Challenge yourself

  • Dạng khác (Applying)

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in

Skills in this lesson

Tap a skill to see what to secure first, what comes next, and more practice.