Independent study guide

Points, Slope and Straight-Line Graphs

Connect coordinates, slope and line equations, then practise distance, midpoint and perpendicular bisectors. Nine worked examples and eighteen explained questions.

Need help with points, slope or line graphs? A tutor can check your graph, explain the step that is unclear and guide you through a similar question.

Nablio · 18 questionsPublished

Return to George Brown Polytechnic PHY 1025 course guide. Tutoring coverage for this course must be confirmed before booking and payment.

Start with what a graph shows

A graph places pairs of numbers on a picture. In this lesson, the horizontal axis shows the input and the vertical axis shows the output. Read the labels and the size of each step on an axis before reading a point.

You will use whole numbers, negative numbers and simple equations. If substituting a value or solving 2x+1=72x+1=7 is unfamiliar, use the basic-algebra start in our existing algebra guide first.

A function assigns one output to each allowed input. The notation f(2)f(2) means “the output when the input is 2”; it does not mean f×2f\times2.

1 Read an ordered pair

A point (x,y)(x,y) gives the horizontal coordinate first and the vertical coordinate second. The origin is (0,0)(0,0), where the axes meet. Positive horizontal values lie to the right; positive vertical values lie above the origin.

Worked example: locate A=(−2,3)A=(-2,3). Starting at the origin, move 2 units left, then 3 units up. A coordinate unit is one marked step in this diagram; no physical unit is assigned.

Point A is two units left and three units above the origin.
The diagram marks both axes from −3-3 to 3 at equal unit spacing and labels A=(−2,3)A=(-2,3).

Try it

where is B=(2,−1)B=(2,-1)?

Answer and reasoning

2 units right and 1 unit down from the origin. Reversing the coordinates would give (−1,2)(-1,2), a different point.

2 Turn a rule into points

Worked example: the rule f(x)=2x+1f(x)=2x+1 says to double the input and add 1. Substitute each input separately:

  • x=0x=0: f(0)=2(0)+1=1f(0)=2(0)+1=1, so the point is (0,1)(0,1).
  • x=1x=1: f(1)=2(1)+1=3f(1)=2(1)+1=3, so the point is (1,3)(1,3).
  • x=2x=2: f(2)=2(2)+1=5f(2)=2(2)+1=5, so the point is (2,5)(2,5).

Plot those points. This rule is defined for every real input and gives a straight line, so draw the straight line through them. A table with three points alone does not prove that an unknown rule is a straight line; here the given rule justifies it.

A straight line passes through (0,1), (1,3) and (2,5). Its slope is 2.
It shows the three points and a line extending beyond them, with one unit per grid step on both axes.

Try it

for g(x)=x−2g(x)=x-2, find the outputs when x=0,2,4x=0,2,4, and write the three points.

Answer and reasoning

the outputs are −2,0,2-2,0,2, giving (0,−2)(0,-2), (2,0)(2,0), (4,2)(4,2). Each pair keeps the input first.

3 Measure the change with a slope

For a nonvertical straight line, the slope is the change in vertical coordinate divided by the change in horizontal coordinate. Use the same order in both subtractions.

Worked example: use (0,1)(0,1) and (2,5)(2,5) from the previous rule.

slope=5−12−0=42=2. \text{slope}=\frac{5-1}{2-0}=\frac{4}{2}=2.

The line rises 2 vertical units for each increase of 1 horizontal unit. Using the points in reverse order gives the same slope: (1−5)/(0−2)=(−4)/(−2)=2(1-5)/(0-2)=(-4)/(-2)=2.

Try it

find the slope through (1,7)(1,7) and (4,1)(4,1).

Answer and reasoning

(1−7)/(4−1)=−6/3=−2(1-7)/(4-1)=-6/3=-2. The output falls by 2 whenever the input increases by 1 along that line.

A horizontal line has slope 0. A vertical line has no defined slope because its horizontal change is 0; division by 0 is not allowed.

4 Read a straight-line rule

A nonvertical straight line can be written as y=mx+by=mx+b. Here xx is the input coordinate, yy is the output coordinate, mm is the slope and bb is the output at x=0x=0. The point (0,b)(0,b) is the y-intercept.

