MatheramaMatherama
← Straight Lines
Straight Lines·Section 2·24 min read

Equation of a Straight Line

Equation of Horizontal and Vertical Lines§

The equation of a horizontal line in the Cartesian coordinate system can be described by a constant yy-coordinate since all points on the line have the same vertical position. Thus, the general equation of a horizontal line is:

y=ky = k

where kk is the yy-coordinate of any point on the line.

The equation of a vertical line, conversely, is given by a constant xx-coordinate, as all points on the line share the same horizontal position. The general equation of a vertical line is:

x=hx = h

where hh is the xx-coordinate of any point on the line.

Equation of a line with given slope and a point on it§

The equation of a line with slope mm passing through a given point A(x1,y1)A(x_1, y_1) is y−y1=m(x−x1)y - y_1 = m(x - x_1).

Equation of a line joining two points§

The equation of a line passing through two distinct points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2) is given by y−y1=y2−y1x2−x1(x−x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1).

Proof:

Let the slope mm of the line connecting points AA and BB be defined by the change in yy-coordinates divided by the change in xx-coordinates between these two points. Thus, the slope mm is calculated as:

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

This formula for the slope stems from the definition of slope in the Cartesian coordinate system, representing the rate of change of yy with respect to xx along the line.

Given the point-slope form of the equation of a line, which states that the difference in the yy-coordinates of any point (x,y)(x, y) on the line and point AA is proportional to the difference in their xx-coordinates, scaled by the slope mm, we express this relationship as:

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

Substituting the expression for mm into the point-slope form yields:

y−y1=y2−y1x2−x1(x−x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1)

This equation confirms that any point (x,y)(x, y) satisfying this equation will lie on the line through AA and BB, thus proving that it is the equation of the line joining points AA and BB. The equation is valid provided that x1≠x2x_1 \neq x_2, ensuring that the denominator is non-zero and the slope is defined.

Alternative form§

A line passing through two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2) is given by:

∣xy1x1y11x2y21∣=0\begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{vmatrix} = 0

Proof:

Let P(x,y)P(x,y) be an arbitrary point on the line joining AA and BB.

The area of a triangle formed by three points in a Cartesian plane can be calculated using the determinant of a matrix formed by their coordinates. For the points A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2), and P(x,y)P(x, y), the formula for the area is given by:

Δ=12∣∣xy1x1y11x2y21∣∣\Delta = \frac{1}{2} \left| \begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{vmatrix} \right|

Since the points are collinear, the area Δ\Delta must be zero. Therefore, we set the determinant to zero:

∣xy1x1y11x2y21∣=0\begin{vmatrix} x & y & 1 \\ x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \end{vmatrix} = 0

Intercept of a line on axes§

If a line intersects the x-axis at the point (a,0)(a, 0), then the x-axis intercept is simply referred to as aa. This value represents the point along the x-axis where the line crosses. Similarly, if the line intersects the y-axis at the point (0,b)(0, b), then the y-axis intercept is denoted by bb. This value indicates the point along the y-axis where the line crosses. These intercepts, aa and bb, provide a concise way to describe the behavior of the line in relation to each axis.

Slope-Intercept form of a Line§

The slope-intercept form of a line is a way to express the equation of a straight line when its slope mm and y-intercept cc are known. This form is represented as:

y=mx+cy = mx + c

Here, mm represents the slope of the line, and cc represents the y-coordinate of the point where the line intersects the y-axis, commonly referred to as the y-intercept.

Proof:

Consider a line with a known slope mm that passes through the y-axis at the point (0,c)(0, c). The slope mm is defined as the ratio of the change in the y-coordinates to the change in the x-coordinates between any two points on the line. Specifically, if you have a point (x,y)(x, y) on the line and another point (0,c)(0, c) on the line (the y-intercept), the slope mm can be calculated as follows:

m=y−cx−0m = \frac{y - c}{x - 0} m=y−cxm = \frac{y - c}{x}

Rearranging this equation to solve for yy gives:

y−c=mxy - c = mx y=mx+cy = mx + c

This confirms that the line's equation is y=mx+cy = mx + c. This form is particularly useful because it provides a straightforward method to graph the line by starting at the y-intercept (0,c)(0, c) and using the slope mm to determine the rise over run, moving from the intercept to other points on the line.

Importance of this form§

