Skip to main content

Section 1.4 Linear Equations in Two Variables

Subsection 1.4.1 Slope

The slope of the line through \((x_1,y_1)\) and \((x_2,y_2)\) is
\begin{equation*} m=\frac{y_2-y_1}{x_2-x_1}=\frac{\text{vertical change (rise)}}{\text{horizontal change (run)}} \end{equation*}
If \(x_1=x_2\text{,}\) the slope is undefined and the line is vertical.
Figure 1.4.1. Graph illustrating slope as rise over run between two points \((x_1,y_1)\) and \((x_2,y_2)\text{,}\) where the vertical change represents the rise and the horizontal change represents the run.
To see how the slope value affects the form of the graph, see FigureΒ 1.4.2.
Figure 1.4.2. Examples of four types of lines classified by slope: positive, negative, zero (horizontal), and undefined (vertical).
These categories describe how a line rises, falls, or remains constant as \(x\) increases.

Example 1.4.3.

Find the slope of the line that contains the two given points.
(a) \((5,2)\text{,}\) \((-3,2)\) Β  Β  Β  Β  (b) \((2,5)\text{,}\) \((5,7)\) Β  Β  Β  Β  (c) \((-7,2)\text{,}\) \((-7,-6)\)
Solution:
(a) Let \((x_1,y_1)=(5,2)\text{,}\) \((x_2,y_2)=(-3,2)\)
\begin{equation*} \text{slope} = \frac{y_2-y_1}{x_2-x_1} = \frac{2-2}{-3-5}=\frac{0}{-8} =0 \end{equation*}
The line is horizontal with equation \(y=2.\)
(b) Let \((x_1,y_1) = (2,5)\text{,}\) \((x_2,y_2) = (5,7)\)
\begin{equation*} \text{slope} = \frac{y_2-y_1}{x_2-x_1} = \frac{7-5}{5-2}=\frac{2}{3} \quad \quad \quad \end{equation*}
(c) The \(x\)-coordinates are the same so the slope is undefined. The line is vertical with equation \(x=-7\text{.}\)

Subsection 1.4.2 Other Forms for the Equation of a Line

  • The equation of a line (in slope-intercept form) with slope \(m\) and \(y\)-intercept \((0,b)\) is
    \begin{equation*} y=mx+b. \end{equation*}
  • Every nonvertical line can be written this way.

Example 1.4.4.

Identify the slope and \(y-\)intercept for the line Β  \(2x+4y=8\text{.}\)
Solution: Β  Solve for y.
\begin{align*} 2x+4y -\underline{2x} \amp = 8-\underline{2x} \\ 4y \amp =-2x +8 \\[0.25em]\\ \frac{4y}{4} \amp = \frac{-2x+8}{4} \\[0.25em]\\ y \amp = \frac{-2x}{4} + \frac{8}{4} \\[0.25em]\\ y \amp =-\frac{1}{2}x +2 \end{align*}
The slope is \(-\frac{1}{2}\) and the \(y\)-intercept is \((0,2)\text{.}\)
The equation of the line (in point-slope form) through \((x_1,y_1)\) with slope \(m\) is
\begin{equation*} y-y_1=m(x-x_1). \end{equation*}

Example 1.4.5.

Find the equation of the line that has slope \(\frac{1}{2}\) and passes through \((-4,3)\text{.}\) Write your answer in slope-intercept form.
Solution: Β  We have \(m=\frac{1}{2}\) and \((x_1,y_1)=(-4,3)\text{.}\) Substitute these values into the point-slope formula.
\begin{align*} y-y_1 \amp = m(x-x_1) \\ y-3 \amp = \frac{1}{2} (x--4) \\[0.15 em] \\ y-3 \amp = \frac{1}{2} (x+4) \\[0.15 em] \\ y-3 \amp = \frac{1}{2}x +2 \quad \quad \quad \quad \quad \text{(Distribute)} \\[0.15 em] \\ y \amp =\frac{1}{2}x +5 \quad \quad \quad \quad \quad \text{(Add $3$)} \end{align*}

Example 1.4.6.