For y=2x+1y=2x+1, the slope is 2 and the y-intercept is (0,1)(0,1). To find where this line meets the x-axis, set y=0y=0: 0=2x+10=2x+1, so x=−1/2x=-1/2. The x-intercept is (−1/2,0)(-1/2,0). An intercept is a point, not a slope.

Worked application: a tank begins with 6 litres of water and fills at a constant 3 litres per minute. Let tt be elapsed time measured in minutes, and let VV be the volume measured in litres. Before the tank is full,

V=3t+6. V=3t+6.

The slope represents 3 litres per minute. The vertical coordinate of the intercept, 6, represents the initial 6 litres. At t=4t=4, V=3(4)+6=18V=3(4)+6=18, so the tank contains 18 litres, provided it has not filled earlier. We use t≥0t\ge0 and stop using this model when the tank is full; a context can restrict an otherwise valid algebraic rule.

Try it

a different tank starts with 5 litres and fills at 2 litres per minute. Write its rule and find its volume after 3 minutes, assuming it is not yet full.

Answer and reasoning

V=2t+5V=2t+5, with tt measured in minutes and VV in litres. At t=3t=3, the volume is 11 litres. The slope is 2 litres per minute, not 11 litres per minute.

Where two lines meet: substitute an equal expression

A line equation describes many points. A system asks for coordinates that satisfy two equations at the same time. Here xx and yy are real numbers representing the horizontal and vertical coordinates. A solution is an ordered pair (x,y)(x, y), not just one value of xx.

Worked example

Find the point shared by these two lines:

y=2x+1y = 2x + 1

x+y=7x + y = 7

The first equation tells us that yy and 2x+12x + 1 have the same value at every point on that line. We may therefore replace yy with the whole expression 2x+12x + 1 in the second equation. This is substitution:

x+(2x+1)=7x + (2x + 1) = 7

3x+1=73x + 1 = 7

3x=63x = 6

x=2x = 2

The parentheses keep the replacement together. Now use the first original equation to recover yy:

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

The candidate solution is (2,5)(2, 5).

Check both original equations:

5=2(2)+15 = 2(2) + 1 is true.

2+5=72 + 5 = 7 is true.

So (2,5)(2, 5) lies on both lines. Their slopes are different: the second rule can be written y=−x+7y = -x + 7. They meet at exactly one point. On a sketch, mark the intersection at x=2x = 2 and y=5y = 5; each line must pass through it.

Why does the method work?

Every shared solution obeys y=2x+1y = 2x + 1, so it must also obey x+(2x+1)=7x + (2x + 1) = 7. Conversely, if xx solves that substituted equation and we define y=2x+1y = 2x + 1, then both original equations hold. Keeping the first equation is what lets us recover the whole pair. Replacing yy inside the first equation itself would only give 2x+1=2x+12x + 1 = 2x + 1, which supplies no new restriction.

Another route for these same lines is comparison: write both as rules for yy, then set their outputs equal, 2x+1=−x+72x + 1 = -x + 7. This leads to the same x=2x = 2. Substitution is especially convenient when one equation already gives a variable on its own.

Three short checks

Check 1

Check a proposed point. For the original pair y=2x+1y = 2x + 1 and x+y=7x + y = 7, does (1,3)(1, 3) solve the system? Check each equation.

Answer and reasoning for check 1

It satisfies the first because 3=2(1)+13 = 2(1) + 1. It fails the second because 1+3=41 + 3 = 4, not 7. Being on one line is not enough.

Check 2

Guided retry. Solve y=3xy = 3x and x+y=8x + y = 8. Start by filling the gap: x+(□)=8x + (\square) = 8. Then find both coordinates and check them.

Answer and reasoning for check 2

Replace yy by 3x3x: x+3x=8x + 3x = 8. Thus 4x=84x = 8 and x=2x = 2. Recover y=3(2)=6y = 3(2) = 6. Both original equations hold: 6=3(2)6 = 3(2) and 2+6=82 + 6 = 8. The solution is (2,6)(2, 6).

Check 3

Independent retry. Solve y=2xy = 2x and x+y=5x + y = 5. Keep exact fractions and check the pair in both equations.

Answer and reasoning for check 3

