Various Forms of Equation of a Straight Line

Understanding the equation of a straight line is fundamental in coordinate geometry. A straight line can be represented by an equation that relates the x and y coordinates of any point lying on that line. Different forms of this equation exist, each useful in specific situations depending on the information given (e.g., slope, intercepts, points on the line).

1. Slope-Intercept Form

This is one of the most commonly used forms. It's particularly useful when you know the slope of the line and the point where it intersects the y-axis.

The general equation for the slope-intercept form is: y = mx + c

Here:

  • y is the dependent variable (usually plotted on the vertical axis).
  • x is the independent variable (usually plotted on the horizontal axis).
  • m represents the slope (or gradient) of the line. The slope indicates how steep the line is. A positive slope means the line rises from left to right, while a negative slope means it falls.
  • c represents the y-intercept. This is the y-coordinate of the point where the line crosses the y-axis. In other words, it's the value of y when x = 0.

Example: If a line has a slope of 2 and a y-intercept of -3, its equation in slope-intercept form is y = 2x - 3.

2. Point-Slope Form

This form is useful when you know the slope of the line and the coordinates of at least one point that lies on the line.

The general equation for the point-slope form is: y - y1 = m(x - x1)

Here:

  • m is the slope of the line.
  • (x1, y1) are the coordinates of a known point on the line.
  • (x, y) are the coordinates of any general point on the line.

This form is derived directly from the definition of slope. The slope between any two points (x, y) and (x1, y1) on the line must be m. So, (y - y1) / (x - x1) = m, which rearranges to the point-slope form.

Example: Find the equation of a line with slope 3 passing through the point (1, 5). Using the point-slope form: y - 5 = 3(x - 1) y - 5 = 3x - 3 y = 3x + 2 (This is the slope-intercept form of the same line).

3. Two-Point Form

This form is used when you are given the coordinates of two distinct points on the line.

Let the two points be (x1, y1) and (x2, y2).

The slope m of the line passing through these two points is given by: m = (y2 - y1) / (x2 - x1)

We can then use the point-slope form with either of the two points. For instance, using (x1, y1): y - y1 = m(x - x1) Substituting the expression for m: y - y1 = [(y2 - y1) / (x2 - x1)](x - x1)

This is the two-point form. It's often rearranged to: (y - y1) / (x - x1) = (y2 - y1) / (x2 - x1)

Example: Find the equation of the line passing through (2, 3) and (4, 7). Let (x1, y1) = (2, 3) and (x2, y2) = (4, 7). The slope m = (7 - 3) / (4 - 2) = 4 / 2 = 2. Using the point-slope form with (2, 3): y - 3 = 2(x - 2) y - 3 = 2x - 4 y = 2x - 1.

4. Intercept Form

This form is useful when you know the points where the line crosses the x-axis and the y-axis. These points are the x-intercept and the y-intercept, respectively.

Let a be the x-intercept and b be the y-intercept.

The x-intercept is the x-coordinate where the line crosses the x-axis (i.e., where y = 0). So, the point is (a, 0). The y-intercept is the y-coordinate where the line crosses the y-axis (i.e., where x = 0). So, the point is (0, b).

Using the two-point form with (a, 0) and (0, b): (y - 0) / (x - a) = (b - 0) / (0 - a) y / (x - a) = b / (-a) -ay = b(x - a) -ay = bx - ab Rearranging to get the standard intercept form: bx + ay = ab

Dividing by ab (assuming a ≠ 0 and b ≠ 0): (bx / ab) + (ay / ab) = ab / ab x/a + y/b = 1

This is the intercept form. It directly shows the x-intercept (a) and y-intercept (b).

Example: Find the equation of a line with an x-intercept of 5 and a y-intercept of -3. Here, a = 5 and b = -3. Using the intercept form: x/5 + y/(-3) = 1 x/5 - y/3 = 1 To convert this to the general form Ax + By + C = 0, we can multiply by the least common multiple of 5 and 3, which is 15: 15(x/5) - 15(y/3) = 15(1) 3x - 5y = 15 3x - 5y - 15 = 0.

