Coordinate Geometry of Straight Lines

Updated July 2026

This guide covers the fundamental properties of straight lines in the Cartesian plane for the ESAT. It explores various forms of line equations, the geometric interpretation of gradients, and the specific conditions required for lines to be parallel or perpendicular. Understanding these relationships is vital for solving complex coordinate geometry problems.

Core concept

A straight line is defined by a constant gradient mm, representing the rate of change of yy relative to xx, which can be expressed through the equations yy1=m(xx1)y - y_1 = m(x - x_1) or ax+by+c=0ax + by + c = 0.

The Gradient of a Straight Line

The standard form of a straight line equation is y=mx+cy = mx + c, where mm represents the gradient and cc represents the yy-intercept. The gradient is a measure of the steepness of the line. If mm is positive, the line slopes upwards from bottom left to top right. If mm is negative, the line slopes downwards from top left to bottom right. The greater the absolute value of mm, the steeper the line.

We can define steepness more precisely as the vertical distance moved for every 1 unit moved horizontally. For instance, if the gradient is 2, moving 1 unit to the right requires moving 2 units up to stay on the line. If the gradient is -3, moving 1 unit to the right requires moving 3 units down.

img-17.jpeg

img-18.jpeg

Another interpretation is that the gradient represents a rate of change. A gradient of 2 means yy changes twice as fast as xx. If xx increases by 5, yy must increase by 10. A negative gradient indicates that as xx increases, yy decreases.

Gradient as a Trigonometric Tangent

If the scales on the xx and yy axes are identical, the gradient mm is equal to the tangent of the angle θ\theta that the line makes with the positive xx-axis, such that m=tanθm = \tan \theta.

img-19.jpeg

img-20.jpeg

For a line at 45 degrees, the gradient is tan45=1\tan 45^\circ = 1, as seen in the line y=xy = x. For an angle of 135 degrees, the gradient is tan135=1\tan 135^\circ = -1, as seen in y=xy = -x.

Special Cases: Horizontal and Vertical Lines

Horizontal lines have a gradient of zero and take the form y=ky = k, where kk is a constant. Vertical lines do not have a defined gradient, though they are sometimes described as having an infinite gradient. They take the form x=kx = k. Note specifically that the xx-axis has the equation y=0y = 0, and the yy-axis has the equation x=0x = 0.

Parallel and Perpendicular Lines

Two lines are parallel if and only if they have the same gradient. Thus, y=m1x+c1y = m_1x + c_1 and y=m2x+c2y = m_2x + c_2 are parallel if m1=m2m_1 = m_2.

Two lines are perpendicular if and only if the product of their gradients is 1-1, expressed as m1m2=1m_1m_2 = -1. This relationship can be understood by looking at similar triangles formed by the lines.

img-21.jpeg

You can also justify this using trigonometry. Since the angles made with the xx-axis differ by 90 degrees for perpendicular lines, the gradients m1=tanθm_1 = \tan \theta and m2=tan(θ+90)=cotθm_2 = \tan (\theta + 90^\circ) = -\cot \theta satisfy m1m2=tanθ×(1tanθ)=1m_1m_2 = \tan \theta \times (-\frac{1}{\tan \theta}) = -1.

Graph Transformations of y = x

The equations of straight lines can be viewed as transformations of the parent function y=xy = x. Consider how the following changes affect the graph:

  1. y=mxy = mx: A vertical stretch or reflection depending on the value of mm.
  2. yy1=xy - y_1 = x: A vertical translation by y1y_1.
  3. y=xx1y = x - x_1: A horizontal translation by x1x_1.
  4. yy1=m(xx1)y - y_1 = m(x - x_1): A combination of stretching and both horizontal and vertical translations.

Finding the Equation of a Line

You can uniquely determine a line's equation given two pieces of information.

Case 1: A point (x1,y1)(x_1, y_1) and the gradient mm

Since the gradient between any point (x,y)(x, y) on the line and the given point (x1,y1)(x_1, y_1) must be mm, we have: yy1xx1=m\frac{y - y_1}{x - x_1} = m Rearranging gives the point-slope form: yy1=m(xx1)y - y_1 = m(x - x_1). Alternatively, substitute the point into y=mx+cy = mx + c to solve for cc.

