Mg1–Mg6 - Straight lines, distances and gradients

Mg1–Mg6 - Straight lines, distances and gradients

Use coordinates to determine straight lines, lengths and meeting points. You will choose an equation that suits the information, handle horizontal and vertical exceptions, and read a short geometric argument to reconstruct a line.

Gradient and direction

Which points are equally far from A(1,1)A(1,1) and B(5,3)B(5,3)? Their midpoint (3,2)(3,2) is one: both squared distances are 22+12=52^2+1^2=5. By the end, you will describe every such point with one line equation.

You already know

Coordinates give horizontal position then vertical position. Pythagoras connects the two perpendicular coordinate changes to the straight-line distance. Keep subtraction orders consistent.

First capture a line's direction. The line below rises 33 units while moving 66 units right, so it rises half a unit for each unit right.

[DIAGRAM: asset_name: Rise and run on a straight line; caption: Corresponding coordinate changes determine the gradient; asset_slug: h640-gradient-line; description: Equal-scale axes show y equals one half x plus 2 through A minus 2 comma 1 and B 4 comma 4, with run 6, rise 3 and vertical intercept 2.]
Corresponding coordinate changes determine the gradient

Gradient

The gradient of a non-vertical straight line is the change in its vertical coordinate per unit increase in its horizontal coordinate. It is constant along that line.

The sign gives the direction of change; the size gives its rate.

Gradient

For distinct points with x2≠x1x_2\ne x_1,

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

A horizontal line has gradient 00; a vertical line has undefined gradient.

Not in the formula sheet: learn it.

Choose one journey between the points and use that journey for both changes.

Worked example 1: a negative direction

Question. Determine the gradient through (−1,4)(-1,4) and (5,1)(5,1).

Plan. Divide the vertical change by the matching horizontal change.

Δy=1−4=−3second height minus firstΔx=5−(−1)=6matching horizontal changem=−36=−12form the ratio\begin{aligned} \Delta y&=1-4=-3 && \text{second height minus first} \\ \Delta x&=5-(-1)=6 && \text{matching horizontal change} \\ m&=-\frac36=-\frac12 && \text{form the ratio} \end{aligned}

Why keep the minus sign? The line falls as the horizontal coordinate increases.

Answer. m=−12m=-\frac12.

Check. A horizontal change of 66 predicts a vertical change 6(−12)=−36(-\frac12)=-3, as required.

Change only the sign of the vertical change: move the second endpoint to (5,7)(5,7).

Worked example 2: reversing the rise

Question. Determine the gradient through (−1,4)(-1,4) and (5,7)(5,7).

Plan. Retain the same subtraction order with the new height.

Δy=7−4=3new vertical changeΔx=5−(−1)=6unchanged runm=36=12divide\begin{aligned} \Delta y&=7-4=3 && \text{new vertical change} \\ \Delta x&=5-(-1)=6 && \text{unchanged run} \\ m&=\frac36=\frac12 && \text{divide} \end{aligned}

Why is this positive? Both changes are now positive on the journey to the right.

Answer. m=12m=\frac12.

Check. Reversing both differences gives (−3)/(−6)=12(-3)/(-6)=\frac12 too.

On equal-scale axes, the inclination θ\theta, measured anticlockwise from the positive horizontal direction, gives m=tan⁡θm=\tan\theta by the right-triangle ratio. This result is not in the formula sheet. At 45∘45^\circ, m=1m=1; at 135∘135^\circ, m=−1m=-1. A vertical line such as x=3x=3 has zero horizontal change, so its gradient is undefined, rather than an enormous number.

Watch out

Wrong: reverse just the numerator, obtaining (4−1)/(5−(−1))=12(4-1)/(5-(-1))=\frac12 in Worked example 1. Right: reverse both differences or neither.

Keep the journey consistent for these new points.

Equations and drawing a line

A line equation connects every point on that line. The familiar form y=mx+cy=mx+c displays the gradient and vertical intercept; point–gradient form makes a known point useful immediately.