Find the equation of the line that passes through \((2,3)\) and \((-4,5)\text{.}\) Write your answer in slope-intercept form.
Solution: Β  Find the slope first.
\begin{equation*} m=\dfrac{y_2-y_1}{x_2-x_1}=\frac{5-3}{-4-2}=\frac{2}{-6}=-\frac{1}{3} \end{equation*}
Use this slope for \(m\) and use \((x_1,y_1) = (2,3)\text{.}\)
\begin{align*} y-y_1 \amp = m(x-x_1)\\ y-3 \amp = -\frac{1}{3}(x-2) \\[0.15 em] \\ y-3 \amp = -\frac{1}{3}x + \frac{2}{3} \quad \quad \quad \quad \text{(Distribute)} \\[0.15 em] \\ y-3 + \underline{3} \amp = -\frac{1}{3}x + \frac{2}{3} + \underline{3} \\[0.15 em] \\ y \amp=-\frac{1}{3}x +\frac{11}{3} \end{align*}

Example 1.4.7.

Find the equation of the line through \(\left(0,\tfrac{1}{3} \right)\) with slope \(\tfrac{1}{2}\text{.}\) Write the equation in standard form using only integers. Use the smallest possible positive integer coefficient for \(x\text{.}\)
Solution: Β  Recall the standard form of a line: \(Ax+By=C\text{.}\)
We begin by writing the slope-intercept form:
\begin{equation*} y=\frac{1}{2}x + \frac{1}{3} \end{equation*}
Next, put the equation in standard form:
\begin{align*} \underline{-\frac{1}{2}x} + y \amp = \underline{-\frac{1}{2}x} + \frac{1}{2}x + \frac{1}{3} \\[0.25em]\\ -\frac{1}{2}x +y \amp =\frac{1}{3} \end{align*}
Finally, multiply both sides by \(-6\) to get the standard form requested:
\begin{align*} \underline{(-6)} \left( -\frac{1}{2}x +y \right) \amp = \underline{(-6)} \cdot\frac{1}{3} \\[0.25em]\\ (-6) \left( -\frac{1}{2}x \right) + (-6)y \amp = -2 \quad \quad \quad \quad \quad \text{ (Distribute)} \\[0.25em]\\ 3x - 6y \amp=-2 \end{align*}

Subsection 1.4.3 Parallel Lines

Parallel lines are lines that don’t intersect.
Two non-vertical lines are parallel if and only if their slopes are equal and they have different \(y\)-intercepts.

Example 1.4.8.

Find the equation in slope-intercept form of the line containing the point \((-1,2) \) that is parallel to \(y=-3x+2 \text{.}\)
Solution: Β  Our line has a slope of \(-3\text{,}\) the same as \(y=-3x+2\text{.}\)
Use point-slope form:
\begin{align*} y-y_1 \amp = m(x-x_1)\\ y-2 \amp =-3(x--1)\\ y-2 \amp =-3(x+1)\\ y-2 \amp =-3x-3 \\[0.25em]\\ y-2+\underline{2} \amp =-3x-3 +\underline{2}\\ y \amp =-3x-1 \end{align*}

Subsection 1.4.4 Perpendicular Lines

  • Perpendicular lines are lines that intersect at a right angle \((90 ^\circ). \)
  • Negative reciprocal: if a line has slope \(m\text{,}\) any line with slope \(-\frac{1}{m}\) is perpendicular to it.
  • Vertical lines are perpendicular to horizontal lines.

Example 1.4.9.

Find the equation of the line that is perpendicular to the line \(y=2x-3\) and contains the point \((1,-2)\text{.}\)
Solution: Β  The slope of our line is \(-\frac{1}{2}\text{,}\) the negative reciprocal of \(2\text{.}\)
Use point-slope form:
\begin{align*} y-y_1 \amp = m(x-x_1) \\[0.25em]\\ y--2 \amp = -\frac{1}{2}(x-1) \\[0.25em]\\ y+2 \amp = -\frac{1}{2}x +\frac{1}{2} \quad \quad \quad \text{(Distribute)} \\[0.25em]\\ y+2 - \underline{2} \amp = -\frac{1}{2}x +\frac{1}{2}-\underline{2} \\[0.25em]\\ y \amp =-\frac{1}{2}x - \frac{3}{2} \end{align*}

Subsection 1.4.5 Graphing a line using its slope and \(y\)-intercept