Examples:

  1. For m=4m = 4 and point (3,2)(3, 2): y2=4(x3)y=4x10y - 2 = 4(x - 3) \rightarrow y = 4x - 10.
  2. For m=5m = -5 and point (5,3)(5, 3): y3=5(x5)y=5x+28y - 3 = -5(x - 5) \rightarrow y = -5x + 28.
  3. For m=2m = -2 and point (2,4)(-2, -4): y(4)=2(x(2))y+4=2x4y=2x8y - (-4) = -2(x - (-2)) \rightarrow y + 4 = -2x - 4 \rightarrow y = -2x - 8.

Case 2: Two distinct points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2)

You can set the gradient between a general point (x,y)(x, y) and (x1,y1)(x_1, y_1) equal to the gradient between the two known points: yy1xx1=y1y2x1x2\frac{y - y_1}{x - x_1} = \frac{y_1 - y_2}{x_1 - x_2}

Alternatively, calculate m=y1y2x1x2m = \frac{y_1 - y_2}{x_1 - x_2} first, then use the method from Case 1. Ensure the order of subtraction is consistent for xx and yy to avoid sign errors.

Examples:

  1. Points (0,0)(0, 0) and (2,3)(2, 3): m=3020=1.5m = \frac{3-0}{2-0} = 1.5. Since it passes through the origin, y=1.5xy = 1.5x.
  2. Points (2,5)(-2, 5) and (4,7)(-4, -7): m=5(7)2(4)=122=6m = \frac{5 - (-7)}{-2 - (-4)} = \frac{12}{2} = 6. Using (2,5)(-2, 5), y5=6(x+2)y=6x+17y - 5 = 6(x + 2) \rightarrow y = 6x + 17.
  3. Points (3,7)(3, -7) and (8,7)(8, -7): The yy-values are identical, so it is a horizontal line y=7y = -7 with gradient 0.

The General Form ax + by + c = 0

Lines are frequently written as ax+by+c=0ax + by + c = 0. It is vital to note that the cc in this form is not the yy-intercept. To find the gradient and intercept, rearrange the equation into the form y=abxcby = -\frac{a}{b}x - \frac{c}{b}.

Key takeaways

  • The gradient mm is the rate of change of yy with respect to xx and is also given by m=tanθm = \tan \theta.
  • Two lines are parallel if m1=m2m_1 = m_2 and perpendicular if m1m2=1m_1 m_2 = -1.
  • Horizontal lines have the equation y=ky = k, while vertical lines have the equation x=kx = k.
  • The equation yy1=m(xx1)y - y_1 = m(x - x_1) is highly efficient for constructing line equations from a point and a gradient.
  • In the general form ax+by+c=0ax + by + c = 0, the yy-intercept is not cc: you must rearrange to find it.
Tips

Always perform a quick sanity check on your gradient sign. If the line goes up from left to right, your calculated mm must be positive. If you are given two points, a quick sketch can help prevent sign errors during the subtraction process.

Cautions

Be extremely careful with double negatives when using the formula yy1=m(xx1)y - y_1 = m(x - x_1). For example, if x1=3x_1 = -3, the equation becomes x(3)x - (-3), which is x+3x + 3. This is one of the most common sources of errors in coordinate geometry questions.

Insight

The concept of gradient as a 'rate of change' bridges coordinate geometry and calculus. The gradient of a straight line is the derivative of the linear function, showing that the rate of change for a straight line is constant at every point.

Frequently asked questions

How do I calculate the gradient if I only have two points?

Use the formula m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}. It is essential to subtract the coordinates in the same order for both the numerator and the denominator.

What is the gradient of a vertical line?

A vertical line does not have a defined numerical gradient because the change in xx is zero, and division by zero is undefined. Its equation is always in the form x=kx = k.

Does m1m2=1m_1 m_2 = -1 work for horizontal and vertical lines?

No, this specific rule excludes cases involving vertical lines because their gradient is undefined. However, a horizontal line (m=0m=0) and a vertical line are geometrically perpendicular.

How can I quickly find the y-intercept of ax+by+c=0ax + by + c = 0?

The yy-intercept occurs where x=0x = 0. Substitute x=0x = 0 into the equation to get by+c=0by + c = 0, which solves to y=cby = -\frac{c}{b}.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.