5. General Form (or Standard Form)

This is the most general way to represent the equation of a straight line. Any linear equation in two variables can be expressed in this form.

The general equation is: Ax + By + C = 0

Here:

  • A, B, and C are constants, and at least one of A or B must be non-zero.
  • If B ≠ 0, we can rewrite this in slope-intercept form: By = -Ax - C y = (-A/B)x - (C/B) Comparing this with y = mx + c, we can see that the slope m = -A/B and the y-intercept c = -C/B.
  • If B = 0, then the equation becomes Ax + C = 0. Since A cannot also be zero, this simplifies to x = -C/A. This represents a vertical line parallel to the y-axis, and its slope is undefined.
  • If A = 0, then the equation becomes By + C = 0. This simplifies to y = -C/B. This represents a horizontal line parallel to the x-axis, and its slope is 0.

Example: The equation 2x + 3y - 6 = 0 is in general form. Here, A = 2, B = 3, and C = -6. The slope is m = -A/B = -2/3. The y-intercept is c = -C/B = -(-6)/3 = 6/3 = 2. So, the slope-intercept form is y = (-2/3)x + 2.

6. Normal Form (Perpendicular Form)

This form is useful when you know the length of the perpendicular from the origin to the line and the angle this perpendicular makes with the positive x-axis.

The equation of the line in normal form is: x cos(ω) + y sin(ω) = p

Here:

  • p is the length of the perpendicular from the origin (0, 0) to the line. p is always non-negative (p ≥ 0).
  • ω (omega) is the angle the perpendicular makes with the positive x-axis. This angle is measured counter-clockwise and is usually taken in the range [0, 2π) or [0°, 360°).

The constants cos(ω) and sin(ω) are related to the coefficients A and B in the general form Ax + By + C = 0. If C is negative, we divide the entire equation by sqrt(A2 + B2). If C is positive, we divide by -sqrt(A2 + B2). For example, if the equation is Ax + By + C = 0 where C < 0, we get: (A/sqrt(A2 + B2))x + (B/sqrt(A2 + B2))y = -C/sqrt(A2 + B2) Comparing this to x cos(ω) + y sin(ω) = p, we have: cos(ω) = A/sqrt(A2 + B2) sin(ω) = B/sqrt(A2 + B2) p = -C/sqrt(A2 + B2)

Example: Find the normal form of the line 3x - 4y + 10 = 0. Here, A = 3, B = -4, C = 10. Since C is positive, we divide by -sqrt(A2 + B2). sqrt(A2 + B2) = sqrt(32 + (-4)2) = sqrt(9 + 16) = sqrt(25) = 5. Divide the equation by -5: (3x / -5) + (-4y / -5) + (10 / -5) = 0 (-3/5)x + (4/5)y - 2 = 0 Rearranging to the normal form x cos(ω) + y sin(ω) = p: (-3/5)x + (4/5)y = 2 Here, p = 2. We have cos(ω) = -3/5 and sin(ω) = 4/5. This indicates that ω is in the second quadrant. The angle ω can be found using the inverse trigonometric functions.

7. Parametric Form (or Symmetric Form)

This form is useful when you know a point on the line and the direction of the line. It expresses the coordinates (x, y) of any point on the line in terms of a parameter, usually denoted by r.

Let the line pass through the point (x1, y1) and make an angle θ with the positive x-axis.

The equation of the line in parametric form is: (x - x1) / cos(θ) = (y - y1) / sin(θ) = r

This can be split into two equations: x = x1 + r cos(θ) y = y1 + r sin(θ)

Here:

  • (x1, y1) is a known point on the line.
  • θ is the angle the line makes with the positive x-axis.
  • r is the parameter, representing the distance from the point (x1, y1) to the point (x, y) along the line. r can be positive or negative.