Forms of a straight-line equation

Through (x1,y1)(x_1,y_1) with finite gradient mm,

y−y1=m(x−x1)y-y_1=m(x-x_1)

For two points, if both coordinate differences are nonzero, an equivalent form is

y−y1y2−y1=x−x1x2−x1\frac{y-y_1}{y_2-y_1}=\frac{x-x_1}{x_2-x_1}

The general form ax+by+c=0ax+by+c=0, with a,ba,b not both zero, includes vertical lines. If b≠0b\ne0, its gradient is −a/b-a/b.

Not in the formula sheet: learn it.

The two-point ratios express the same fraction of the total vertical and horizontal changes. Cross-multiplication gives (x2−x1)(y−y1)=(y2−y1)(x−x1)(x_2-x_1)(y-y_1)=(y_2-y_1)(x-x_1); this last equation also handles a zero coordinate difference without dividing by it.

Worked example 3: the two-point form

Question. Determine the line through (1,−2)(1,-2) and (5,6)(5,6), giving a general-form equation.

Plan. Match the fractions of the two coordinate changes, then simplify.

y+28=x−14use changes 8 and 4y+2=2(x−1)multiply by 82x−y−4=0expand and collect\begin{aligned} \frac{y+2}{8}&=\frac{x-1}{4} && \text{use changes }8\text{ and }4 \\ y+2&=2(x-1) && \text{multiply by }8 \\ 2x-y-4&=0 && \text{expand and collect} \end{aligned}

Why subtract −2-2 in the numerator? The change starts from the first point's height.

Answer. 2x−y−4=02x-y-4=0.

Check. The two points give 2+2−4=02+2-4=0 and 10−6−4=010-6-4=0.

Change only the second point's height to −2-2. The line becomes horizontal and one ratio's denominator would be zero.

Worked example 4: a horizontal exception

Question. Determine the line through (1,−2)(1,-2) and (5,−2)(5,-2), in general form.

Plan. Use the unchanged vertical coordinate directly, or use the cross-multiplied equation.

4(y+2)=0(x−1)use the coordinate changesy+2=0divide by 4\begin{aligned} 4(y+2)&=0(x-1) && \text{use the coordinate changes} \\ y+2&=0 && \text{divide by }4 \end{aligned}

Why avoid the ratio form here? Its denominator y2−y1y_2-y_1 would be zero.

Answer. y+2=0y+2=0.

Check. Both points have height −2-2, and the gradient is 00.

With equal horizontal coordinates, the same reasoning gives a vertical line. With a point and gradient supplied instead, substitute straight into point–gradient form: gradient 33 through (2,−1)(2,-1) gives y+1=3(x−2)y+1=3(x-2), or 3x−y−7=03x-y-7=0.

To draw 6x+3y−12=06x+3y-12=0, mark the intercepts (2,0)(2,0) and (0,4)(0,4), then extend their line. Alternatively use y=−2x+4y=-2x+4: start at the vertical intercept and move one right, two down. If both intercepts coincide at the origin, choose another point; you still need two distinct points. Reading a point and rise over run from a graph reverses this process and supplies its equation.

Watch out

Wrong: divide by y2−y1=0y_2-y_1=0 to construct a horizontal line. Right: write y=y1y=y_1, or use the cross-multiplied relation. For a vertical line, write x=x1x=x_1.

This time the horizontal coordinate stays fixed instead.

Parallel and perpendicular lines

Parallel lines keep their direction. Perpendicular lines turn through a right angle. Work with gradients only when the gradients exist.

Parallel and perpendicular gradients

For finite gradients, parallel directions have m1=m2m_1=m_2. Perpendicular directions have

m1m2=−1m_1m_2=-1

Horizontal and vertical lines are perpendicular, although the vertical gradient is undefined. Equal gradients describe distinct parallel lines only when the lines are not coincident.