Start at the \(y\)-intercept and then use \(\text{slope } = \tfrac{\text{rise}}{\text{run}}\) to find a second point on the line. There are two cases to consider:
  1. Positive slope: As \(x\) increases, \(y\) increases. So, move up and to the right to find a point.
  2. Negative slope: As \(x\) increases, \(y\) decreases. So, move down and to the right to find a point.
For example, for slope equal to \(\tfrac{4}{3}\text{,}\) go up \(4\) units, then to the right \(3\) units.

Example 1.4.10.

Graph \(y=-\tfrac{2}{3}x +4\text{.}\)
Solution: Β  The \(y\)-intercept is \((0,4)\) and the slope is \(-\tfrac{2}{3}\text{.}\)
Start at \((0,4)\text{.}\) Move down \(2\) units and then move \(3\) units to the right.
As FigureΒ 1.4.11 shows, this gets us to the point \((3,2)\text{.}\)
Figure 1.4.11. Graph of the line \(y=-\tfrac{2}{3}x +4\) with dashed lines showing movement from one point on the line to another using the slope.

Subsection 1.4.6 Interpreting Slope

Consider the line \(y=-\tfrac{2}{3}x +4\text{.}\)
As the table below shows, when \(x\) increases by \(3\text{,}\) \(y\) decreases by \(2\text{.}\)
\(x \) \(0 \) \(3 \) \(6 \) \(9 \) \(12 \)
\(y= -\frac{2}{3}x + 4 \) \(4 \) \(2 \) \(0 \) \(-2 \) \(-4 \)

Example 1.4.12.

An office manager will spend a total of \(\$50,000\) on computers at \(\$2000\) each and printers at \(\$ 1200\) each. Write the number of computers purchased as a function of the number of printers purchased. Find and interpret the slope.
Solution: Β  Let \(c=\) the number of computers purchased, and let \(p=\) the number of printers purchased.
\begin{alignat*}{3} \amp \text{Computer Cost } \quad \amp \amp+ \quad \text{Printer Cost} \quad \amp \amp = \text{Total Cost} \quad \quad \\ \amp \quad \quad 2000c \quad \quad \quad \amp \amp + \quad \quad \quad 1200p \quad \amp \amp = \quad 50,000 \end{alignat*}
Divide everything by \(100\text{,}\) then solve for \(c\text{:}\)
\begin{align*} 20c +12p \amp =500 \\[0.25em]\\ 20c +12p -\underline{12p} \amp = 500-\underline{12p} \\ 20c \amp =-12p+500 \\[0.25em]\\ \frac{20c}{20} \amp =-\frac{12}{20}p+\frac{500}{20} \\[0.25em]\\ c \amp =-\frac{3}{5}p +25 \end{align*}
The slope is \(-\frac{3}{5}\text{.}\) If \(p\) increases by \(5\text{,}\) then \(c\) decreases by \(3\text{.}\)

Subsection 1.4.7 Application: Straight-Line Depreciation

Example 1.4.13.

A company paid \(\$150,000\) for a new \(18\)-wheeler. When it is \(10\) years old, it will be worth \(\$30,000\text{.}\) Using straight-line depreciation, the value of the truck in dollars, \(V\text{,}\) is a linear function of its age in years \(n\text{.}\) Find the function and the value when the truck is \(4\) years old.
Solution: Β  We need \(2\) points of the form \((n,V)\) on the line.
  1. When \(n=0\text{,}\) \(V=150,000\text{.}\) Β  Β  So, \((0, 150000)\) is on the line.
  2. When \(n=10\text{,}\) \(V=30,000\text{.}\) Β  Β  So, \((10,30000)\) is on the line.
The slope of the line is:
\begin{equation*} \frac{30,000 -150,000}{10-0} =-\frac{120,000}{10}= -12,000. \end{equation*}
Using point-slope form with the slope and \((0, 150000)\text{,}\) we get:
\begin{align*} V-150,000 \amp =-12,000(n-0) \\ V-150,000 \amp = -12,000n \\[0.25em]\\ V \amp =-12,000n +150,000 \end{align*}
The function is \(V =-12,000n +150,000 \text{.}\)
The value of the truck at \(4\) years is:
\begin{align*} V \amp =-12,000(4) + 150,000 \\ \amp = 102,000 \end{align*}
The value is \(\$102,000 \text{.}\)