Coordinate Geometry: Straight Lines
Competitive Mathematics · SSC CGL
In the previous chapter we worked with points. Now we write a whole straight line as one equation. The equation is a rule: every point of the line satisfies it and no point outside the line does. For example the rule fits , and , and they are in one line. With this rule the meeting of two lines, the angle between lines and the distance from a point all come out.
| Question | Method |
|---|---|
| How steep is the line? | Slope |
| What is the equation of the line? | Forms: , point-slope, two-point, intercept |
| What area does it enclose with the axes? | The intercept triangle |
| Where do two lines meet? | Intersection |
| Parallel, perpendicular, the angle between? | Comparing slopes |
| How far is a point from a line? | Perpendicular distance formula |
Slope and equation
The slope of a line, the forms of its equation and the triangle it makes with the axes.
To pin down a line you need two things: how steep it is (slope) and where it passes. That is how the equation is made.
The slope (gradient)
The steepness of a line: from two points, from the angle and from the equation.
The idea
The steepness of a staircase is how far you climb for each step forward. A line is the same: divide how far you went up (or down) between two points by how far you went sideways. This quotient is the slope . On a straight line it is the same for every pair of points, which is why the line is straight. The slope also tells the angle the line makes with the positive X-axis: , with measured anticlockwise.
- the slope
- coordinates of the first point
- coordinates of the second point
- angle from the positive X-axis, anticlockwise
- coefficients of and
- the constant term
| Angle | ||||||||
|---|---|---|---|---|---|---|---|---|
| Slope | undefined |
Steps
- Write the two points, or change the equation to .
- Take both differences in the same order: and .
- Divide; if the difference is zero the line is vertical.
- For the angle match with the table; for a negative slope use the acute angle.
Solved examples
- 1The rise: (it goes 6 down).
- 2The run: .
- 3.
- 4 is negative, so is obtuse. , so .
- 1Slope formula: , i.e. .
- 2Cross-multiply: , so and .
- 3On the line the slope is everywhere. From to the run is , so the rise is .
- 4. Check: the slope between and is ✓.
- 1The run is and the rise is .
- 2. The table has , so .
- 3The second line is turned from the first, so its inclination is (anticlockwise from the positive X-axis).
- 4Check: and the first slope is ; the product is — the signature of perpendicular lines (seen later).
Try it yourself
Forms of the equation of a line
Building the equation from what is given (slope, points, intercepts) and reading slope and intercepts from an equation.
The idea
The equation of a line is the rule linking the and of each of its points. Because the slope is the same everywhere on the line, the slope between any point of the line and one known point must equal : . This is the point-slope form, and all the other forms come from it. Which form to use depends on what the question gives.
| Given | Form | Equation |
|---|---|---|
| slope and Y-intercept | slope-intercept | |
| slope and a point | point-slope | |
| two points | two-point | |
| cuts , on the axes | intercept | |
| general form | general | |
| parallel to an axis | (vertical), (horizontal) |
Here = slope, = the Y-intercept, and = points on the line, and = the cuts on the X- and Y-axes.
- coefficients of and
- the constant on the right
- the slope
Steps
- See what is given and choose the form from the table above.
- With two points find the slope first, then use point-slope.
- Clear fractions by multiplying and write the result as .
- Check by putting the given points in.
Solved examples
- 1Slope-intercept form: with , : .
- 2Multiply by 4 to clear the denominator: .
- 3Bring to the left: .
- 4Check: Y-cut: at , , ✓; slope ✓.
- 1Slope: .
- 2Point-slope from the first point: .
- 3Multiply by 3: , i.e. .
- 4Check with the second point: ✓.
- 5Intercepts: at , ; at , .
- 1Intercept form: with the condition , so .
- 2 is on the line: . Clearing denominators: .
- 3Expand: , i.e. , which factorises as . So or .
- 4For , : , i.e. . For , : , i.e. .
- 5Check: ✓ and ✓.
Try it yourself
The triangle a line makes with the axes
The intercepts of , the triangle with the axes, and the trapezium between two parallel lines.
The idea
The line cuts the axes at on the X-axis and on the Y-axis. The axes are perpendicular, so the line and the axes enclose a right triangle whose legs are these two cuts. Its area is therefore . This is the quickest shortcut in the chapter: straight from the equation, , with no drawing.
- coefficients of and
- the constant on the right ()
- absolute value
In the intercept form the area is simply (here are the cuts). The trapezium of two parallel lines and with the axes is the bigger triangle minus the smaller: . The hypotenuse (the part of the line between the axes) is , where are the cuts.
Steps
- Write the line as with on the right.
- Find the area from (or take the cuts , and use their product).
- With two parallel lines find both triangles and subtract.
- If the area is given, solve backwards for ; remember the .
Solved examples
- 1X-cut: putting gives , . Y-cut: putting gives , .
- 2The axes are perpendicular, so the cuts are the legs of a right triangle.
- 3Area sq. units.
- 4Shortcut check: ✓.
- 1Both lines have the same , , so they are parallel and make two triangles with the axes.
- 2Smaller triangle (): .
- 3Bigger triangle (): .
- 4The part between them is sq. units, which is the trapezium.
- 1Take the intercept form (). The area , so .
- 2 is on the line: . Multiplying by gives .
- 3Put : . Multiplying by : , i.e. , i.e. .
- 4 and . The line is , i.e. .
- 5Check: ✓; area ✓.
Try it yourself
Two lines, and a line with a point
How two lines relate (meeting, parallel, perpendicular, angle) and how a point relates to a line (distance, foot, image).
With slope and equation in hand we now look at relations between two things: line and line, and point and line.
Where two lines meet
The point where two lines meet, the conditions for meeting, concurrency of three lines and the triangle they make.
The idea
The common point of two lines is the point whose makes both equations true together. So we find it by solving both equations simultaneously. There are three possibilities: the lines meet at one point (one solution), they are parallel (no solution), or they are the same line (infinitely many solutions). Which one it is shows from the ratios of their , , before solving.
| Case | Condition (lines , ) | Result |
|---|---|---|
| meet at one point | one solution | |
| parallel and distinct | no solution | |
| the same line | infinitely many solutions |
- coefficients of and in the -th line
- the constant of the -th line
- the determinant (zero means parallel)
Three lines are concurrent (through one point) if the meeting point of the first two also satisfies the third. The triangle of three lines: find the meeting point of each pair; these are the three vertices; then use the area formula of the previous chapter. With two lines and an axis, the cuts of the two lines on the axis give the base and the distance of their meeting point from the axis is the height.
Steps
- Write both equations as and look at the ratios , (are they parallel?).
- Remove one variable (multiply and subtract) and find the other.
- Check by putting the values in both equations.
- With three lines find each pair’s meeting point and then the area.
Solved examples
- 1Compare ratios: and — not equal, so the lines meet at one point.
- 2To remove multiply the first by 2: . Subtract the second: .
- 3. Put it in the first equation: , so .
- 4Check: in the second, ✓.
- 1No common point = parallel and distinct: .
- 2From , .
- 3Check the third ratio: , different from ✓. So at the lines are parallel and distinct, with no solution.
- 4To be the same line all three ratios must be equal: never holds, so for no are they one line.
- 1First two lines: adding gives , , and . Vertex .
- 2First and : , so . Vertex .
- 3Second and : , so . Vertex .
- 4The two vertices and have the same ordinate, so this horizontal side is the base: . The height to the third vertex is .
- 5Area . By the formula too: ✓.
Try it yourself
Parallel, perpendicular and the angle between lines
Parallel and perpendicular lines by comparing slopes, building their equations, and the angle between two lines.
The idea
The relation of two lines is decided by their slopes. Parallel lines lean equally the same way: equal slopes (). Perpendicular lines: turning one through gives the other: the step , so the slope , i.e. the reciprocal with a minus sign: . The angle between any two lines comes from the difference of their slopes.
| Relation | Slopes | Coefficients ( and ) |
|---|---|---|
| Parallel | ||
| Perpendicular | ||
| Angle |
Here are the slopes of the two lines () and is the acute angle between them. Rule for building lines: a parallel to is and a perpendicular is ; each time the new constant comes from putting in the given point.
Steps
- Find the slopes of both lines ().
- Equal means parallel; product means perpendicular; otherwise the angle formula.
- To build a parallel or perpendicular line, use the rule from and find from the point.
- Check that both the point and the slope fit.
Solved examples
- 1The parallel keeps the coefficients of and : .
- 2The point lies on it: .
- 3The line is . Check: slope , same as before ✓.
- 1The slope of the given line is . The perpendicular has the reciprocal with a minus sign: .
- 2Point-slope: . Multiply by 2: .
- 3So .
- 4Check: ✓ and the point: ✓.
- 1Slopes: for the first ; for the second .
- 2.
- 3The numerator and the denominator . So .
- 4 gives .
- 5Check: the inclinations are and ; their difference is ✓.
Try it yourself
Distance from a point to a line
The perpendicular distance of a point from a line, the distance between parallel lines, and which side of a line a point is on.
The idea
The distance of a point from a line is the shortest distance, the length of the perpendicular dropped on the line. To find it put the point into the equation of the line: . This number says how far the point is “off” the line, but mixed with the size of the coefficients. Dividing by gives the true length. The sign of the number says which side of the line the point is on.
- perpendicular distance
- coefficients of the line (constant on the left)
- coordinates of the point
- the constants of the two lines (after making equal)
- distance of the line from the origin
Steps
- Write the line as .
- Put in the point and find the numerator .
- Find the denominator and divide.
- For parallel lines first equalise the coefficients, then use .
Solved examples
- 1Make it “”: , i.e. , , .
- 2Numerator: .
- 3Denominator: .
- 4 units.
- 1The formula needs equal coefficients of and . Divide the second line by 2: .
- 2Now and (in “” form). .
- 3.
- 4 unit.
- 1The line is . Distance formula: .
- 2The denominator is 5, so .
- 3Two cases: ⟹ ; or ⟹ .
- 4Check: : ✓; : ✓.
Try it yourself
Foot and image
The foot of the perpendicular from a point to a line, the image in the line, and the mirror from a point and its image.
The idea
The perpendicular from to the line has direction (the normal direction of the line). So to reach the foot walk from in this direction as far as it takes to reach the line: , where . The image is as far again: , because is the midpoint of and .
- the multiplier that takes to the line
- the foot of the perpendicular
- the image
- coefficients of the line
The reverse question: given and its image , the mirror is the perpendicular bisector of : it passes through the midpoint and is perpendicular to . The same method gives the line of all points equidistant from two points (a locus).
Steps
- Write the line as and find .
- Foot: .
- Image: (or with ).
- Check: the foot is on the line and the midpoint of is the foot.
Solved examples
- 1The line has , , . Putting in the point gives and .
- 2.
- 3Foot .
- 4Check: ✓ and the direction of is , proportional to (perpendicular) ✓.
- 1, , . and , so .
- 2Foot . Check: ✓.
- 3Image .
- 4Check: the midpoint of and is , on the line ✓; , which equals ✓.
- 1The mirror is the perpendicular bisector of the segment joining the point and its image.
- 2The midpoint is on the mirror.
- 3The segment has slope , so the mirror has slope .
- 4Point-slope: , i.e. , i.e. .
- 5Check: the distance from is and from is ✓ (equal, on opposite sides).
Try it yourself
Triangle lines, regions, modulus
Equations of special lines of a triangle, regions of inequalities and shapes with , .
Putting the methods above together, three common exam types: equations of the median, altitude and perpendicular bisector of a triangle; the shaded region of an inequality; and areas of shapes with modulus.
Median, altitude, perpendicular bisector
Equations of the special lines of a triangle, the circumcentre and orthocentre, and a line through the meeting of two lines.
The idea
To build the equation of a line we need two pieces of information (two points, or a point and a slope). The three special lines of a triangle fit these. Median: the vertex and the midpoint of the opposite side, i.e. two points. Altitude: the vertex and the direction perpendicular to the opposite side, i.e. a point and a slope. Perpendicular bisector: the midpoint of a side and the direction perpendicular to it, i.e. a point and a slope. The tools from the previous chapter and methods simply combine here.
| Line | Through | Direction | Method |
|---|---|---|---|
| Median (vertex ) | towards the midpoint opposite | two-point form | |
| Altitude ( onto ) | perpendicular to | rule | |
| Perpendicular bisector (of ) | midpoint of | perpendicular to | rule |
The three altitudes meet at the orthocentre and the three perpendicular bisectors at the circumcentre . We only need the meeting of two lines. One more tool: any line through the intersection point of and is ; is fixed by one more condition (a point, a slope). It saves finding the meeting point.
Steps
- Decide which line it is and which two pieces of information it needs.
- Find the midpoint or the direction needed.
- Build the equation by the two-point form or the perpendicular rule and check it.
- If a centre is asked, solve two such lines.
Solved examples
- 1The median joins to the midpoint of : .
- 2The slope through and is .
- 3With on the Y-axis: , i.e. , i.e. .
- 4Check: at , ✓.
- 1The direction of is . Both lines are perpendicular to , so both have , i.e. (or simply ).
- 2The altitude passes through : , so .
- 3The perpendicular bisector passes through the midpoint of , : , so .
- 4The two are parallel (same ) — as they must be, both being perpendicular to . Check: the slope of is and theirs is , product ✓.
- 1: midpoint and direction . The perpendicular bisector is with , i.e. .
- 2: midpoint and direction , simplified . The perpendicular bisector is with , i.e. .
- 3Adding gives , so ; then . The circumcentre is .
- 4Check: , , — all equal, radius 5 ✓.
Try it yourself
Regions of linear inequalities
The half-plane of , deciding the shading, the common region of several inequalities and its area.
The idea
The line splits the plane into two half-planes. On one and on the other . To know which side the inequality is true on, put in one test point: the easiest is the origin (provided the line does not pass through it). If it satisfies the inequality choose its side, otherwise the other side. With “/” the line belongs to the region (solid line), with “/” it does not (dashed line).
If the line passes through the origin () the origin test fails; take another easy point, such as or . With several inequalities find each region and take the common part; it is a polygon whose vertices are meetings of the lines, with the area from the previous chapter’s formula. For “how many integer points” count row by row and add.
Steps
- Draw the boundary line of each inequality (using intercepts).
- Test the origin (or another point) and pick the correct side.
- Find the common part and its vertices.
- Then find the area or count the integer points as asked.
Solved examples
- 1The boundary is , which cuts the axes at and . The origin is not on it.
- 2Test: at the statement is false, so the shading is away from the origin. The line is solid ().
- 3At , is true, so it is in the region.
- 1The boundary passes through the origin, so the origin test is useless ( is true only because it is on the line).
- 2Take another point, say : is true, so the shading is on the side of , below and to the right of the line.
- 3: is false. : is true.
- 1The first three give the big triangle , , . The fourth, , cuts off the origin corner, since is false; the shading is above and to the right of the line .
- 2The line cuts the axes at and . So the vertices are , , , .
- 3Area = big triangle cut-off triangle .
- 4Shoelace check (): , , , ; sum , half ✓.
Try it yourself
Shapes with modulus (, )
, , shifted figures, rectangles and counting integer points.
The idea
means without its sign: when , and when . So when an equation has or we get a different line in each quadrant, and four pieces join to make the figure. In each piece is , cutting the axes at : the figure is a square whose diagonals lie on the axes. It shows that these areas are 4 times the triangle in the first quadrant.
| Equation / inequality | Shape | Area |
|---|---|---|
| square | ||
| rhombus | ||
| the same square, centre | ||
| rectangle | ||
| and the Y-axis | triangle |
Here is the “radius” of the square (the cut on an axis), the cuts on the axes, the centre of the figure and the distance from the centre to a corner (along an axis).
Steps
- Find the cuts on the axes (put and ).
- Recognise the figure: rhombus, square, rectangle or triangle.
- Find the area or perimeter from the diagonals/sides.
- For a shifted figure first put , to bring the centre to the origin.
Solved examples
- 1At , , so ; at , . The corners are and .
- 2Both diagonals are 12 and perpendicular, so it is a square.
- 3Area .
- 4Side , so the perimeter is .
- 1Corners and . Diagonals and .
- 2It is a rhombus: area (formula ).
- 3A side runs from to : . The perimeter is .
- 4Check: the origin is from the side ; the height of the rhombus is twice that, , and side height ✓.
- 1The integer values of run from to . For each , , i.e. integer values of .
- 2: ; : each; : each; : each; : each; : each.
- 3Total .
- 4Formula check: ✓.
Try it yourself
Locus and the circle
The path of a point obeying a rule, and the equation of a circle.
Here we turn things round: no figure is given, only a rule, and we find the equation of the figure (a line or a circle).
Locus and the equation of a circle
The locus of equal distance, fixed distance from a line, the equation of a circle, centre and radius, the circle on a diameter and tangency.
The idea
A locus is the set of all points obeying a given rule. There is one way to find its equation: name the moving point , write the rule in terms of and (mostly with the distance formula) and simplify. The equation that is left is the locus. Three rules come again and again: equal distance from two points (result: the perpendicular bisector, a line), fixed distance from a point (result: a circle), and fixed distance from a line (result: two parallel lines).
A circle is all points at distance from the centre . Squaring in the distance formula gives . Expanding gives the general form , in which the centre is and the radius is . The key to recognising it: the coefficients of and are equal and there is no term.
- the centre
- the radius
- constants of the general form ( and are the coefficients of and )
| Situation | Result |
|---|---|
| diameter ends , | |
| touches a line | radius = distance from centre to the line |
| touches both axes in the first quadrant | centre |
| point inside / on / outside | / / |
Steps
- Call the moving point and say the rule in words.
- Write the rule with the distance formula (or another formula) in , ; square to remove roots.
- Expand and simplify: if , cancel it is a line; if they stay (with equal coefficients) it is a circle.
- Check with one point.
Solved examples
- 1Take . The rule gives .
- 2.
- 3Expand: .
- 4 and cancel: , i.e. , i.e. .
- 5Check: the midpoint of , , is on it ( ✓) and has slope while this line has slope — product ✓.
- 1(i) , , , so , .
- 2Centre . Radius .
- 3(ii) , i.e. .
- 4Expand: , i.e. .
- 5Check (i): the point is 5 from and ✓ (the point is on the circle).
- 1The diameter formula: .
- 2Expand: , i.e. .
- 3Centre: (the midpoint of ). Radius . Check: ✓.
- 4The square of the origin’s distance from the centre is , less than , so the origin is inside the circle.
Try it yourself
Summary, mixed practice, revision
A one-page table of all methods, exam-style mixed questions and revision.
Summary of all methods
Every method: how to recognise the question and which formula to use.
| Method | Recognise | Key formula / rule |
|---|---|---|
| Slope | slope, inclination, angle with the X-axis | |
| Forms of the equation | build / read the equation of a line | , , |
| Triangle with the axes | area enclosed by a line and the axes | ; trapezium: |
| Meeting of two lines | intersection, concurrent, triangle of three lines | eliminate; parallel |
| Parallel, perpendicular, angle | build a parallel/perpendicular, angle | ; ; |
| Distance point to line | perpendicular distance, between parallels | ; |
| Foot and image | foot of perpendicular, mirror image | , , |
| Median, altitude, perp. bisector | equations of triangle lines, circumcentre, orthocentre | two-point; ; |
| Region of an inequality | shaded region, common region, integer points | origin test; area from vertices |
| Modulus shapes | an equation with , | ; ; |
| Locus, circle | equal/fixed distance, equation of a circle | ; ; |
Letters in the table: = slope, = angle from the positive X-axis; = coefficients of the line ; = constants of parallel lines; = the given point; in and , are the cuts on the axes; = the foot, = the image, = the multiplier; = the family parameter; = the size of a modulus figure (cut on an axis); and = the centre and radius of a circle; = constants of the general form of a circle.
Mixed practice
Mixed questions on all methods; first decide which method fits.
The questions here are not in the order of the methods. Before each one pause and decide which method applies. Open a solution only after you have tried.
Revision
All formulas at a glance and the mistakes that cost marks.
| Question | Answer |
|---|---|
| Slope of the line through two points? | |
| Slope of ? | |
| X-cut and Y-cut? | , |
| Slope at ? | |
| Triangle with the axes? | |
| Parallel to through ? | |
| Perpendicular to through ? | |
| Slopes of perpendicular lines? | |
| Angle between two lines? | |
| Distance from a point to a line? | |
| Distance between parallel lines? | after equalising the coefficients |
| Foot and image? | , |
| Equation of the mirror? | perpendicular bisector of |
| Line through the intersection of two lines? | |
| Area of ? | |
| Area of ? | |
| Circle (centre, radius)? | |
| Centre and radius of ? | , |
| Radius of a circle touching a line? | distance from the centre to the line |
- Finding the slope of a vertical line — has no slope; has slope .
- Turning the slope upside down — it is , not the reverse.
- Only reversing or only changing the sign for a perpendicular slope — do both: .
- Not making the equation “” in the distance formula — must be on the left; and not equalising the coefficients for parallel lines.
- Using for a line with — a line through the origin makes no triangle.
- Shading the wrong side of an inequality — do the origin test; for a line through the origin use another point.
- Taking the perimeter of as — the side is .
- Forgetting to reverse the centre’s sign — the centre of is ; in the general form it is .
- Checking only one equation for concurrent lines — put the meeting point into the third line.
- One solution of “ number” — take both signs.