SuperExamsSuperExams
Search papers…
Menu
DashboardBrowse papersRevision notesBooksSavedRevision packsFlashcardsMy progressAchievementsAI TutorMy classMessages
Back to dashboard

Unlock worked solutions

Step-by-step answers by examiners. From €5/mo.

Try Premium free →
← Maths notes
Edexcel IGCSE·Maths·Edexcel IGCSE Maths

Straight-Line Graphs & Coordinate Geometry

6 min read

Gradients, y = mx + c, midpoints, and parallel and perpendicular lines.

Coordinates and the number plane

Every point on a graph is fixed by a pair of coordinates (x,y)(x, y)(x,y). The first number is the horizontal position (across), the second is the vertical position (up or down). They are measured from the origin (0,0)(0, 0)(0,0), where the two axes cross.

The plane is split into four quadrants. Reading signs carefully matters: (3,−2)(3, -2)(3,−2) sits bottom-right, while (−3,2)(-3, 2)(−3,2) sits top-left.

Key terms Origin — the point (0,0)(0,0)(0,0) where the axes meet.

x-coordinate — horizontal distance (the first number).

y-coordinate — vertical distance (the second number).

Midpoint of a line segment

The midpoint of the segment joining A(x1,y1)A(x_1, y_1)A(x1​,y1​) and B(x2,y2)B(x_2, y_2)B(x2​,y2​) is the average of the coordinates:

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

For example, the midpoint of A(2,1)A(2, 1)A(2,1) and B(6,9)B(6, 9)B(6,9) is

(2+62,1+92)=(4,5).\left( \frac{2+6}{2}, \frac{1+9}{2} \right) = (4, 5).(22+6​,21+9​)=(4,5).

Exam tip Add the two xxx-values then halve; do the same with the yyy-values. A quick check: the midpoint should lie between the two points, so its coordinates sit between theirs.

Length of a line segment (distance formula)

The distance between two points comes straight from Pythagoras' theorem. The horizontal gap is (x2−x1)(x_2 - x_1)(x2​−x1​) and the vertical gap is (y2−y1)(y_2 - y_1)(y2​−y1​), so the segment is the hypotenuse of a right-angled triangle:

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

For A(2,1)A(2, 1)A(2,1) and B(6,9)B(6, 9)B(6,9):

d=(6−2)2+(9−1)2=16+64=80=45.d = \sqrt{(6-2)^2 + (9-1)^2} = \sqrt{16 + 64} = \sqrt{80} = 4\sqrt{5}.d=(6−2)2+(9−1)2​=16+64​=80​=45​.

Watch out The differences are squared, so a negative gap causes no trouble: (−4)2=16(-4)^2 = 16(−4)2=16. But never simplify 16+64\sqrt{16+64}16+64​ to 16+64\sqrt{16}+\sqrt{64}16​+64​ — you must add inside the root first.

Gradient of a line

The gradient mmm measures steepness: how far the line rises for each step across.

m=change in ychange in x=y2−y1x2−x1m = \frac{\text{change in } y}{\text{change in } x} = \frac{y_2 - y_1}{x_2 - x_1}m=change in xchange in y​=x2​−x1​y2​−y1​​

    A positive gradient rises from left to right (uphill).
    A negative gradient falls from left to right (downhill).
    A horizontal line has gradient 000; a vertical line has an undefined gradient.
x y run = 2 rise = 2 c = 1 y = x + 1
Gradient as rise over run, with y-intercept c = 1

The equation y=mx+cy = mx + cy=mx+c

Every straight line can be written as

y=mx+cy = mx + cy=mx+c

where mmm is the gradient and ccc is the y-intercept — the yyy-value where the line crosses the yyy-axis (at x=0x = 0x=0).

So y=2x−3y = 2x - 3y=2x−3 has gradient 222 and crosses the yyy-axis at (0,−3)(0, -3)(0,−3). To read these off, the equation must be rearranged into this form first.

Worked example Find the gradient and yyy-intercept of 3x+2y=123x + 2y = 123x+2y=12.

Make yyy the subject:

2y=−3x+122y = -3x + 122y=−3x+12

Finding the equation of a line through points

Given the gradient and one point: substitute into y=mx+cy = mx + cy=mx+c and solve for ccc.

Find the line with gradient 444 through (2,5)(2, 5)(2,5):

5=4(2)+c  ⇒  5=8+c  ⇒  c=−35 = 4(2) + c \;\Rightarrow\; 5 = 8 + c \;\Rightarrow\; c = -35=4(2)+c⇒5=8+c⇒c=−3

So the equation is y=4x−3y = 4x - 3y=4x−3.