Substitution gives x+2x=5x + 2x = 5, so 3x=53x = 5 and x=53x = \frac{5}{3}. Then y=103y = \frac{10}{3}. Check: 103=2(53)\frac{10}{3} = 2(\frac{5}{3}), and 53+103=153=5.\begin{aligned}\frac{5}{3}+\frac{10}{3}&=\frac{15}{3}\\&=5.\end{aligned} The solution is (53,103)(\frac{5}{3}, \frac{10}{3}). Coordinate values need not be whole numbers.

Choose the next step

If combining terms was difficult, revisit basic algebra and equations. If locating a point was difficult, revisit the ordered-pair section above. These examples have one intersection; other systems may have no shared point or infinitely many. When your course reaches elimination or matrices, the existing row-operations lesson explains those cases and why its operations preserve solutions.

Optional extension: distance, midpoint and perpendicular bisectors

A slope describes a direction. A distance measures a length. A midpoint is a position. Learn to choose the quantity the question asks for, then combine these ideas to find a line or check a geometric claim.

Start when you can read coordinates, work with signed numbers and fractions, calculate a slope and solve a linear equation. For the distance formula, you will also use Pythagoras and square roots. Coordinates are real numbers in a Cartesian plane with perpendicular axes. Both axes use the same unit of length. Unless a problem gives physical units, report lengths in units.

1. Build distance from a right triangle

Let the endpoints be A=(x1,y1)A=(x_1,y_1) and B=(x2,y2)B=(x_2,y_2). The subscripts label the two points; they are not exponents. Moving from AA to BB changes the coordinates by

Δx=x2−x1,Δy=y2−y1.\Delta x=x_2-x_1,\qquad \Delta y=y_2-y_1.

These changes may be negative. The absolute value ∣u∣ |u| is the nonnegative distance of a real number uu from zero; for example, ∣−4∣=4|-4|=4. Draw a horizontal move and a vertical move between the endpoints. Their lengths are ∣Δx∣|\Delta x| and ∣Δy∣|\Delta y|, and they meet at a right angle. When both changes are nonzero, the straight segment ABAB is the hypotenuse. If dd denotes its length, Pythagoras gives

d2=(Δx)2+(Δy)2.d^2=(\Delta x)^2+(\Delta y)^2.

A length is nonnegative, so take the nonnegative square root:

d(A,B)=(x2−x1)2+(y2−y1)2.d(A,B)=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.

The formula also works for horizontal or vertical segments: one squared change is zero. If both changes are zero, the points coincide and the distance is zero. Reversing the endpoints reverses both changes, but squaring keeps the distance unchanged.

Worked example 1: straight-line distance is not the two-leg route

Find the distance from A=(−3,1)A=(-3,1) to B=(3,9)B=(3,9). The horizontal change is 3−(−3)=63-(-3)=6, and the vertical change is 9−1=89-1=8. Therefore

d(A,B)=62+82=100=10.d(A,B)=\sqrt{6^2+8^2}=\sqrt{100}=10.

The distance is 10 units. A route that first moves 6 units horizontally and then 8 vertically is 14 units long; it is not the straight segment. The slope of the segment's supporting line is 8/6=4/38/6=4/3, a different quantity again. Do not divide the changes when asked for a length.

2. Find the point halfway along the segment

To reach the midpoint MM, start at AA and take half of each coordinate change:

xM=x1+x2−x12=x1+x22,yM=y1+y2−y12=y1+y22.\begin{aligned}x_M&=x_1+\frac{x_2-x_1}{2}=\frac{x_1+x_2}{2},\\y_M&=y_1+\frac{y_2-y_1}{2}=\frac{y_1+y_2}{2}.\end{aligned}

Thus

M=(x1+x22,y1+y22).M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right).

Average the two horizontal coordinates together, and the two vertical coordinates together. Taking half of the changes alone gives a displacement from AA; it does not give the midpoint's coordinates until you add the starting coordinates.

Worked example 2: check both halves

For the same A=(−3,1)A=(-3,1) and B=(3,9)B=(3,9),

M=(−3+32,1+92)=(0,5).M=\left(\frac{-3+3}{2},\frac{1+9}{2}\right)=(0,5).

