"

Linear Equations in One Variable

Learning Objectives

In this section you will:

  • Define algebraic equations.
  • Solve equations in one variable algebraically.
  • Find a linear equation.
  • Given the equations of two lines, determine whether their graphs are parallel or perpendicular.
  • Write the equation of a line parallel or perpendicular to a given line.

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 \mathdollar 15.00 /hr, and she opened a savings account with an initial deposit of \mathdollar 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 \mathdollar 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 below,

Coordinate plane where the x-axis ranges from 0 to 200 in intervals of 20 and the y-axis ranges from 0 to 3,000 in intervals of 500. The x-axis is labeled Hours Worked and the y-axis is labeled Savings Account Balance. A linear function is plotted with a y-intercept of 400 with a slope of 15. A dotted horizontal line extends from the point (0,2500).

Solving Linear Equations in One Variable

A linear equation 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.

Linear Equation in One Variable

A linear equation in one variable can be written in the form

ax+b=0

where a and b are real numbers and a \ne 0.

How To

Given a linear equation in one variable, use algebra to solve it.

The following tasks are used to manipulate an equation and isolate the unknown variable. 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.
  • 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.

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:

5x+2=3x-6

5x+2-2=3x-6-2

5x=3x-8

5x-3x=3x-3x-8

2x=-8

\dfrac{2x}{2}=\dfrac{-8}{2}

x=-4

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:

5x-15=5(x-4)

5x-15=5x-20

5x-15+15=5x-20+15

5x=5x-5

5x-5x=5x-5x-5

0=-5

Since 0 \ne -5 there is no solution and 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.

Algebraic Equations

An equation is two expressions connected by an equal sign.

A solution of an equation is a value of a variable that makes a true statement when substituted into the equation.

A solve an equation mean to find the solution.

An identity equation is true for all values of the variable

A conditional equation is true for only some values of the variable.

An inconsistent equation results in a false statement.

Solving an Equation in One Variable

Solve the following equation: 2x+7=19

Show 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.

2x+7=19
\vspace{5pt}

2x+7-7=19-7
\vspace{5pt}

2x=12
\vspace{5pt}

2x\cdot\dfrac{1}{2}=12\cdot\dfrac{1}{2}
\vspace{5pt}

\dfrac{2x}{2}=\dfrac{12}{2}
\vspace{5pt}

x=6

 

This is a conditional equation and the solution is 6.

Try It

Solve the linear equation in one variable: 2x+1=-9

Show Solution

x=-5

Solving an Equation Algebraically When the Variable Appears on Both Sides

Solve the following equation: 4(x-3)+12=15-5(x+6)

Show Solution

Notice that this problem requires the distributive property to be applied twice, and then the properties of algebra are used to reach the final answer.

Let’s simplify the left side first:

4(x-3)+12 = 15-5(x+6)
4x-12+12 = 15-5(x+6)
4x = 15-5(x+6)
Now, we will simplify the right side:
4x = 15-5x-30
4x = -15-5x
Next, we will solve for x:
4x +5x = -15-5x+5x
9x = -15
\vspace{5pt}
9x \cdot \dfrac{1}{9} = -15 \cdot\dfrac{1}{9}

\vspace{5pt}

\dfrac{9x}{9} = \dfrac{-15}{9}
\vspace{5pt}
x = \dfrac{-15}{9}
\vspace{5pt}
Lastly, we want to reduce the fraction:
x = \dfrac{-5}{3}

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=-\dfrac{5}{3}

Try It

Solve the equation in one variable: -2(3x-1)+x=14-x

Show Solution

x=-3

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=\text{slope}, and b=y \text{−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 in the graph below. The lines indicate the following slopes: m=-3, m=2, and m=\dfrac{1}{3}.

Coordinate plane with the x and y axes ranging from negative 10 to 10. Three linear functions are plotted: y = negative 3 times x minus 2; y = 2 times x plus 1; and y = x over 3 plus 2.

The Slope of a Line

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}}

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)

Show 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 -\dfrac{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)

Show Solution

m=-\dfrac{2}{3}

Identifying the Slope and y-intercept of a Line Given an Equation

Identify the slope and y-intercept, given the equationy=-\dfrac{3}{4}x-4

Show Solution

As the line is in y=mx+b form, the given line has a slope o fm=-\dfrac{3}{4}. The y-intercept is determined by b=-4, so the y-intercept is (0,-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 coordinate of the  y-intercept when the line is in slope-intercept form, as it will always equal 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.

The Point-Slope Formula

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})

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.

Show 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).

Show Solution

y=4x-3

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.

Show 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 o f\dfrac{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 } \dfrac{7}{3} \\ y &= \dfrac{7}{3}x - 3 \end{align*}