Given two points: first find the gradient, then use one point as above.

Worked example Find the equation of the line through A(1,2)A(1, 2)A(1,2) and B(4,11)B(4, 11)B(4,11).

Gradient:

m=11−24−1=93=3m = \dfrac{11 - 2}{4 - 1} = \dfrac{9}{3} = 3m=4−111−2​=39​=3

Parallel and perpendicular lines

Parallel lines never meet, so they have the same gradient. Lines y=2x+1y = 2x + 1y=2x+1 and y=2x−5y = 2x - 5y=2x−5 are parallel because both have m=2m = 2m=2.

Perpendicular lines cross at 90°90°90°. Their gradients multiply to −1-1−1:

m1×m2=−1m_1 \times m_2 = -1m1​×m2​=−1

So the perpendicular gradient is the negative reciprocal: flip the fraction and change the sign. If m1=3m_1 = 3m1​=3, then m2=−13m_2 = -\tfrac{1}{3}m2​=−31​. If m1=−25m_1 = -\tfrac{2}{5}m1​=−52​, then m2=52m_2 = \tfrac{5}{2}m2​=25​.

x y parallel perpendicular
Parallel lines (same gradient) and perpendicular lines (gradients multiply to -1)

Worked example Find the line perpendicular to y=12x+4y = \tfrac{1}{2}x + 4y=21​x+4 passing through (3,1)(3, 1)(3,1).

Gradient of the given line is 12\tfrac{1}{2}21​, so the perpendicular gradient is the negative reciprocal, −2-2−2.

Drawing straight-line graphs

To plot a line from its equation, build a small table of values. Choose a few xxx-values, work out each yyy, plot the points and join them with a straight ruled line.

For y=2x−1y = 2x - 1y=2x−1:

xxx−1-1−1000111222
yyy

A faster method when the equation is in y=mx+cy = mx + cy=mx+c form: mark the intercept ccc on the yyy-axis, then use the gradient (rise over run) to step to the next point and draw through both.

Exam tip Lines like x=4x = 4x=4 are vertical and y=−2y = -2y=−2 are horizontal — students often swap these. Remember x=4x = 4x=4 means "xxx is always 444", a vertical line through (4,0)(4, 0)(4,0).

Solving simultaneous equations graphically

Two straight lines drawn on the same axes meet at one point (unless they are parallel). The coordinates of that intersection are the solution to the pair of simultaneous equations, because that point lies on both lines at once.

To solve graphically:

  1. Draw both lines accurately on one set of axes.
  2. Read off the coordinates of the crossing point.
  3. State the solution as x=…x = \dotsx=…, y=…y = \dotsy=….

For example, y=x+1y = x + 1y=x+1 and y=−x+5y = -x + 5y=−x+5 cross at (2,3)(2, 3)(2,3), so the solution is x=2x = 2x=2, y=3y = 3y=3. You can confirm this by checking both equations: 3=2+13 = 2 + 13=2+1 ✓ and 3=−2+53 = -2 + 53=−2+5 ✓.

Real world Intersection points model break-even analysis. If one line is a company's costs and another its income against units sold, the crossing point is the break-even quantity — sell more than that and you make a profit.

Watch out If two lines have the same gradient they are parallel and never cross, so the simultaneous equations have no solution. Identical equations give the same line and infinitely many solutions.

Viewing only

This content is free to read on superexams.com and cannot be printed or downloaded.

Read the full note, free

Create a free account to read this note in full. Every free account gets 2 complete revision notes, no card needed.

Sign up free →Log in

More Maths notes

Numbers & the Number System

Ratio, Proportion & Percentages

Algebra: Expressions, Indices, Expanding & Factorising

Solving Equations & Inequalities

y=−32x+6y = -\tfrac{3}{2}x + 6y=−23​x+6

So m=−32m = -\tfrac{3}{2}m=−23​ and the yyy-intercept is (0,6)(0, 6)(0,6).

Substitute A(1,2)A(1, 2)A(1,2) into y=3x+cy = 3x + cy=3x+c:

2=3(1)+c⇒c=−12 = 3(1) + c \Rightarrow c = -12=3(1)+c⇒c=−1

Equation: y=3x−1y = 3x - 1y=3x−1.

Substitute (3,1)(3, 1)(3,1) into y=−2x+cy = -2x + cy=−2x+c:

1=−2(3)+c⇒1=−6+c⇒c=71 = -2(3) + c \Rightarrow 1 = -6 + c \Rightarrow c = 71=−2(3)+c⇒1=−6+c⇒c=7

Equation: y=−2x+7y = -2x + 7y=−2x+7.

−3-3−3
−1-1−1
111
333