From AA to MM, the changes are (3,4)(3,4). From MM to BB, they are also (3,4)(3,4). Each half has length 32+42=5\sqrt{3^2+4^2}=5, half of 10. The midpoint is the point (0,5)(0,5); the half-length is the number 5.

3. Combine a midpoint with a perpendicular direction

For two distinct endpoints, the perpendicular bisector is the line that passes through the segment's midpoint and meets its supporting line at a right angle. Both conditions matter: a line through the midpoint alone need not be perpendicular.

For a nonhorizontal, nonvertical line of slope mm, a perpendicular line has slope −1/m-1/m. One way to see the sign and reciprocal is to turn a movement (Δx,Δy)(\Delta x,\Delta y) through a quarter-turn: the new movement is (−Δy,Δx)(-\Delta y,\Delta x). Its slope is Δx/(−Δy)=−1/m\Delta x/(-\Delta y)=-1/m. This argument uses perpendicular axes and the same length unit on both axes.

  • If the original segment is horizontal, its perpendicular bisector is vertical: x=xMx=x_M.
  • If the original segment is vertical, its perpendicular bisector is horizontal: y=yMy=y_M.
  • Do not calculate −1/0-1/0, and do not assign a numerical slope to a vertical line.
  • If the endpoints coincide, they do not determine a unique perpendicular bisector. Every point is equally distant from those identical endpoints.

Worked example 3: build the equation, then check the conditions

Find the perpendicular bisector of the segment from C=(0,0)C=(0,0) to D=(6,4)D=(6,4).

  1. Find the midpoint. M=((0+6)/2,(0+4)/2)=(3,2)M=((0+6)/2,(0+4)/2)=(3,2).
  2. Find the direction. The slope of CDCD is 4/6=2/34/6=2/3, so the perpendicular slope is −3/2-3/2.
  3. Use the midpoint to find the intercept. Write y=−32x+by=-\frac32x+b. Since (3,2)(3,2) lies on this line, 2=−32(3)+b2=-\frac32(3)+b, so b=132b=\frac{13}{2}.
y=−32x+132.y=-\frac32x+\frac{13}{2}.

Check the point: at x=3x=3, the rule gives y=2y=2. Check the direction: (2/3)(−3/2)=−1(2/3)(-3/2)=-1. These two checks establish the perpendicular bisector.

Every point on this line is equally distant from CC and DD. For a point other than MM, the two right triangles from the point to MM and an endpoint have the same two leg lengths: the common distance to MM, and the equal half-segment lengths. Pythagoras therefore gives equal distances to the endpoints. At MM, the equality holds by the midpoint definition.

The converse also holds: every point equally distant from two distinct endpoints lies on their perpendicular bisector. For this pair, check the converse algebraically by expanding the squares and collecting terms. A point P=(x,y)P=(x,y) has equal distances exactly when their squares are equal, because distances are nonnegative:

x2+y2=(x−6)2+(y−4)2,x2+y2=x2−12x+36+y2−8y+16,12x+8y=52,y=−32x+132.\begin{aligned}x^2+y^2&=(x-6)^2+(y-4)^2,\\x^2+y^2&=x^2-12x+36+y^2-8y+16,\\12x+8y&=52,\\y&=-\frac32x+\frac{13}{2}.\end{aligned}

Each step is reversible. The equal-distance condition gives exactly the line we found.

4. Use the line to answer a location question

Worked example 4: an equally distant point on a path

On a courtyard plan, coordinates are measured in metres on both axes. Markers are at C=(0,0)C=(0,0) and D=(6,4)D=(6,4). A straight path follows y=5y=5. Where on that path could a fountain be equally distant from the two markers? Treat the path as the whole line in this model.

The fountain must lie on the perpendicular bisector found above and on the path. Substitute y=5y=5:

5=−32x+132⟹10=−3x+13⟹x=1.5=-\frac32x+\frac{13}{2}\quad\Longrightarrow\quad10=-3x+13\quad\Longrightarrow\quad x=1.

The candidate is P=(1,5)P=(1,5). Verify using distances from the original coordinates:

