1.1 Linear Equations
Chapter Overview
In this chapter, you will learn to:
- Graph a linear equation.
- Find the slope of a line.
- Determine an equation of a line.
- Solve linear systems.
- Do application problems using linear equations.
Graphing a Linear Equation
Equations whose graphs are straight lines are called linear equations. The following are some examples of linear equations:
, , , , and .
A line is completely determined by two points, therefore, to graph a linear equation, we need to find the coordinates of two points. This can be accomplished by choosing an arbitrary value for or and then solving for the other variable.
The points at which a line crosses the coordinate axes are called the intercepts. When graphing a line, intercepts are preferred because they are easy to find. In order to find the x-intercept, we let , and to find the y-intercept, we let .
Example 4
Graph the line given by the parametric equations: ,
Let , 1 and 2, and then for each value of find the corresponding values for and .
The results are given in the table below.
| 0 | 1 | 2 | |
|---|---|---|---|
| 3 | 5 | 7 | |
| 1 | 2 | 3 |

Horizontal and Vertical Lines
When an equation of a line has only one variable, the resulting graph is a horizontal or a vertical line.
The graph of the line , where is a constant, is a vertical line that passes through the point ( , 0). Every point on this line has the x-coordinate , regardless of the y-coordinate.
The graph of the line , where is a constant, is a horizontal line that passes through the point (0, ). Every point on this line has the y-coordinate , regardless of the x-coordinate.
Example 5
Graph the lines: , and .
The graph of the line is a vertical line that has the x-coordinate –2 no matter what the y-coordinate is. Therefore, the graph is a vertical line passing through (–2, 0).
The graph of the line , is a horizontal line that has the y-coordinate 3 regardless of what the x-coordinate is. Therefore, the graph is a horizontal line that passes through (0, 3).

Note
Most students feel that the coordinates of points must always be integers. This is not true, and in real life situations, not always possible. Do not be intimidated if your points include numbers that are fractions or decimals.
Slope of a Line
Section Overview
In this section, you will learn to:
- Find the slope of a line if two points are given.
- Graph the line if a point and the slope are given.
- Find the slope of the line that is written in the form .
- Find the slope of the line that is written in the form .
In the last section, we learned to graph a line by choosing two points on the line. A graph of a line can also be determined if one point and the "steepness" of the line is known. The precise number that refers to the steepness or inclination of a line is called the slope of the line.
From previous math courses, many of you remember slope as the "rise over run," or "the vertical change over the horizontal change" and have often seen it expressed as:
We give a precise definition.
Example 6
Find the slope of the line that passes through the points (-2, 3) and (4, -1), and graph the line.
Let and then the slope

To give the reader a better understanding, both the vertical change, –4, and the horizontal change, 6, are shown in the above figure.
When two points are given, it does not matter which point is denoted as and which . The value for the slope will be the same. For example, if we choose and , we will get the same value for the slope as we obtained earlier. The steps involved are as follows.
The student should further observe that if a line rises when going from left to right, then it has a positive slope; and if it falls going from left to right, it has a negative slope.
Example 7
Find the slope of the line that passes through the points (2, 3) and (2, -1), and graph.
Let and then the slope

Note
The slope of a vertical line is undefined.
Example 8
Graph the line that passes through the point (1, 2) and has slope .
Slope equals . The fact that the slope is , means that for every rise of –3 units (fall of 3 units) there is a run of 4. So if from the given point (1, 2) we go down 3 units and go right 4 units, we reach the point (5, –1). The following graph is obtained by connecting these two points.

Alternatively, since represents the same number, the line can be drawn by starting at the point (1,2) and choosing a rise of 3 units followed by a run of –4 units. So from the point (1, 2), we go up 3 units, and to the left 4, thus reaching the point (–3, 5) which is also on the same line. See figure below.

Example 9
Find the slope of the line .
In order to find the slope of this line, we will choose any two points on this line.
Again, the selection of x and y intercepts seems to be a good choice. The x-intercept is (3, 0), and the y-intercept is (0, 2). Therefore, the slope is
The graph below shows the line and the intercepts: and .

