Equations of straight lines

Equations of straight lines

Spec 3.1 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The gradient between two points is m=y2−y1x2−x1m=\dfrac{y_2-y_1}{x_2-x_1}.
  • Use y=mx+cy=mx+c, y−y1=m(x−x1)y-y_1=m(x-x_1) or ax+by+c=0ax+by+c=0 (gradient −ab-\dfrac ab).
  • Parallel lines have equal gradients; perpendicular lines have m1m2=−1m_1m_2=-1.
  • The distance between two points is (x2−x1)2+(y2−y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.
  • In a linear model the gradient is the rate of change and the intercept is the starting value.

Gradient and equation

Find the gradient from two points, then use y−y1=m(x−x1)y-y_1=m(x-x_1) with either point.

The gradient is the change in yy divided by the change in xx, and the y-intercept is where x=0x=0.

For 3x−4y+12=03x-4y+12=0: y=34x+3y=\dfrac34x+3, so the gradient is 34\dfrac34.

−5−4−3−2−112345−6−4−2246810xyy = mx + c
Change the gradient m and the intercept c
48AB
Line through A(1,4)A(1,4) and B(5,12)B(5,12): rise 88 over run 44 gives m=2m=2

Worked example

Find the equation of the line through A(1,4)A(1,4) and B(5,12)B(5,12).

y = mx + c

  • Gradient m
  • y-intercept c

y − y₁ = m(x − x₁)

  • Gradient m
  • Passes through (x₁, y₁)

ax + by + c = 0

  • Gradient −a/b
  • Integer coefficients

What is the gradient of 6x+3y−9=06x+3y-9=0?

Parallel and perpendicular

Parallel lines have equal gradients; perpendicular lines have gradients whose product is −1-1.

Parallel lines have m1=m2m_1=m_2. Perpendicular lines have m1m2=−1m_1m_2=-1, so m2=−1m1m_2=-\dfrac{1}{m_1}: flip the fraction and change the sign.

4x+3y−7=04x+3y-7=0 has gradient −43-\dfrac43 and is perpendicular to 3x−4y+12=03x-4y+12=0 with gradient 34\dfrac34.

−4−2246810−4−2246810xyC(6, 0)(0.4, 2.8)y = 2x + 2y = −x/2 + 3
y=2x+2y=2x+2 and the perpendicular through C(6,0)C(6,0), y=−12x+3y=-\frac12x+3

Worked example

Find the equation of the line through C(6,0)C(6,0) perpendicular to l1l_1 with gradient 22.

Parallel

  • m₁ = m₂
  • Never meet

Perpendicular

  • m₁m₂ = −1
  • Meet at 90°

A line has gradient −35-\frac35. What is the gradient of a perpendicular line?

Lengths and areas

Use gradients to show right angles, the distance formula for lengths, then half base times height.

Set x=0x=0 for the yy-intercept and y=0y=0 for the xx-intercept. For 3x−4y+12=03x-4y+12=0 these are (0,3)(0,3) and (−4,0)(-4,0), giving a triangle with the origin of area 12×4×3=6\dfrac12\times4\times3=6.

The distance between (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) is (x2−x1)2+(y2−y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.

√52√13PQR
P(−2,1)P(-2,1), Q(4,5)Q(4,5), R(6,2)R(6,2): the angle at QQ is a right angle

Worked example

Show that PQ⊥QRPQ\perp QR for P(−2,1)P(-2,1), Q(4,5)Q(4,5), R(6,2)R(6,2), and find the area of the triangle.

What is the distance between (1,2)(1,2) and (7,10)(7,10)?

Straight-line models

In C=md+cC=md+c the gradient is the rate of change and the intercept is the starting value.

A linear model assumes a constant rate: cost per mile (gradient) and a fixed fee (intercept). Temperature conversion F=1.8C+32F=1.8C+32 and distance-time graphs (gradient is speed) are other examples.

A limitation is that real situations may have minimum charges, waiting time or limits on the values.

2468101214161820510152025303540xy(10, £20)(0, 5)(0, 8)C = 1.5d + 5R = 1.2d + 8
Two taxi firms: they charge the same at 10 miles

Worked example

A 44-mile journey costs £11\pounds11 and a 1010-mile journey costs £20\pounds20. Find the model, and where it meets a rival with R=1.2d+8R=1.2d+8.

In C=1.5d+5C=1.5d+5, what does the 55 represent?

Try an exam question

The line l1l_1 passes through A(1,4)A(1,4) and B(5,12)B(5,12). Find an equation for l1l_1. The line l2l_2 passes through C(6,0)C(6,0) and is perpendicular to l1l_1. Find an equation for l2l_2 in the form ax+by+c=0ax+by+c=0 where aa, bb and cc are integers.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the gradient of l1l_1.

1 mark, marked against the mark scheme

Revision notes