The slope-intercept form of a line, represented as y=mx+cy = mx + c, is highly significant for us for various reasons:

  1. Clarity and Simplicity:

    The slope-intercept form directly shows the slope mm and the y-intercept cc of the line. This clarity makes it straightforward to understand and visualize the behavior of the line without additional calculations.

  2. Ease of Graphing:

    This form simplifies graphing the line. By starting at the y-intercept cc on the y-axis and using the slope mm to determine the rise over run, one can plot subsequent points with ease.

  3. Analytical Convenience:

    Analyzing relationships between variables in various fields such as physics, economics, and biology often involves linear models. For example you might have seen the equation v=u+atv=u+at is physics motion chapter as the motion of a particle under constant acceleration. uu in the initial velocity, tt is the variable time, vv is the velocity at time tt and aa is the constant acceleration. If you will plot the graph of vv versus tt, then uu is the y-intercept and aa is the slope of the line.

Slope and x-intercept are known§

If a line has a known slope mm and an x-intercept aa, the equation of the line can be expressed as y=m(x−a)y = m(x-a).

Proof:

Consider the general point-slope form of a line equation, where (x1,y1)(x_1, y_1) is any point on the line, and mm is the slope:

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

For a line with an x-intercept at aa, the point (a,0)(a, 0) lies on the line. Substituting x1=ax_1 = a and y1=0y_1 = 0 into the point-slope equation, we obtain:

y−0=m(x−a)y - 0 = m(x - a)

This simplifies directly to:

y=m(x−a)y = m(x - a)

This derivation confirms that the line equation y=m(x−a)y = m(x - a) correctly represents a line with slope mm passing through the x-intercept aa, thus concluding the proof. ■\blacksquare

Intercept form of the Line§

If a line has known x-intercept aa and y-intercept bb, then the equation of the line can be expressed in intercept form as:

xa+yb=1\frac{x}{a} + \frac{y}{b} = 1

Figure for intercept form of line

Proof:

Given that the line intercepts the x-axis at aa and the y-axis at bb, it passes through the points (a,0)(a, 0) and (0,b)(0, b). We can derive the equation of the line using these intercepts.

  1. Use the two-point form of a line equation:

    The general equation of a line passing through two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is given by:

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

    Substituting the points (a,0)(a, 0) and (0,b)(0, b):

    y−0b−0=x−a0−a\frac{y - 0}{b - 0} = \frac{x - a}{0 - a}

    Simplifying gives:

    yb=x−a−a\frac{y}{b} = \frac{x - a}{-a} yb=−xa+1\frac{y}{b} = -\frac{x}{a} + 1
  2. Rearrange to form the intercept equation: Rearranging the equation gives:

    yb=1−xa\frac{y}{b} = 1 - \frac{x}{a} yb+xa=1\frac{y}{b} + \frac{x}{a} = 1

■\blacksquare

General Equation of a Straight Line§

The general equation of a line in the Cartesian coordinate system is expressed as:

ax+by+c=0ax + by + c = 0

Here, aa, bb, and cc are constants. This form of the line equation is versatile and can represent any line in a two-dimensional space, including vertical, horizontal, and oblique lines.

aa and bb cannot both be zero simultaneously. This ensures that the equation represents a line and not a degenerate case.

  1. Horizontal Line: If a=0a = 0, the equation simplifies to by+c=0by + c = 0. Rearranging gives y=−cby = -\frac{c}{b}, which is the equation of a horizontal line parallel to the x-axis.

  2. Vertical Line: If b=0b = 0, the equation simplifies to ax+c=0ax + c = 0. Rearranging yields x=−cax = -\frac{c}{a}, representing a vertical line parallel to the y-axis.

  3. Line Passing Through the Origin: If c=0c = 0, the equation reduces to ax+by=0ax + by = 0, indicating that the line passes through the origin (0,0).

  4. Slope of the Line: The slope mm of the line can be derived by rearranging the line equation into slope-intercept form y=mx+ny = mx + n. Starting from ax+by+c=0ax + by + c = 0 and solving for yy, we obtain y=−abx−cby = -\frac{a}{b}x - \frac{c}{b}. Therefore, the slope mm of the line is −ab-\frac{a}{b}.

  5. X-intercept: To find the x-intercept, set y=0y = 0 in the general equation:

    ax+by+c=0  ⟹  ax+c=0  ⟹  x=−ca.ax + by + c = 0 \implies ax + c = 0 \implies x = -\frac{c}{a}.

    Hence, the x-intercept is (−ca,0)(- \frac{c}{a}, 0).

  6. Y-intercept: To find the y-intercept, set x=0x = 0 in the general equation:

    ax+by+c=0  ⟹  by+c=0  ⟹  y=−cb.ax + by + c = 0 \implies by + c = 0 \implies y = -\frac{c}{b}.

    Therefore, the y-intercept is (0,−cb)(0, - \frac{c}{b}).