Not in the formula sheet: learn it.

A right-angle rotation turns a direction (u,v)(u,v) into (−v,u)(-v,u). The gradients v/uv/u and −u/v-u/v multiply to −1-1. Notice something neat: doubling both coordinate changes doubles the distance but leaves their ratio, and therefore the direction, exactly unchanged.

Worked example 5: keeping the direction

Question. Determine the line through (−2,3)(-2,3) parallel to 2x−3y=62x-3y=6.

Plan. Rearrange to read the gradient and use that gradient through the new point.

y=23x−2rearrangey−3=23(x+2)equal gradients2x−3y+13=0clear fractions and collect\begin{aligned} y&=\frac23x-2 && \text{rearrange} \\ y-3&=\frac23(x+2) && \text{equal gradients} \\ 2x-3y+13&=0 && \text{clear fractions and collect} \end{aligned}

Why change the intercept? The new point is not on the given line, so the parallel line has a different position.

Answer. 2x−3y+13=02x-3y+13=0.

Check. At (−2,3)(-2,3), −4−9+13=0-4-9+13=0; the gradient remains 23\frac23.

Keep the point and given line but change the requested relationship to perpendicular.

Worked example 6: turning through a right angle

Question. Determine the line through (−2,3)(-2,3) perpendicular to 2x−3y=62x-3y=6.

Plan. Use the negative reciprocal gradient −32-\frac32, then point–gradient form.

y−3=−32(x+2)use perpendicular gradient2y−6=−3x−6clear the fraction3x+2y=0collect terms\begin{aligned} y-3&=-\frac32(x+2) && \text{use perpendicular gradient} \\ 2y-6&=-3x-6 && \text{clear the fraction} \\ 3x+2y&=0 && \text{collect terms} \end{aligned}

Why −32-\frac32? Its product with 23\frac23 is −1-1.

Answer. 3x+2y=03x+2y=0.

Check. 3(−2)+2(3)=03(-2)+2(3)=0, and (23)(−32)=−1(\frac23)(-\frac32)=-1.

A line perpendicular to x=4x=4 is horizontal; a line perpendicular to y=−2y=-2 is vertical. Those directions settle the cases without a gradient product.

Exam tip

For MEI's “Determine”, justify the direction and position: show the required gradient relationship and use the given point. A correct-looking equation alone does not explain how the conditions are met.

Use the same two checks for a new perpendicular line.

Midpoints and distances

The midpoint is halfway in each coordinate, not halfway between the two numbers written within one point. Pythagoras then gives the length of the segment from its two coordinate changes.

Midpoint and distance

For A(x1,y1)A(x_1,y_1), B(x2,y2)B(x_2,y_2),

M=(x1+x22,y1+y22)AB=(x2−x1)2+(y2−y1)2\begin{aligned} M&=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right) \\ AB&=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2} \end{aligned}

The distance is non-negative, including for horizontal and vertical segments.

Not in the formula sheet: learn it.

Squaring makes the distance independent of the direction in which you measure the segment.

Worked example 7: two coordinate changes

Question. Find the midpoint and length between A(−4,1)A(-4,1) and B(2,9)B(2,9).

Plan. Average like coordinates and add the squares of the two changes.

M=(−4+22,1+92)=(−1,5)average coordinatesAB2=62+82=100PythagorasAB=10take the positive root\begin{aligned} M&=\left(\frac{-4+2}{2},\frac{1+9}{2}\right)=(-1,5) && \text{average coordinates} \\ AB^2&=6^2+8^2=100 && \text{Pythagoras} \\ AB&=10 && \text{take the positive root} \end{aligned}

Why add the squares? The horizontal and vertical changes are perpendicular sides of a right triangle.

Answer. Midpoint (−1,5)(-1,5), length 1010.

Check. From MM to either endpoint the squared distance is 32+42=253^2+4^2=25.

Change only the sign of the vertical displacement, moving BB to (2,−7)(2,-7).