d(P,C)=12+52=26 m,d(P,D)=(1−6)2+(5−4)2=26 m.\begin{aligned}d(P,C)&=\sqrt{1^2+5^2}=\sqrt{26}\ \mathrm m,\\d(P,D)&=\sqrt{(1-6)^2+(5-4)^2}=\sqrt{26}\ \mathrm m.\end{aligned}

Both distances agree, and PP lies on y=5y=5. The two lines have different slopes, so their intersection is unique. If a real path is only a segment, its endpoints create an extra restriction; check that restriction before choosing a location.

Eight questions, from a single step to a new situation

Try each question before opening its hint or answer. Unless stated otherwise, coordinates have no physical units. Sketches should help you organize information, not replace the calculation.

1. Start with a horizontal segment

For A=(−4,3)A=(-4,3) and B=(5,3)B=(5,3), find the distance and midpoint without a calculator.

Hint

The vertical coordinate stays fixed. How far apart are the horizontal coordinates, and what is their average?

Explained answer

The distance is ∣5−(−4)∣=9|5-(-4)|=9 units. The midpoint is ((−4+5)/2,(3+3)/2)=(1/2,3)((-4+5)/2,(3+3)/2)=(1/2,3). A midpoint can have a fractional coordinate even when both endpoints have integer coordinates.

2. Separate length from position

For A=(−1,2)A=(-1,2) and B=(3,5)B=(3,5), find the distance and midpoint. Check the distance from the midpoint to each endpoint.

Hint

The full changes are 4 and 3; each half-segment has changes 2 and 3/23/2.

Explained answer

The distance is 42+32=5\sqrt{4^2+3^2}=5 units. The midpoint is (1,7/2)(1,7/2). Each half has length 22+(3/2)2=25/4=5/2\sqrt{2^2+(3/2)^2}=\sqrt{25/4}=5/2 units. Report the midpoint as a coordinate pair, not as the half-length.

3. Work backwards from a midpoint

One endpoint is A=(−5,4)A=(-5,4), and the midpoint is M=(1,−2)M=(1,-2). Find the other endpoint BB.

Hint

Write (−5+xB)/2=1(-5+x_B)/2=1 and (4+yB)/2=−2(4+y_B)/2=-2.

Explained answer

The equations give −5+xB=2-5+x_B=2 and 4+yB=−44+y_B=-4, so B=(7,−8)B=(7,-8). Check: ((−5+7)/2,(4−8)/2)=(1,−2)((-5+7)/2,(4-8)/2)=(1,-2). Averaging AA and MM would find a point halfway along the wrong segment.

4. Build a perpendicular bisector independently

Find the perpendicular bisector of C=(−2,1)C=(-2,1) and D=(2,3)D=(2,3). Check both required conditions.

Hint

Find the midpoint and the slope of CDCD before writing the new line's rule.

Explained answer

The midpoint is (0,2)(0,2). The original slope is (3−1)/(2−(−2))=1/2(3-1)/(2-(-2))=1/2; the perpendicular slope is −2-2. The line is y=−2x+2y=-2x+2. It contains (0,2)(0,2), and (1/2)(−2)=−1(1/2)(-2)=-1, so it is the required perpendicular bisector.

5. Handle the exceptions

Find the perpendicular bisector of (a) A=(2,−3)A=(2,-3), B=(2,7)B=(2,7); (b) C=(−4,6)C=(-4,6), D=(8,6)D=(8,6). Explain why a reciprocal-slope calculation is unnecessary.

Hint

A vertical segment needs a horizontal bisector; a horizontal segment needs a vertical one.

Explained answer

(a) The segment is vertical and its midpoint is (2,2)(2,2), so its perpendicular bisector is y=2y=2. (b) The segment is horizontal and its midpoint is (2,6)(2,6), so its perpendicular bisector is x=2x=2. A vertical line has undefined slope; taking the reciprocal of zero is not allowed.

6. Keep every possible position

Let A=(2,1)A=(2,1) and B=(x,5)B=(x,5). The distance ABAB is 5 units. Find every possible xx. Which one remains if BB is to the right of AA?

Hint

Square the nonnegative distance equation, then solve (x−2)2=9(x-2)^2=9.

Explained answer

