Module 1.5 – Linear Equations
Learning Objectives
In this section, you will:
- Solve linear equations in one variable.
- Write and interpret a linear equation.
- Graph a linear equation.
Caroline is a full-time college student planning a spring break vacation. To earn enough money for the trip, she has taken a part-time job at the local bank that pays \$15.00/hr, and she opened a savings account with an initial deposit of \$400 on January 15. She arranged for direct deposit of her payroll checks. If spring break begins March 20 and the trip will cost approximately \$2,500, how many hours will she have to work to earn enough to pay for her vacation? If she can only work 4 hours per day, how many days per week will she have to work? How many weeks will it take? In this section, we will investigate problems like this and others, which generate graphs like the line in Figure 1.
Solving Linear Equations in One Variable
A linear equations is an equation of a straight line, written in one variable. The only power of the variable is 1. Linear equations in one variable may take the form $ax + b = 0$ and are solved using basic algebraic operations.
We begin by classifying linear equations in one variable as one of three types: identity, conditional, or inconsistent. An identity equation is true for all values of the variable. Here is an example of an identity equation.
\[
3x = 2x + x
\]
The solution set consists of all values that make the equation true. For this equation, the solution set is all real numbers because any real number substituted for $x$ will make the equation true.
A conditional equation is true for only some values of the variable. For example, if we are to solve the equation $5x + 2 = 3x – 6$, we have the following:
\begin{align*}
5x + 2 &= 3x – 6 \\
2x &= -8 \\
x &= -4
\end{align*}
The solution set consists of one number: ${-4}$. It is the only solution and, therefore, we have solved a conditional equation.
An inconsistent equation results in a false statement. For example, if we are to solve $5x – 15 = 5(x – 4)$, we have the
following:
\begin{align*}
5x – 15 &= 5(x – 4) \\
5x – 15 &= 5x – 20 \\
5x – 15 – 5x &= -20 & \text{Subtract $5x$ from both sides.} \\
-15 &\neq -20 & \text{False statement}
\end{align*}
Indeed, $-15 \neq -20$. There is no solution because this is an inconsistent equation.
Solving linear equations in one variable involves the fundamental properties of equality and basic algebraic operations. A brief review of those operations follows.
A linear equation in one variable can be written in the form
\[
ax + b = 0
\]
where $a$ and $b$ are real numbers, $a \neq 0$.
How To…
Given a linear equation in one variable, use algebra to solve it.
The following steps are used to manipulate an equation and isolate the unknown variable, so that the last line reads $x = $ , if $x$ is the unknown. There is no set order, as the steps used depend on what is given:
- We may add, subtract, multiply, or divide an equation by a number or an expression as long as we do the same thing to both sides of the equal sign. Note that we cannot divide by zero.
- Apply the distributive property as needed: $a(b + c) = ab + ac$.
- Isolate the variable on one side of the equation.
- When the variable is multiplied by a coefficient in the final stage, multiply both sides of the equation by the reciprocal of the coefficient.
Example 1 Solving an Equation in One Variable
Solve the following equation: $2x + 7 = 19$.
Solution This equation can be written in the form $ax + b = 0$ by subtracting 19 from both sides. However, we may proceed to solve the equation in its original form by performing algebraic operations.
\begin{align*}
2x + 7 &= 19 \\
2x &= 12 & \text{Subtract 7 from both sides.} \\
x &= 6 & \text{Divide both sides by 2.}
\end{align*}
The solution is $x = 6$.
Try It
Solve the linear equation in one variable: $2x+1 = -9$.
Example 2 Solving an Equation Algebraically When the Variable Appears on Both Sides
Solve the following equation: $4(x-3) + 12 = 15 – 5(x+6)$.
Solution Apply standard algebraic properties.
\begin{align*}
4(x-3) + 12 &= 15 – 5(x+6) \\
4x-12 + 12 &= 15 – 5x – 30 & \text{Apply the distributive property.} \\
4x &= -15 – 5x & \text{Combine like terms.} \\
9x &= -15 & \text{Place $x$ terms on one side and simplify.} \\
x &= \frac{-15}{9} & \text{Divide both sides by 9.} \\
x &= -\frac{5}{3}
\end{align*}
Analysis This problem requires the distributive property to be applied twice, and then the properties of algebra are used to reach the final line, $x = -\frac{5}{3}$.
Try It
Solve the equation in one variable: $-2(3x-1) + x = 14 – x$.
Finding a Linear Equation
Perhaps the most familiar form of a linear equation is the slope-intercept form, written as $y = mx + b$, where $m =$ slope and $b = y$-intercept. Let us begin with the slope.
The Slope of a Line
The slope of a line refers to the ratio of the vertical change in $y$ over the horizontal change in $x$ between any two points on a line. It indicates the direction in which a line slants as well as its steepness. Slope is sometimes described as rise over run.
\[
m = \dfrac{y_{2} – y_{1}}{x_{2} – x_{1}}
\]
If the slope is positive, the line slants to the right. If the slope is negative, the line slants to the left. As the slope increases, the line becomes steeper. Some examples are shown in Figure 2. The lines indicate the following slopes: $m = -3$, $m = 2$, and $m = \frac{1}{3}$.
The slope of a line, $m$, represents the change in $y$ over the change in $x$. Given two points, $(x_{1}, y_{1})$ and $(x_{2}, y_{2})$, the following formula determines the slope of a line containing these points:
\[
m = \dfrac{y_{2} – y_{1}}{x_{2} – x_{1}}
\]
Example 3 Finding the Slope of a Line Given Two Points
Find the slope of a line that passes through the points $(2, -1)$ and $(-5, 3)$.
Solution We substitute the $y$-values and the $x$-values into the formula.
\begin{align*}
m &= \dfrac{3 – (-1)}{-5 – 2} \\
&= \dfrac{4}{-7} \\
&= -\dfrac{4}{7}
\end{align*}
The slope is $-\frac{4}{7}$.
Analysis It does not matter which point is called $(x_{1}, y_{1})$ or $(x_{2}, y_{2})$. As long as we are consistent with the order of the $y$ terms and the order of the $x$ terms in the numerator and denominator, the calculation will yield the same result.
Try It
Find the slope of the line that passes through the points $(-2, 6)$ and $(1, 4)$.
Example 4 Identifying the Slope and $y$-intercept of a Line Given an Equation
Identify the slope and $y$-intercept, given the equation $y = -\frac{3}{4}x – 4$.
Solution As the line is in $y = mx + b$ form, the given line has a slope of $m = -\frac{3}{4}$. The $y$-intercept is $(0, -4)$ since $b = -4$.
Analysis The $y$-intercept is the point at which the line crosses the $y$-axis. On the $y$-axis, $x = 0$. We can always identify the $y$-intercept when the line is in slope-intercept form, as it will always have a $y$-value of $b$. Or, just substitute $x = 0$ and solve for $y$.
The Point-Slope Formula
Given the slope and one point on a line, we can find the equation of the line using the point-slope formula.
\[
y – y_{1} = m(x – x_{1})
\]
This is an important formula, as it will be used in other areas of college algebra and often in calculus to find the equation of a tangent line. We need only one point and the slope of the line to use the formula. After substituting the slope and the coordinates of one point into the formula, we simplify it and write it in slope-intercept form.
Given one point and the slope, the point-slope formula will lead to the equation of a line:
\[
y – y_{1} = m(x – x_{1})
\]
Example 5 Finding the Equation of a Line Given the Slope and One Point
Write the equation of the line with slope $m = -3$ and passing through the point $(4, 8)$. Write the final equation in slope-intercept form.
Solution Using the point-slope formula, substitute -3 for $m$ and the point $(4, 8)$ for $(x_{1}, y_{1})$.
\begin{align*}
y – y_{1} &= m(x – x_{1}) \\
y – 8 &= -3(x – 4) \\
y – 8 &= -3x + 12 \\
y &= -3x + 20
\end{align*}
Analysis Note that any point on the line can be used to find the equation. If done correctly, the same final equation will be obtained.
Try It
Given $m = 4$, find the equation of the line in slope-intercept form passing through the point $(2, 5)$.
Example 6 Finding the Equation of a Line Passing Through Two Given Points
Find the equation of the line passing through the points $(3, 4)$ and $(0, -3)$. Write the final equation in slope-intercept form.
Solution First, we calculate the slope using the slope formula and two points.
\begin{align*}
m &= \dfrac{-3 – 4}{0 – 3} \\
&= \dfrac{-7}{-3} \\
&= \dfrac{7}{3}
\end{align*}
Next, we use the point-slope formula with the slope of $\frac{7}{3}$ , and either point. Let’s pick the point $(3, 4)$ for $(x_{1}, y_{1})$.
\begin{align*}
y – 4 &= \dfrac{7}{3}(x – 3) \\
y – 4 &= \dfrac{7}{3}x – 7 & \text{Distribute the $\frac{7}{3}$.} \\
y &= \dfrac{7}{3}x – 3
\end{align*}
In slope-intercept form, the equation is written as $y = \frac{7}{3}x – 3$.
Analysis To prove that either point can be used, let us use the second point $(0, -3)$ and see if we get the same equation.
\begin{align*}
y – (-3) &= \dfrac{7}{3}(x – 0) \\
y + 3 &= \dfrac{7}{3}x \\
y &= \dfrac{7}{3}x – 3
\end{align*}
We see that the same line will be obtained using either point. This makes sense because we used both points to calculate the slope.
Writing and Interpreting an Equation for a Line
Recall that we can write equations in either the slope-intercept form or the point-slope form. Now we can choose which method to use to write equations for a line based on the information we are given. That information may be provided in the form of a graph, a point and a slope, two points, and so on. Look at the graph of the function $f$ in Figure 3.
We are not given the slope of the line, but we can choose any two points on the line to find the slope. Let’s choose $(0, 7)$ and $(4, 4)$. We can use these points to calculate the slope.
\begin{align*}
m &= \dfrac{y_{2} – y_{1}}{x_{2} – x_{1}} \\
&= \dfrac{4 – 7}{4 – 0} \\
&= -\dfrac{3}{4}
\end{align*}
Now we can substitute the slope and the coordinates of one of the points into the point-slope form.
\begin{align*}
y – y_{1} &= m(x – x_{1}) \\
y – 4 &= -\dfrac{3}{4} (x – 4)
\end{align*}
If we want to rewrite the equation in the slope-intercept form, we would find
\begin{align*}
y – 4 &= -\dfrac{3}{4} (x – 4) \\
y – 4 &= -\dfrac{3}{4}x + 3 \\
y &= -\dfrac{3}{4}x + 7
\end{align*}
If we wanted to find the slope-intercept form without first writing the point-slope form, we could have recognized that the line crosses the $y$-axis when the output value is 7. Therefore, $b = 7$. We now have the initial value $b$ and the slope $m$ so we can substitute $m$ and $b$ into the slope-intercept form of a line.
\[
y = mx + b
\]
Linear equations can be written in the slope-intercept form where
\[
y = mx + b
\]
where $b$ is the initial or starting value of the equation (when input, $x = 0$), and $m$ is the constant rate of change, or slope of the function. The $y$-intercept is at $(0, b)$.
How To…
Given the graph of a linear equation, write an equation to represent the equation.
- Identify two points on the line.
- Use the two points to calculate the slope.
- Determine where the line crosses the $y$-axis to identify the $y$-intercept by visual inspection.
- Substitute the slope and $y$-intercept into the slope-intercept form of a line equation.
Example 7 Writing an Equation for a Line
Write an equation for a line given a graph of $f$ shown in Figure 4.
Solution Identify two points on the line, such as $(0, 2)$ and $(-2, -4)$. Use the points to calculate the slope.
\begin{align*}
m &= \dfrac{y_{2} – y_{1}}{x_{2} – x_{1}} \\
&= \dfrac{-4 – 2}{-2 – 0} \\
&= \dfrac{-6}{-2} \\
&= 3
\end{align*}
Substitute the slope and the coordinates of one of the points into the point-slope form.
\begin{align*}
y – y_{1} &= m (x – x_{1}) \\
y – (-4) &= 3(x – (-2)) \\
y + 4 &= 3(x + 2) \\
y + 4 &= 3x + 6 \\
y &= 3x + 2
\end{align*}
Graphing Linear Equations
Now that we’ve seen and interpreted graphs of lines, let’s take a look at how to create the graphs. There are three basic methods of graphing lines. The first is by plotting points and then drawing a line through the points. The second is by using the $y$-intercept and slope. And the third method is by using transformations of the identity function $f(x) = x$.
Graphing a Line by Plotting Points
To find points of a line, we can choose input values, evaluate the function at these input values, and calculate output values. The input values and corresponding output values form coordinate pairs. We then plot the coordinate pairs on a grid. In general, we should evaluate the function at a minimum of two inputs in order to find at least two points on the graph. For example, given the function, $f(x) = 2x$, we might use the input values 1 and 2. Evaluating the function for an input value of 1 yields an output value of 2, which is represented by the point $(1, 2)$. Evaluating the function for an input value of 2 yields an output value of 4, which is represented by the point $(2, 4)$. Choosing three points is often advisable because if all three points do not fall on the same line, we know we made an error.
How To…
Given a line, graph by plotting points.
- Choose a minimum of two input values.
- Evaluate the function at each input value.
- Use the resulting output values to identify coordinate pairs.
- Plot the coordinate pairs on a grid.
- Draw a line through the points.
Example 8 Graphing by Plotting Points
Graph $f(x) = -\frac{2}{3}x + 5$ by plotting points.
Solution Begin by choosing input values. This function includes a fraction with a denominator of 3, so let’s choose multiples of 3 as input values. We will choose 0, 3, and 6.
Evaluate the function at each input value, and use the output value to identify coordinate pairs.
$x$-value | $y$-value | Point |
$x = 0$ | $y = -\frac{2}{3}(0) + 5 = 5$ | $(0, 5)$ |
$x = 3$ | $y = -\frac{2}{3}(3) + 5 = 3$ | $(3, 3)$ |
$x = 6$ | $y = -\frac{2}{3}(6) + 5 = 1$ | $(6, 1)$ |
Plot the coordinate pairs and draw a line through the points. Figure 5 represents the graph of the line $y = -\frac{2}{3}x + 5$.
Try It
Graph $y = -\frac{3}{4}x + 6$ by plotting points.
Graphing a Line Using y-intercept and Slope
Another way to graph a line is by using specific characteristics rather than plotting points. The first characteristic is its $y$-intercept, which is the point at which the input value is zero. To find the $y$-intercept, we can set $x = 0$ in the equation.
The other characteristic of the line is its slope. Let’s consider the linear equation $y = \frac{1}{2}x + 1$. The slope is $\frac{1}{2}$. Because the slope is positive, we know the graph will slant upward from left to right. The $y$-intercept is the point on the graph when $x = 0$. The graph crosses the $y$-axis at $(0, 1)$. Now we know the slope and the $y$-intercept. We can begin graphing by plotting the point $(0, 1)$. We know that the slope is rise over run, $m = \dfrac{\text{rise}}{\text{run}}$. From our example, we have $\frac{1}{2}$, which means that the rise is 1 and the run is 2. So starting from our $y$-intercept $(0, 1)$, we can rise 1 and then run 2, or run 2 and then rise 1. We repeat until we have a few points, and then we draw a line through the points as shown in Figure 6.
In the equation $y = mx + b$, $b$ indicates the $y$-intercept $(0, b)$, the point at which the graph crosses the $y$-axis, and $m$ is the slope of the line and indicates the vertical displacement (rise) and horizontal displacement (run) between each successive pair of points. Recall the formula for the slope:
\[
m = \dfrac{\text{change in output (rise)}}{\text{change in input (run)}} = \dfrac{\Delta y}{\Delta x} = \dfrac{y_{2} – y_{1}}{x_{2} – x_{1}}
\]