Worked example 8: negative change, positive distance

Question. Find the midpoint and length from A(−4,1)A(-4,1) to B(2,−7)B(2,-7).

Plan. Repeat the midpoint average and square the signed changes.

M=(−4+22,1−72)=(−1,−3)average coordinatesAB2=62+(−8)2=100square both changesAB=10positive length\begin{aligned} M&=\left(\frac{-4+2}{2},\frac{1-7}{2}\right)=(-1,-3) && \text{average coordinates} \\ AB^2&=6^2+(-8)^2=100 && \text{square both changes} \\ AB&=10 && \text{positive length} \end{aligned}

Why has the length stayed the same? Only the sign of one change altered, and its square did not.

Answer. Midpoint (−1,−3)(-1,-3), length 1010.

Check. The two midpoint-to-endpoint changes are opposites, with squared length 32+42=253^2+4^2=25.

A missing endpoint can be recovered from the average. If M=(2,3)M=(2,3) and A=(−1,5)A=(-1,5), then B=(2(2)−(−1),2(3)−5)=(5,1)B=(2(2)-(-1),2(3)-5)=(5,1). This is the midpoint formula solved for the unknown coordinates.

Watch out

Wrong: the vertical change −8-8 contributes −64-64 to the distance calculation. Right: (−8)2=64(-8)^2=64, so squared changes are added.

Use exact arithmetic rather than rounding a length before the calculation is finished.

Intersections and exceptional cases

At a meeting point, both line equations hold. Solve them simultaneously and keep the two coordinates together in the answer.

Worked example 9: eliminating a coordinate

Question. Determine the intersection of x+2y=8x+2y=8 and 3x−2y=03x-2y=0.

Plan. Add the equations to eliminate yy, then substitute for yy.

4x=8add equationsx=2divide by 42+2y=8substitutey=3solve\begin{aligned} 4x&=8 && \text{add equations} \\ x&=2 && \text{divide by }4 \\ 2+2y&=8 && \text{substitute} \\ y&=3 && \text{solve} \end{aligned}

Why add? The vertical coefficients are opposites.

Answer. (2,3)(2,3).

Check. 2+2(3)=82+2(3)=8 and 3(2)−2(3)=03(2)-2(3)=0.

Change only the second line to a vertical one. Its fixed coordinate can be substituted immediately.

Worked example 10: substituting a fixed coordinate

Question. Determine the intersection of x+2y=8x+2y=8 and x=−2x=-2.

Plan. Substitute the known horizontal coordinate into the first equation.

−2+2y=8substitute2y=10add 2y=5divide by 2\begin{aligned} -2+2y&=8 && \text{substitute} \\ 2y&=10 && \text{add }2 \\ y&=5 && \text{divide by }2 \end{aligned}

Why is an undefined vertical gradient harmless? The equation x=−2x=-2 already gives all the information needed.

Answer. (−2,5)(-2,5).

Check. −2+2(5)=8-2+2(5)=8, with horizontal coordinate −2-2.

Equal gradients require another check. The pair y=2x+1y=2x+1, y=2x−3y=2x-3 leads to 1=−31=-3, a contradiction: there is no common point. The pair y=2x+1y=2x+1, 4x−2y+2=04x-2y+2=0 leads to 0=00=0, an identity: they are coincident, with infinitely many common points. A zero coefficient after elimination is information, rather than an instruction to divide by zero.

Watch out

Wrong: equal gradients mean the equations have no common points. Right: compare their positions too. Distinct parallel lines have none; coincident equations describe the same entire line.

Now use a different fixed horizontal coordinate.

A line defined by equal distances

An unfamiliar description can lead to familiar straight-line algebra. Read the definition below before deciding which formula to use.

Passage. Fix distinct points A(a,b)A(a,b) and B(c,d)B(c,d). Call a point P(x,y)P(x,y) balanced when its distances from AA and BB are equal. Since distances are non-negative, this is equivalent to