In summary, the line described by the equation ax+by+c=0ax + by + c = 0 has characteristics that depend on the coefficients aa, bb, and cc. It may be horizontal, vertical, or have a negative reciprocal slope depending on the values of aa and bb. The line intersects the x-axis and y-axis at calculated points unless it is parallel to one of the axes.

Parallel and perpendicular Lines§

Consider two lines L1L_1 and L2L_2 given by the equations:

L1:a1x+b1y+c1=0L_1: a_1x + b_1y + c_1 = 0 L2:a2x+b2y+c2=0L_2: a_2x + b_2y + c_2 = 0

Parallel Lines:

For the lines L1L_1 and L2L_2 to be parallel, their slopes must be equal. The slope of a line ax+by+c=0ax + by + c = 0 is given by −ab-\frac{a}{b} (provided b≠0b \neq 0). Therefore, the slopes of L1L_1 and L2L_2 are −a1b1-\frac{a_1}{b_1} and −a2b2-\frac{a_2}{b_2} respectively. Setting these slopes equal gives:

−a1b1=−a2b2  ⟹  a1a2=b1b2-\frac{a_1}{b_1} = -\frac{a_2}{b_2} \implies \frac{a_1}{a_2} = \frac{b_1}{b_2}

Thus, for L1L_1 and L2L_2 to be parallel, a1a2=b1b2\frac{a_1}{a_2} = \frac{b_1}{b_2}.

Coincident Lines:

Lines L1L_1 and L2L_2 are coincident if they are not only parallel but also have the same y-intercept. This condition is met if the entire equations are proportional, i.e., a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}. This proportionality ensures that every point on L1L_1 also lies on L2L_2, and vice versa, indicating that the two lines are indeed the same (coincident).

Perpendicular Lines:

Two lines are perpendicular if the product of their slopes is −1-1. From the slope expressions derived, the product of the slopes of L1L_1 and L2L_2 is:

(−a1b1)(−a2b2)=a1a2b1b2\left(-\frac{a_1}{b_1}\right) \left(-\frac{a_2}{b_2}\right) = \frac{a_1a_2}{b_1b_2}

Setting this equal to −1-1 for perpendicularity, we have:

a1a2b1b2=−1  ⟹  a1a2+b1b2=0\frac{a_1a_2}{b_1b_2} = -1 \implies a_1a_2 + b_1b_2 = 0

Therefore, for L1L_1 and L2L_2 to be perpendicular, a1a2+b1b2=0a_1a_2 + b_1b_2 = 0.

Intersection of two lines§

To determine the intersection point of two lines given by their equations L1:a1x+b1y+c1=0L_1: a_1x + b_1y + c_1 = 0 and L2:a2x+b2y+c2=0L_2: a_2x + b_2y + c_2 = 0, we consider three scenarios:

I. Parallel but not Coincident Lines:

For two lines to be parallel but not coincident, they must have the same slope but different y-intercepts. This condition is represented by a1a2=b1b2\frac{a_1}{a_2} = \frac{b_1}{b_2} and a1a2≠c1c2\frac{a_1}{a_2} \neq \frac{c_1}{c_2}. In this case, there is no intersection point as the lines are parallel and distinct.

II. Coincident Lines:

Lines are coincident when a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}. This implies that every point on L1L_1 is also on L2L_2, leading to infinitely many intersection points, essentially all points on either line.

III. Not Parallel Lines (Intersecting Lines):

When lines are not parallel, they will intersect at a unique point. The condition for non-parallel lines is a1a2≠b1b2\frac{a_1}{a_2} \neq \frac{b_1}{b_2}, which ensures that the determinant of the coefficient matrix is non-zero. The determinant is given by D=a1b2−a2b1D = a_1b_2 - a_2b_1. If D≠0D \neq 0, the lines will intersect at a unique point. The coordinates (x,y)(x, y) of the intersection point can be found using cross-multiplication method:

x(1b1c2−b2c1)=−y(1a1c2−a2c1)=1a1b2−a2b1x \left(\frac{1}{b_1c_2 - b_2c_1}\right) = -y \left(\frac{1}{a_1c_2 - a_2c_1}\right) = \frac{1}{a_1b_2 - a_2b_1}   ⟹  x=b1c2−b2c1a1b2−a2b1,y=a2c1−a1c2a1b2−a2b1\implies x = \frac{b_1c_2 - b_2c_1}{a_1b_2 - a_2b_1}, \quad y = \frac{a_2c_1 - a_1c_2}{a_1b_2 - a_2b_1}

Concurrency of three lines§

Three lines L1:a1x+b1y+c1=0L_1: a_1x + b_1y + c_1 = 0, L2:a2x+b2y+c2=0L_2: a_2x + b_2y + c_2 = 0, and L3:a3x+b3y+c3=0L_3: a_3x + b_3y + c_3 = 0 are concurrent (intersect at a single point) if and only if the determinant of their coefficient matrix is zero:

∣a1b1c1a2b2c2a3b3c3∣=0\begin{vmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{vmatrix} = 0

Proof:

Assume that the lines L1L_1, L2L_2, and L3L_3 are concurrent. This implies there exists a point (x,y)(x, y) that simultaneously satisfies all three line equations.

  1. Intersection of L1L_1 and L2L_2: Calculate the intersection point of L1L_1 and L2L_2 using Cramer's Rule. For non-parallel lines, the intersection point (x,y)(x, y) can be derived as follows:

    x=b1c2−b2c1a1b2−a2b1,y=a2c1−a1c2a1b2−a2b1x = \frac{b_1c_2 - b_2c_1}{a_1b_2 - a_2b_1}, \quad y = \frac{a_2c_1 - a_1c_2}{a_1b_2 - a_2b_1}

    where D=a1b2−a2b1≠0D = a_1b_2 - a_2b_1 \neq 0 (since L1L_1 and L2L_2 are not parallel).

  2. Substitute into L3L_3: Substitute xx and yy into L3L_3 to see if the point lies on the third line:

    a3(b1c2−b2c1a1b2−a2b1)+b3(a2c1−a1c2a1b2−a2b1)+c3=0a_3 \left(\frac{b_1c_2 - b_2c_1}{a_1b_2 - a_2b_1}\right) + b_3 \left(\frac{a_2c_1 - a_1c_2}{a_1b_2 - a_2b_1}\right) + c_3 = 0

    Simplifying, this can be rewritten in matrix form:

    1a1b2−a2b1∣a1b1c1a2b2c2a3b3c3∣=0\frac{1}{a_1b_2 - a_2b_1} \begin{vmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{vmatrix} = 0

    Given the equation 1D×Determinant=0\frac{1}{D} \times \text{Determinant} = 0 holds true, the determinant must be zero for the equation to hold, confirming that:

    ∣a1b1c1a2b2c2a3b3c3∣=0\begin{vmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \\ a_3 & b_3 & c_3 \end{vmatrix} = 0

Normal form the line§

The normal form of the equation of a straight line is xcos⁡θ+ysin⁡θ=px \cos \theta + y \sin \theta = p, where pp is the perpendicular distance from the origin to the line, and θ\theta is the angle the normal makes with the positive x-axis.

Proof:

To derive this form, consider a line that cuts the x-axis at point AA and the y-axis at point BB. Let the foot of the perpendicular dropped from the origin OO to the line be NN, making ON=pON = p and θ\theta the angle ONON makes with the positive x-axis.

Figure for the proof

  1. Axis Intercepts:

    • In triangle OANOAN, the angle at OO is θ\theta, ON=pON = p is the length of the perpendicular from the origin to the line, and OAOA is along the x-axis.

    • Using the definition of cosine in triangle OANOAN, we have:

      cos⁡θ=ONOA  ⟹  OA=ONcos⁡θ=pcos⁡θ\cos \theta = \frac{ON}{OA} \implies OA = \frac{ON}{\cos \theta} = \frac{p}{\cos \theta}

      Thus, the x-intercept AA is (pcos⁡θ,0)\left(\frac{p}{\cos \theta}, 0\right).

    • In triangle OBNOBN, the angle at OO is 90∘−θ90^\circ - \theta, and OBOB is along the y-axis.

    • Using the definition of sine in triangle OBNOBN, we find:

      sin⁡θ=ONOB  ⟹  OB=ONsin⁡θ=psin⁡θ\sin \theta = \frac{ON}{OB} \implies OB = \frac{ON}{\sin \theta} = \frac{p}{\sin \theta}

      Therefore, the y-intercept BB is (0,psin⁡θ)\left(0, \frac{p}{\sin \theta}\right).

  2. Derivation of Line Equation via Intercept Form:

    • The intercept form of a line's equation is xa+yb=1\frac{x}{a} + \frac{y}{b} = 1, where aa and bb are the x- and y-intercepts, respectively.

    • Substituting a=pcos⁡θa = \frac{p}{\cos \theta} and b=psin⁡θb = \frac{p}{\sin \theta}, the line equation becomes:

      xpcos⁡θ+ypsin⁡θ=1  ⟹  xcos⁡θp+ysin⁡θp=1\frac{x}{\frac{p}{\cos \theta}} + \frac{y}{\frac{p}{\sin \theta}} = 1 \implies \frac{x \cos \theta}{p} + \frac{y \sin \theta}{p} = 1
    • Multiplying through by pp, we obtain:

      xcos⁡θ+ysin⁡θ=px \cos \theta + y \sin \theta = p

Symmetric Form of a Straight Line§

The symmetric form of a line is a useful representation that captures the orientation and position of a line in a coordinate plane. It is given by the equation:

x−x1cos⁡θ=y−y1sin⁡θ=r\frac{x - x_1}{\cos \theta} = \frac{y - y_1}{\sin \theta} = r

Here, (x1,y1)(x_1, y_1) is a known point through which the line passes, θ\theta is the angle the line makes with the positive x-axis, and rr is the parameter representing the signed distance from the point (x1,y1)(x_1, y_1) to any point (x,y)(x, y) on the line. ∣r∣|r| is the actual distance between (x1,y1)(x_1, y_1) and (x,y)(x, y).

Proof:

Consider the straight line containing the fixed point A(x1,y1)A(x_1, y_1) and an arbitrary point P(x,y)P(x, y). Construct the right angled triangle APNAPN. The ∠NAP=θ\angle NAP = \theta. By the definition of cosine and sine in a right-angled triangle:

cos⁡(θ)=ANAP=x−x1r  ⟹  x−x1=rcos⁡(θ)\cos(\theta) = \frac{AN}{AP} = \frac{x - x_1}{r} \implies x - x_1 = r \cos(\theta) sin⁡(θ)=PNAP=y−y1r  ⟹  y−y1=rsin⁡(θ)\sin(\theta) = \frac{PN}{AP} = \frac{y - y_1}{r} \implies y - y_1 = r \sin(\theta)

From these equations, we can deduce:

x−x1cos⁡(θ)=randy−y1sin⁡(θ)=r\frac{x - x_1}{\cos(\theta)} = r \quad \text{and} \quad \frac{y - y_1}{\sin(\theta)} = r

Which implies:

x−x1cos⁡(θ)=y−y1sin⁡(θ)=r\frac{x - x_1}{\cos(\theta)} = \frac{y - y_1}{\sin(\theta)} = r

If point PP is situated below AA, the signs of the components change, giving us AN=x1−xAN = x_1 - x and PN=y1−yPN = y_1 - y, which results in:

x1−x=rcos⁡(θ)andy1−y=rsin⁡(θ)x_1 - x = r \cos(\theta) \quad \text{and} \quad y_1 - y = r \sin(\theta)

Leading to:

x−x1cos⁡(θ)=−randy−y1sin⁡(θ)=−r\frac{x - x_1}{\cos(\theta)} = -r \quad \text{and} \quad \frac{y - y_1}{\sin(\theta)} = -r

Therefore, for any arbitrary point PP on the line, we establish that:

x−x1cos⁡(θ)=y−y1sin⁡(θ)=±r\frac{x - x_1}{\cos(\theta)} = \frac{y - y_1}{\sin(\theta)} = \pm r

Here, rr is a positive number representing the distance from AA to PP. The ±\pm symbol accounts for the fact that rr can be oriented in either direction along the line. We replace ±r\pm r by just rr (absorbing ±\pm in rr). Now, rr can be considered a signed distance, where the sign indicates the direction with respect to the fixed point AA. Consequently, ∣r∣|r| gives the absolute distance from AA to PP without concern for direction. ■\blacksquare

Section 2 of 8 · Straight Lines

Mark this section complete when you have worked through its proofs.