This form is derived from the definition of cosine and sine in a right-angled triangle formed by the points (x1, y1), (x, y), and (x, y1). The horizontal distance is x - x1, the vertical distance is y - y1, and the distance along the line is r.

Example: Find the parametric equation of the line passing through (2, 3) and making an angle of 60° with the positive x-axis. Here, (x1, y1) = (2, 3) and θ = 60°. cos(60°) = 1/2 and sin(60°) = sqrt(3)/2. The parametric equations are: x = 2 + r(1/2) y = 3 + r(sqrt(3)/2) Or, in symmetric form: (x - 2) / (1/2) = (y - 3) / (sqrt(3)/2) = r 2(x - 2) = (2/sqrt(3))(y - 3) = r

Interconversion Between Forms

It's important to be able to convert between these different forms. The general form Ax + By + C = 0 is the most versatile for conversion.

From General Form (Ax + By + C = 0) to Other Forms:

  • Slope-Intercept Form (y = mx + c): If B ≠ 0, y = (-A/B)x - (C/B). So, m = -A/B and c = -C/B.
  • Intercept Form (x/a + y/b = 1): If C ≠ 0, we can rewrite Ax + By = -C. Divide by -C: (Ax / -C) + (By / -C) = 1 x / (-C/A) + y / (-C/B) = 1 So, a = -C/A (x-intercept) and b = -C/B (y-intercept). This requires A ≠ 0 and B ≠ 0.
  • Normal Form (x cos(ω) + y sin(ω) = p): Divide the equation by ±sqrt(A2 + B2). Use the negative sign if C > 0 and the positive sign if C < 0 to ensure p ≥ 0.

Shortcut for converting General Form to Slope-Intercept Form:

Given Ax + By + C = 0:

  • Slope m = -A/B
  • y-intercept c = -C/B

Memory Trick: Think of the general form as a "black box". To get the slope, take the negative of the coefficient of x and divide by the coefficient of y. To get the y-intercept, take the negative of the constant term and divide by the coefficient of y.

Shortcut for converting General Form to Intercept Form:

Given Ax + By + C = 0:

  • x-intercept a = -C/A
  • y-intercept b = -C/B

Memory Trick: To get the x-intercept, put y=0 and solve for x. To get the y-intercept, put x=0 and solve for y. Then, use the form x/a + y/b = 1.

Special Cases

  • Horizontal Line: The equation is of the form y = k. In slope-intercept form, m = 0 and c = k. In general form, 0x + 1y - k = 0 (so A=0, B=1, C=-k).
  • Vertical Line: The equation is of the form x = h. The slope is undefined. In general form, 1x + 0y - h = 0 (so A=1, B=0, C=-h).
  • Line through the Origin: If a line passes through (0, 0), its y-intercept c = 0 and its x-intercept a = 0. The equation is of the form y = mx or Ax + By = 0.

Summary Table of Forms

Here's a quick reference table:

Form Name Equation When to Use Key Components
Slope-Intercept y = mx + c Given slope and y-intercept m (slope), c (y-intercept)
Point-Slope y - y1 = m(x - x1) Given slope and a point m (slope), (x1, y1) (point)
Two-Point (y - y1) / (x - x1) = (y2 - y1) / (x2 - x1) Given two points (x1, y1), (x2, y2) (points)
Intercept x/a + y/b = 1 Given x-intercept and y-intercept a (x-intercept), b (y-intercept)
General/Standard Ax + By + C = 0 Most general form, useful for conversions A, B, C (constants)
Normal x cos(ω) + y sin(ω) = p Given perpendicular distance from origin and its angle p (distance), ω (angle)
Parametric/Symmetric (x - x1) / cos(θ) = (y - y1) / sin(θ) = r Given a point and direction angle (x1, y1) (point), θ (angle), r (parameter)