(x−a)2+(y−b)2=(x−c)2+(y−d)2(x-a)^2+(y-b)^2=(x-c)^2+(y-d)^2

Expanding cancels both squared variable terms, leaving

2(c−a)x+2(d−b)y=c2+d2−a2−b22(c-a)x+2(d-b)y=c^2+d^2-a^2-b^2

Because A≠BA\ne B, the two coefficients cannot both vanish. Balanced points therefore form a line. Each statement follows from the definition; the final equation has not been assumed.

Equal-distance line

The points equally distant from two distinct fixed points lie on their perpendicular bisector: the line through their midpoint at right angles to their joining segment.

The definition is not an extra formula supplied in the sheet. You can derive its equation by the squared-distance equality, then check its midpoint and direction.

Worked example 11: a horizontal pair of fixed points

Question. Use the passage to determine the balanced-point line for A(−2,1)A(-2,1), B(4,1)B(4,1).

Plan. Expand the equal squared distances and cancel matching terms.

(x+2)2+(y−1)2=(x−4)2+(y−1)2use the definitionx2+4x+4=x2−8x+16cancel the y terms12x=12collect termsx=1solve\begin{aligned} (x+2)^2+(y-1)^2&=(x-4)^2+(y-1)^2 && \text{use the definition} \\ x^2+4x+4&=x^2-8x+16 && \text{cancel the }y\text{ terms} \\ 12x&=12 && \text{collect terms} \\ x&=1 && \text{solve} \end{aligned}

Why square the distances? Equality is preserved and the square roots disappear.

Answer. The line is x=1x=1.

Check. It passes through the midpoint (1,1)(1,1) and is perpendicular to the horizontal segment ABAB. At (1,3)(1,3), both squared distances equal 1313.

Change only the height of BB, from 11 to 55. The equal-distance line will now slope.

Worked example 12: an oblique pair of fixed points

Question. Use the passage to determine the balanced-point line for A(−2,1)A(-2,1), B(4,5)B(4,5).

Plan. Form the squared-distance equality and collect its linear terms.

(x+2)2+(y−1)2=(x−4)2+(y−5)2equal distances4x−2y+5=−8x−10y+41expand and cancel squares12x+8y=36collect terms3x+2y=9divide by 4\begin{aligned} (x+2)^2+(y-1)^2&=(x-4)^2+(y-5)^2 && \text{equal distances} \\ 4x-2y+5&=-8x-10y+41 && \text{expand and cancel squares} \\ 12x+8y&=36 && \text{collect terms} \\ 3x+2y&=9 && \text{divide by }4 \end{aligned}

Why do no quadratic terms remain? Both squared distances contain exactly one x2x^2 and one y2y^2.

Answer. 3x+2y=93x+2y=9.

Check. The midpoint (1,3)(1,3) satisfies 3+6=93+6=9. The segment gradient is 23\frac23; the new line's gradient is −32-\frac32, giving product −1-1.

This is the reading habit needed for a longer mathematical article: identify what is defined, translate it faithfully, and justify the intermediate steps. The equal-distance equation and its expanded form are not in the formula sheet; derive them when needed.

Problem-solving

When a new geometric word is defined by an equation, start from that definition. A numerical check confirms a case; the cancellation of the squared terms explains the whole line.

Return to the opening points with the same reasoning. All the data are repeated so your argument stands on its own.

Quick Recap

  • Use matching coordinate changes for gradient, coordinate averages for midpoint and Pythagoras for length.
  • Point–gradient, two-point and general forms describe the same line when their conditions are respected.
  • Parallel gradients agree; finite perpendicular gradients multiply to −1-1.
  • Simultaneous equations distinguish one intersection, no intersection and coincident lines.
  • Translate unfamiliar geometric definitions into equations before choosing a method.

The opening points are equally far from A(1,1)A(1,1) and B(5,3)B(5,3) exactly when 2x+y=82x+y=8, their perpendicular bisector.