Example 10
Find the slope of the line .
We again find two points on the line. Say (0, 2) and (1, 5).
Therefore, the slope is .
Look at the slopes and the y-intercepts of the following lines.
| The line | Slope | y-intercept |
|---|---|---|
| 3 | 2 | |
| -2 | 5 | |
| 3/2 | -4 |
It is no coincidence that when an equation of the line is solved for , the coefficient of the term represents the slope, and the constant term represents the y-intercept.
In other words, for the line , is the slope, and is the y-intercept.
Example 11
Determine the slope and y-intercept of the line .
We solve for .
The
The .
Determining the Equation of a Line
Section Overview
In this section, you will learn to:
- Find an equation of a line if a point and the slope are given.
- Find an equation of a line if two points are given.
So far, we were given an equation of a line and were asked to give information about it. For example, we were asked to find points on it, find its slope and even find intercepts. Now we are going to reverse the process. That is, we will be given either two points, or a point and the slope of a line, and we will be asked to find its equation.
An equation of a line can be written in two forms, the slope-intercept form or the standard form.
The Slope-Intercept Form of a Line:
A line is completely determined by two points, or a point and slope. So it makes sense to ask to find the equation of a line if one of these two situations is given.
Example 12
Find an equation of a line whose slope is 5, and y-intercept is 3.
In the last section we learned that the equation of a line whose slope = m and y-intercept = b is .
Since , and , the equation is .
Example 13
Find the equation of the line that passes through the point (2, 7) and has slope 3.
Since , the partial equation is .
Now can be determined by substituting the point (2, 7) in the equation .
Therefore, the equation is .
Example 14
Find an equation of the line that passes through the points (–1, 2), and (1, 8).
So the partial equation is
Now we can use either of the two points (–1, 2) or (1, 8), to determine .
Substituting (–1, 2) gives
So the equation is
Example 15
Find an equation of the line that has x-intercept 3, and y-intercept 4.
x-intercept = 3, and y-intercept = 4 correspond to the points (3, 0), and (0, 4), respectively.
So the partial equation for the line is
Substituting (0, 4) gives
Therefore, the equation is .
The Standard form of a Line:
Another useful form of the equation of a line is the Standard form.
Let be a line with slope , and containing a point . If is any other point on the line , then by the definition of a slope, we get
The last result is referred to as the point-slope form or point-slope formula. If we simplify this formula, we get the equation of the line in the standard form, .
Example 16
Using the point-slope formula, find the standard form of an equation of the line that passes through the point (2, 3) and has slope –3/5.
Substituting the point (2, 3) and in the point-slope formula, we get
Multiplying both sides by 5 gives us
Example 17
Find the standard form of the line that passes through the points (1, -2), and (4, 0).
The point-slope form is
Multiplying both sides by 3 gives us
We should always be able to convert from one form of an equation to another. That is, if we are given a line in the slope-intercept form, we should be able to express it in the standard form, and vice versa.
Example 18
Write the equation in the standard form.
Multiplying both sides of the equation by 3, we get
Example 19
Write the equation in the slope-intercept form.
Solving for , we get
Finally, we learn a very quick and easy way to write an equation of a line in the standard form. But first we must learn to find the slope of a line in the standard form by inspection.
By solving for , it can easily be shown that the slope of the line is . The reader should verify.
Example 20
Find the slope of the following lines, by inspection.
- , , therefore,
- , , therefore,
Now that we know how to find the slope of a line in the standard form by inspection, our job in finding the equation of a line is going to be very easy.
Example 21
Find an equation of the line that passes through (2, 3) and has slope .
Since the slope of the line is , we know that the left side of the equation is , and the partial equation is going to be
Of course, can easily be found by substituting for and .
The desired equation is
If you use this method often enough, you can do these problems very quickly.
Applications
Now that we have learned to determine equations of lines, we get to apply these ideas in real-life equations.
Example 22
A taxi service charges $0.50 per mile plus a $5 flat fee. What will be the cost of traveling 20 miles? What will be cost of traveling miles?
In this problem, $0.50 per mile is referred to as the variable cost, and the flat charge $5 as the fixed cost. Now if we look at our cost equation , we can see that the variable cost corresponds to the slope and the fixed cost to the y-intercept.
Example 23
The variable cost to manufacture a product is $10 and the fixed cost $2500. If represents the number of items manufactured and the total cost, write the cost function.
The fact that the variable cost represents the slope and the fixed cost represents the y-intercept, makes and .
Therefore, the cost equation is .
Example 24
It costs $750 to manufacture 25 items, and $1000 to manufacture 50 items. Assuming a linear relationship holds, find the cost equation, and use this function to predict the cost of 100 items.
We let , and let .
Solving this problem is equivalent to finding an equation of a line that passes through the points (25, 750) and (50, 1000).
Therefore, the partial equation is
By substituting one of the points in the equation, we get
Therefore, the cost equation is
Now to find the cost of 100 items, we substitute in the equation
So the
Example 25
The freezing temperature of water in Celsius is 0 degrees and in Fahrenheit 32 degrees. And the boiling temperatures of water in Celsius, and Fahrenheit are 100 degrees, and 212 degrees, respectively. Write a conversion equation from Celsius to Fahrenheit and use this equation to convert 30 degrees Celsius into Fahrenheit.
Let us look at what is given.
| Centigrade | Fahrenheit |
|---|---|
| 0 | 32 |
| 100 | 212 |
Again, solving this problem is equivalent to finding an equation of a line that passes through the points (0, 32) and (100, 212).
Since we are finding a linear relationship, we are looking for an equation , or in this case , where or represent the temperature in Celsius, and or the temperature in Fahrenheit.
The equation is
Substituting the point (0, 32), we get
Now to convert 30 degrees Celsius into Fahrenheit, we substitute in the equation
Example 26
The population of Canada in the year 2000 was 30 million, and in 2016 it was 38 million. Assuming the population growth is linear, and x represents the year and y the population, write the function that gives a relationship between the time and the population. Use this equation to predict the population of Canada in 2040.
The problem can be made easier by using 2000 as the base year, that is, we choose the year 2000 as the year zero. This will mean that the year 2016 will correspond to year 16, and the year 2040 as the year 40.
Now we look at the information we have.
Solving this problem is equivalent to finding an equation of a line that passes through the points (0, 30) and (16, 38).
The equation is
Substituting the point (0, 30), we get
Now to find the population in the year 2040, we let in the equation
So the population of Canada in the year 2040 will be 50 million.
| Year | Population |
|---|---|
| 0 (2000) | 30 million |
| 16 (2016) | 38 million |
More Applications
Section Overview
In this section, you will learn to:
- Solve a linear system in two variables.
- Find the equilibrium point when a demand and a supply equation are given.
- Find the break-even point when the revenue and the cost functions are given.
In this section, we will do application problems that involve the intersection of lines. Therefore, before we proceed any further, we will first learn how to find the intersection of two lines.
Example 27
Find the intersection of the line and the line .
We graph both lines on the same axes, as shown below, and read the solution (2, 5).

