Skip to content

Mathematics · Ch 5 — Straight Line

General Form of Equation of a Line

5.4

General Form of Equation of a Line

5.4 General Form of Equation of a Line

Every line's equation can be written in the form

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

called the general form. For example, y=3x+2y=3x+2 rewrites as 3x−y+2=03x-y+2=0, and x2+y3=1\dfrac{x}{2}+\dfrac{y}{3}=1 rewrites as 3x+2y−6=03x+2y-6=0.

From the general form:

  • the slope is −ab-\dfrac{a}{b} (provided b≠0b\ne0);
  • the X-intercept is −ca-\dfrac{c}{a} (provided a≠0a\ne0);
  • the Y-intercept is −cb-\dfrac{c}{b} (provided b≠0b\ne0).

Remark. If a=0a=0, the line is parallel to the X-axis and has no X-intercept; if b=0b=0, the line is parallel to the Y-axis and has no Y-intercept.

Worked Example 1. Find the slope and intercepts of (a) x+y+10=0x+y+10=0, (b) 2x+y+30=02x+y+30=0, (c) x+3y−15=0x+3y-15=0.

  1. a=1,b=1,c=10a=1,b=1,c=10: slope =−1=-1, X-int =−10=-10, Y-int =−10=-10.
  2. a=2,b=1,c=30a=2,b=1,c=30: slope =−2=-2, X-int =−15=-15, Y-int =−30=-30.
  3. a=1,b=3,c=−15a=1,b=3,c=-15: slope =−13=-\tfrac13, X-int =15=15, Y-int =5=5. Worked Example 2. Find the acute angle between (a) 12x−4y=512x-4y=5 and 4x+2y=74x+2y=7; (b) y=2x+3y=2x+3 and y=3x+7y=3x+7.

(a) Slopes are m1=3m_1=3, m2=−2m_2=-2: tan⁡θ=∣3−(−2)1+3(−2)∣=∣5−5∣=1⇒θ=45°\tan\theta=\left|\dfrac{3-(-2)}{1+3(-2)}\right|=\left|\dfrac{5}{-5}\right|=1 \Rightarrow \theta=45°.

(b) Slopes are m1=2m_1=2, m2=3m_2=3: tan⁡θ=∣2−31+6∣=17⇒θ=tan⁡−1 ⁣(17)\tan\theta=\left|\dfrac{2-3}{1+6}\right|=\dfrac17 \Rightarrow \theta=\tan^{-1}\!\left(\dfrac17\right).

Worked Example 3. Find the acute angle between y−3x+1=0y-\sqrt3x+1=0 and 3y−x+7=0\sqrt3y-x+7=0. Slopes: from the first, y=3x−1y=\sqrt3x-1, so m1=3m_1=\sqrt3; from the second, y=x3−73y=\dfrac{x}{\sqrt3}-\dfrac{7}{\sqrt3}, so m2=13m_2=\dfrac{1}{\sqrt3}. Then tan⁡θ=∣3−131+3⋅13∣=∣232∣=13⇒θ=30°\tan\theta=\left|\dfrac{\sqrt3-\frac{1}{\sqrt3}}{1+\sqrt3\cdot\frac{1}{\sqrt3}}\right|=\left|\dfrac{\frac{2}{\sqrt3}}{2}\right|=\dfrac{1}{\sqrt3} \Rightarrow \theta=30°.

Worked Example 4. Show the following pairs are perpendicular: (a) 2x−4y=52x-4y=5 and 2x+y=172x+y=17; (b) y=2x+23y=2x+23 and 2x+4y=272x+4y=27.

(a) m1=12m_1=\tfrac12, m2=−2m_2=-2: m1m2=−1m_1m_2=-1 ✓. (b) m1=2m_1=2, m2=−12m_2=-\tfrac12: m1m2=−1m_1m_2=-1 ✓.