From (x−2)2+16=5\sqrt{(x-2)^2+16}=5, obtain (x−2)2=9(x-2)^2=9. Thus x−2=3x-2=3 or x−2=−3x-2=-3, giving x=5x=5 or x=−1x=-1. Both give distance 9+16=5\sqrt{9+16}=5. The right-of-AA condition requires x>2x>2, so only x=5x=5 remains. The nonnegative value 9=3\sqrt9=3 is distinct from the two solutions of u2=9u^2=9.

7. Verify a geometric claim

A triangle has vertices A=(−2,0)A=(-2,0), B=(4,0)B=(4,0), C=(1,4)C=(1,4). Verify that AC=BCAC=BC, then show that the line from CC through the midpoint of ABAB is perpendicular to ABAB. Is the triangle equilateral?

Hint

Compare squared distances. Check whether ABAB and the line through its midpoint are horizontal or vertical.

Explained answer

AC=32+42=5AC=\sqrt{3^2+4^2}=5 and BC=(−3)2+42=5BC=\sqrt{(-3)^2+4^2}=5. The midpoint of ABAB is (1,0)(1,0), so the line through it and CC is x=1x=1. It is vertical, while ABAB lies on the horizontal line y=0y=0; the lines are perpendicular. The triangle is isosceles. It is not equilateral because AB=6AB=6, while the other sides have length 5.

8. Check whether a mathematical answer fits the path

On a plan measured in metres, markers are at A=(0,0)A=(0,0) and B=(8,4)B=(8,4). A path consists only of points with x=2x=2 and 0≤y≤50\leq y\leq5: the vertical coordinate is between 0 and 5, including both endpoints. Can a point on this path be equally distant from the markers? Justify your answer.

Hint

Find the perpendicular bisector and its intersection with x=2x=2, then check the permitted vertical coordinates.

Explained answer

The midpoint is (4,2)(4,2); the slope of ABAB is 1/21/2. Its perpendicular bisector has slope −2-2, so y=−2x+10y=-2x+10. At x=2x=2, it gives y=6y=6. This is the only intersection with the vertical line, but 6 is outside [0,5][0,5]. No point on the stated path works. You can check the conclusion directly: at a point (2,y)(2,y), equal squared distances require 4+y2=36+(y−4)24+y^2=36+(y-4)^2, which simplifies to 8y=488y=48, so again y=6y=6. The point (2,6)(2,6) does have equal distances 40=210\sqrt{40}=2\sqrt{10} metres to the markers; it fails the path restriction.

Choose your retry. For a sign or square-root error, redo questions 1–2 and check the original coordinate differences. For a missing midpoint or incorrect perpendicular direction, return to questions 3–5. For a lost solution or an invalid location, redo questions 6–8 and state the geometric restriction before selecting an answer.

Where these skills fit

These skills appear in Ontario Grade 10 MPM2D. In Québec, distance and perpendicular lines are covered in Secondary IV; midpoint is part of Secondary IV CST/TS and Secondary V SN. Start with the questions that match your class.

Try again without the worked examples

  1. For h(x)=−x+4h(x)=-x+4, find h(−2)h(-2), the slope and the y-intercept.
  2. Find the slope through (−1,2)(-1,2) and (3,2)(3,2). Write an equation of that line.
  3. A line has slope 3 and passes through (0,−2)(0,-2). Write its rule and find the output when x=2x=2.
Answer and reasoning for question 1

h(−2)=−(−2)+4=6h(-2)=-(-2)+4=6; slope −1-1; y-intercept (0,4)(0,4).

Answer and reasoning for question 2

Slope (2−2)/(3−(−1))=0/4=0(2-2)/(3-(-1))=0/4=0; equation y=2y=2.

Answer and reasoning for question 3

y=3x−2y=3x-2; when x=2x=2, y=4y=4.

Before moving on, explain one point, one slope and one intercept in words. For practice with lengths and angles, continue to “Right triangles: lengths and angles.”

Need help connecting the coordinates to the rule? In algebra and precalculus tutoring, a tutor can work through the step you are unsure about, then help you try a similar graph on your own.

Useful for

Work on the step you’re missing.

Tell us the subject and your preferred time. Nablio confirms the details by text or email.

Request a lesson