Finding an intersection of two lines graphically is not always easy or practical; therefore, we will now learn to solve these problems algebraically.
At the point where two lines intersect, the x and y values for both lines are the same. So in order to find the intersection, we either let the x-values or the y-values equal.
If we were to solve the above example algebraically, it will be easier to let the y-values equal. Since for the first line, and for the second line, by letting the y-values equal, we get
By substituting in any of the two equations, we obtain .
Hence, the solution (2, 5).
One common algebraic method used in solving systems of equations is called the elimination method. The object of this method is to eliminate one of the two variables by adding the left and right sides of the equations together. Once one variable is eliminated, we get an equation that has only one variable for which it can be solved. Finally, by substituting the value of the variable that has been found in one of the original equations, we get the value of the other variable. The method is demonstrated in the example below.
Example 28
Find the intersection of the lines and by the elimination method.
We add the left and right sides of the two equations.
Now we substitute in any of the two equations and solve for .
Therefore, the solution is (2, 3).
Example 29
Solve the system of equations and by the elimination method.
If we add the two equations, none of the variables are eliminated. But the variable can be eliminated by multiplying the first equation by –2, and leaving the second equation unchanged.
Substituting in , we get
Therefore, the solution is (–1, 2).
Example 30
Solve the system of equations and .
This time, we multiply the first equation by – 4 and the second by 3 before adding. (The choice of numbers is not unique.)
By substituting in any one of the equations, we get . Hence the solution (–1, –2).
Supply, Demand and the Equilibrium Market Price In a free market economy the supply curve for a commodity is the number of items of a product that can be made available at different prices, and the demand curve is the number of items the consumer will buy at different prices. As the price of a product increases, its demand decreases and supply increases. On the other hand, as the price decreases the demand increases and supply decreases. The equilibrium price is reached when the demand equals the supply.
Example 31
The supply curve for a product is and the demand curve for the same product is , where is the price and y the number of items produced. Find the following.
- How many items will be supplied at a price of $10?
- How many items will be demanded at a price of $10?
- Determine the equilibrium price.
- How many items will be produced at the equilibrium price?
- We substitute in the supply equation, , and the answer is .
- We substitute in the demand equation, , and the answer is .
By letting the supply equal the demand, we get
We substitute in either the supply or the demand equation and we get .
The graph below shows the intersection of the supply and the demand functions and their point of intersection, (6, 19).

Figure 1.12
Break-Even Point In a business, the profit is generated by selling products. If a company sells
number of items at a price
, then the revenue
is
times
, i.e.,
. The production costs are the sum of the variable costs and the fixed costs, and are often written as
, where
is the number of items manufactured.
A company makes a profit if the revenue is greater than the cost, and it shows a loss if the cost is greater than the revenue. The point on the graph where the revenue equals the cost is called the Break-even point.
Example 32
If the revenue function of a product is and the cost function is , find the following.
- If 4 items are produced, what will the revenue be?
- What is the cost of producing 4 items?
- How many items should be produced to break-even?
- What will be the revenue and the cost at the break-even point?
- We substitute in the revenue equation , and the answer is .
- We substitute in the cost equation , and the answer is .
By letting the revenue equal the cost, we get
We substitute in either the revenue or the cost equation, and we get .
The graph below shows the intersection of the revenue and the cost functions and their point of intersection, (6, 30).

Figure 1.13
Adapted from Applied Finite Mathematics by Rupinder Sekhon (De Anza College), originally published by OpenStax CNX (cnx.org, collection col10613), licensed under CC BY 3.0. Changes were made. License: CC-BY-3.0.