Worked Example 5. Find the lines through the origin making 45°45° with 3x−y=63x-y=6 (slope 33). Let mm be the unknown slope: tan⁡45°=∣m−31+3m∣=1\tan45°=\left|\dfrac{m-3}{1+3m}\right|=1, so m−31+3m=±1\dfrac{m-3}{1+3m}=\pm1. Taking +1+1: m−3=1+3m⇒−2m=4⇒m=−2m-3=1+3m \Rightarrow -2m=4 \Rightarrow m=-2. Taking −1-1: m−3=−1−3m⇒4m=2⇒m=12m-3=-1-3m \Rightarrow 4m=2 \Rightarrow m=\tfrac12. The two required lines through the origin are y=−2xy=-2x and y=12xy=\tfrac12x, i.e. 2x+y=02x+y=0 and x−2y=0x-2y=0.

Worked Example 6. A line is parallel to 2x+y=72x+y=7 (slope −2-2) and passes through the origin: y=−2xy=-2x, i.e. 2x+y=02x+y=0.

Worked Example 7. A line is parallel to x+3y=9x+3y=9 (slope −13-\tfrac13) and passes through A(2,7)A(2,7): y−7=−13(x−2)⇒3y−21=−x+2⇒x+3y−23=0y-7=-\tfrac13(x-2) \Rightarrow 3y-21=-x+2 \Rightarrow x+3y-23=0. …

Misc 5.4-Ex1Ex. 1 (a–c) — slope and intercepts from the general form

Worked out. Finds the slope, X-intercept and Y-intercept for three lines — x+y+10=0, 2x+y+30=0, and x+3y−15=0 — by comparing each to ax+by+c=0. …

Misc 5.4-Ex2Ex. 2 (a,b) — acute angle between pairs of lines

Worked out. Finds the acute angle between two given pairs of lines by first reading off their slopes and then applying the tanθ formula, obtaining 45° for the first pair and tan⁻¹(1/7) for the second. …

Misc 5.4-Ex3Ex. 3 — acute angle between two specific lines

Worked out. Finds the acute angle between the lines y − √3x + 1 = 0 and √3y − x + 7 = 0 by identifying their slopes as √3 and 1/√3 and applying the tanθ formula, obtaining θ = 30°. …

Misc 5.4-Ex4Ex. 4 (a,b) — verifying perpendicularity of two pairs of lines

Worked out. Verifies that two given pairs of lines are perpendicular by showing the product of their slopes equals −1 in each case. …

Misc 5.4-Ex5Ex. 5 — lines through the origin at 45° to a given line

Worked out. Finds the equations of the two lines through the origin that make a 45° angle with the line 3x − y = 6, by solving the tan45° equation for the unknown slope and obtaining two values, −2 and 1/2. …

Misc 5.4-Ex6Ex. 6 — line through origin parallel to a given line

Worked out. Finds the equation of the line through the origin parallel to 2x + y = 7 by matching its slope. Working through this worked example after reading the theory above helps consolidate the method before attempting the exercise questions that follow it in the textbook. …

Misc 5.4-Ex7Ex. 7 — line through a point parallel to a given line

Worked out. Finds the equation of the line through A(2,7) parallel to x + 3y = 9 using the point-slope form with the matched slope. Working through this worked example after reading the theory above helps consolidate the method before attempting the exercise questions that follow it in the textbook. …

Misc 5.4-Ex8Ex. 8 — line through a point perpendicular to a given line

Worked out. Finds the equation of the line through A(1,1) perpendicular to 3x + 2y − 1 = 0 using the point-slope form with the perpendicular slope. …

Misc 5.4-NoteNote — point of intersection of two lines

Worked out. States that the coordinates of the point of intersection of two lines are found by solving their equations simultaneously. Working through this worked example after reading the theory above helps consolidate the method before attempting the exercise questions that follow it in the textbook. …

Misc 5.4-Ex9Ex. 9 — point of intersection of two lines

Worked out. Solves x + 2y = 3 and 2x − y = 1 simultaneously to find their point of intersection, (1,1). Working through this worked example after reading the theory above helps consolidate the method before attempting the exercise questions that follow it in the textbook. …

Misc 5.4-Ex10Ex. 10 — line parallel to the X-axis through an intersection point

Worked out. Finds the intersection of x + 2y = 6 and 2x − y = 2, then writes the equation of the line through that point parallel to the X-axis. …