In slope-intercept form, the equation is written as y=\dfrac{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.

Standard Form of a Line

Another way that we can represent the equation of a line is in standard form. Standard form is given as

Ax+By=C

where A, B, and C are integers. The <em>x– and <em>y–terms are on one side of the equal sign and the constant term is on the other side.

Finding the Equation of a Line and Writing It in Standard Form

Find the equation of the line with m=-6, and passing through the point (\dfrac{1}{4},-2). Write the equation in standard form.

Show Solution

We begin using the point-slope formula.

    \begin{align*} y - (-2) &= -6\left(x - \dfrac{1}{4}\right) \\ y + 2 &= -6x + \dfrac{3}{2} \end{align*}

From here, we multiply through by 2, as no fractions are permitted in standard form, and then move both variables to the left aside of the equal sign and move the constants to the right.

    \begin{align*} 2(y + 2) &= \left(-6x + \dfrac{3}{2}\right) \cdot 2 \\ 2y + 4 &= -12x + 3 \\ 12x + 2y &= -1 \end{align*}

This equation is now written in standard form.

Try It

Find the equation of the line in standard form with slope m=-\dfrac{1}{3} and passing through the point (1,\dfrac{1}{3}).

Show Solution

x+3y=2

Vertical and Horizontal Lines

The equations of vertical and horizontal lines do not require any of the preceding formulas, although we can use the formulas to prove that the equations are correct. The equation of a vertical line is given as

x=c

where c is a constant. The slope of a vertical line is undefined, and regardless of the y-value of any point on the line, the x-coordinate of the point will be c.

Suppose that we want to find the equation of a line containing the following points: (-3,-5), (-3,1), (-3,3), and (-3,5). First, we will find the slope.

m=\dfrac{5-3}{-3-(-3)}=\dfrac{2}{0}

Zero in the denominator means that the slope is undefined and, therefore, we cannot use the point-slope formula. However, we can plot the points. Notice that all of the x-coordinates are the same and we find a vertical line through x=-3.

The equation of a horizontal line is given as

y=c

where c is a constant. The slope of a horizontal line is zero, and for any x-value of a point on the line, the y-coordinate will be c.

Suppose we want to find the equation of a line that contains the following set of points: (-2,-2), (0,-2), (3,-2), and (5,-2). We can use the point-slope formula. First, we find the slope using any two points on the line.

    \begin{align*} m &= \dfrac{-2 - (-2)}{0 - (-2)} \\ &= \dfrac{0}{2} \\ &= 0 \end{align*}

Use any point for ({x}_{1},{y}_{1}) in the formula, or use the y-intercept.

    \begin{align*} y - (-2) &= 0(x - 3) \\ y + 2 &= 0 \\ y &= -2 \end{align*}

The graph is a horizontal line through y=-2. Notice that all of the y-coordinates are the same.

Coordinate plane with the x-axis ranging from negative 7 to 4 and the y-axis ranging from negative 4 to 4. The function y = negative 2 and the line x = negative 3 are plotted.

 

Slope of a horizontal and vertical line

The slope of a horizontal line, y=b is 0.
The slope of a vertical line, x=a is undefined.

Finding the Equation of a Line Passing Through the Given Points

Find the equation of the line passing through the given points: (1,-3), and (1,4).

Show Solution

The x-coordinate of both points is 1. Therefore, we have a vertical line x=1.

Try It

Find the equation of the line passing through (-5,2) and (2,2).

Show Solution

Horizontal line: y=2

Determining Whether Graphs of Lines are Parallel or Perpendicular

Parallel lines have the same slope and different y-intercepts. Lines that are parallel to each other will never intersect. For example, the graph below shows the graphs of various lines with the same slope m=2.

Coordinate plane with the x-axis ranging from negative 8 to 8 in intervals of 2 and the y-axis ranging from negative 7 to 7. Three functions are graphed on the same plot: y = 2 times x minus 3; y = 2 times x plus 1 and y = 2 times x plus 5.

All of the lines shown in the graph are parallel because they have the same slope and different y-intercepts.

Perpendicular lines intersect to form a 90°-angle. The slope of one line is the negative reciprocal of the other. We can show that two lines are perpendicular if the product of the two slopes is -1:{m}_{1}\cdot {m}_{2}=-1. For example, the graph below shows the graph of two perpendicular lines. One line has a slope of 3; the other line has a slope of -\dfrac{1}{3}

    \begin{align*} m_1 \cdot m_2 &= -1 \\ 3 \cdot \left(-\dfrac{1}{3}\right) &= -1 \end{align*}

Coordinate plane with the x-axis ranging from negative 3 to 6 and the y-axis ranging from negative 2 to 5. Two functions are graphed on the same plot: y = 3 times x minus 1 and y = negative x/3 minus 2. Their intersection is marked by a box to show that it is a right angle.

Graphing Two Equations, and Determining Whether the Lines are Parallel, Perpendicular, or Neither

Graph the equations of the given lines, and state whether they are parallel, perpendicular, or neither: 3y=-4x+3 and 3x-4y=8.

Show Solution

The first thing we want to do is rewrite the equations so that both equations are in slope-intercept form.

First equation:

    \begin{align*} 3y &= -4x + 3 \\ y &= -\dfrac{4}{3}x + 1 \end{align*}

Second equation:

    \begin{align*} 3x - 4y &= 8 \\ -4y &= -3x + 8 \\ y &= \dfrac{3}{4}x - 2 \end{align*}

Coordinate plane with the x-axis ranging from negative 4 to 5 and the y-axis ranging from negative 4 to 4. Two functions are graphed on the same plot: y = negative 4 times x/3 plus 1 and y = 3 times x/4 minus 2. A box is placed at the intersection to note that it forms a right angle.

From the graph, we can see that the lines appear perpendicular, but we must compare the slopes.

    \begin{align*} m_1 &= -\dfrac{4}{3} \\ m_2 &= \dfrac{3}{4} \\ m_1 \cdot m_2 &= \left(-\dfrac{4}{3}\right)\left(\dfrac{3}{4}\right) = -1 \end{align*}

The slopes are negative reciprocals of each other, confirming that the lines are perpendicular.

Try It

Graph the two lines and determine whether they are parallel, perpendicular, or neither: 2y-x=10 and 2y=x+4.

Show Solution

Parallel lines: equations are written in slope-intercept form.

Coordinate plane with the x-axis ranging from negative 5 to 5 and the y-axis ranging from negative 1 to 6. Two functions are graphed on the same plot: y = x/2 plus 5 and y = x/2 plus 2. The lines do not cross.

Writing the Equations of Lines Parallel or Perpendicular to a Given Line

As we have learned, determining whether two lines are parallel or perpendicular is a matter of finding the slopes. To write the equation of a line parallel or perpendicular to another line, we follow the same principles as we do for finding the equation of any line. After finding the slope, use the point-slope formula to write the equation of the new line.

How To

Given an equation for a line, write the equation of a line parallel or perpendicular to it.

  1. Find the slope of the given line. The easiest way to do this is to write the equation in slope-intercept form.
  2. Use the slope and the given point with the point-slope formula.
  3. Simplify the line to slope-intercept form and compare the equation to the given line.

Writing the Equation of a Line Parallel to a Given Line Passing Through a Given Point

Write the equation of line parallel to a5x+3y=1,and passing through the point(3,5)

Show Solution

First, we will write the equation in slope-intercept form to find the slope.

    \begin{align*} 5x + 3y &= 1 \\ 3y &= -5x + 1 \\ y &= -\dfrac{5}{3}x + \dfrac{1}{3} \end{align*}

The slope is m=-\dfrac{5}{3}. The y-intercept is \dfrac{1}{3}, but that really does not enter into our problem, as the only thing we need for two lines to be parallel is the same slope. The one exception is that if the y-intercepts are the same, then the two lines are the same line. The next step is to use this slope and the given point with the point-slope formula.

    \begin{align*} y - 5 &= -\dfrac{5}{3}(x - 3) \\ y - 5 &= -\dfrac{5}{3}x + 5 \\ y &= -\dfrac{5}{3}x + 10 \end{align*}

The equation of the line is y=-\dfrac{5}{3}x+10.

Coordinate plane with the x-axis ranging from negative 8 to 8 in intervals of 2 and the y-axis ranging from negative 2 to 12 in intervals of 2. Two functions are graphed on the same plot: y = negative 5 times x/3 plus 1/3 and y = negative 5 times x/3 plus 10. The lines do not cross.

Try It

Find the equation of the line parallel to 5x=7+y and passing through the point (-1,-2).

Show Solution

y=5x+3

Finding the Equation of a Line Perpendicular to a Given Line Passing Through a Given Point

Find the equation of the line perpendicular to 5x-3y+4=0 that passes through the point (-4,1).

Show Solution

The first step is to write the equation in slope-intercept form.

    \begin{align*} 5x - 3y + 4 &= 0 \\ -3y &= -5x - 4 \\ y &= \dfrac{5}{3}x + \dfrac{4}{3} \end{align*}

We see that the slope is m=\dfrac{5}{3}. This means that the slope of the line perpendicular to the given line is the negative reciprocal, or -\dfrac{3}{5}. Next, we use the point-slope formula with this new slope and the given point.

    \begin{align*} y - 1 &= -\dfrac{3}{5}(x - (-4)) \\ y - 1 &= -\dfrac{3}{5}x - \dfrac{12}{5} \\ y &= -\dfrac{3}{5}x - \dfrac{12}{5} + \dfrac{5}{5} \\ y &= -\dfrac{3}{5}x - \dfrac{7}{5} \end{align*}

Key Concepts

  • We can solve linear equations in one variable in the form ax+b=0 using standard algebraic properties.
  • Given two points, we can find the slope of a line using the slope formula.
  • We can identify the slope and y-intercept of an equation in slope-intercept form.
  • We can find the equation of a line given the slope and a point.
  • We can also find the equation of a line given two points. Find the slope and use the point-slope formula.
  • The standard form of a line has no fractions.
  • Horizontal lines have a slope of zero and are defined as y=c where c<em> is a constant.
  • Vertical lines have an undefined slope (zero in the denominator), and are defined as x=c where c<em> is a constant.
  • Parallel lines have the same slope and different y-intercepts.
  • Perpendicular lines have slopes that are negative reciprocals of each other unless one is horizontal and the other is vertical.

License

Icon for the Creative Commons Attribution 4.0 International License

MAT 1073 College Algebra Reading Copyright © 2025 by OpenStax is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book