Systems of Linear Equations: Two Variables
June 23, 2024 | by Bloom Code Studio
Learning Objectives
In this section, you will:
- Solve systems of equations by graphing.
- Solve systems of equations by substitution.
- Solve systems of equations by addition.
- Identify inconsistent systems of equations containing two variables.
- Express the solution of a system of dependent equations containing two variables.
Figure 1 (credit: Thomas SΓΈrenes)
A skateboard manufacturer introduces a new line of boards. The manufacturer tracks its costs, which is the amount it spends to produce the boards, and its revenue, which is the amount it earns through sales of its boards. How can the company determine if it is making a profit with its new line? How many skateboards must be produced and sold before a profit is possible? In this section, we will consider linear equations with two variables to answer these and similar questions.
Introduction to Systems of Equations
In order to investigate situations such as that of the skateboard manufacturer, we need to recognize that we are dealing with more than one variable and likely more than one equation. A system of linear equations consists of two or more linear equations made up of two or more variables such that all equations in the system are considered simultaneously. To find the unique solution to a system of linear equations, we must find a numerical value for each variable in the system that will satisfy all equations in the system at the same time. Some linear systems may not have a solution and others may have an infinite number of solutions. In order for a linear system to have a unique solution, there must be at least as many equations as there are variables. Even so, this does not guarantee a unique solution.
In this section, we will look at systems of linear equations in two variables, which consist of two equations that contain two different variables. For example, consider the following system of linear equations in two variables.
2x+y=153xβy=52π₯+π¦=153π₯βπ¦=5
The solution to a system of linear equations in two variables is any ordered pair that satisfies each equation independently. In this example, the ordered pair (4, 7) is the solution to the system of linear equations. We can verify the solution by substituting the values into each equation to see if the ordered pair satisfies both equations. Shortly we will investigate methods of finding such a solution if it exists.
2(4)+(7)=15True3(4)β(7)=5True2(4)+(7)=15True3(4)β(7)=5True
In addition to considering the number of equations and variables, we can categorize systems of linear equations by the number of solutions. A consistent system of equations has at least one solution. A consistent system is considered to be an independent system if it has a single solution, such as the example we just explored. The two lines have different slopes and intersect at one point in the plane. A consistent system is considered to be a dependent system if the equations have the same slope and the same y-intercepts. In other words, the lines coincide so the equations represent the same line. Every point on the line represents a coordinate pair that satisfies the system. Thus, there are an infinite number of solutions.
Another type of system of linear equations is an inconsistent system, which is one in which the equations represent two parallel lines. The lines have the same slope and different y-intercepts. There are no points common to both lines; hence, there is no solution to the system.
TYPES OF LINEAR SYSTEMS
There are three types of systems of linear equations in two variables, and three types of solutions.
- AnΒ independent systemΒ has exactly one solution pairΒ (x,y).(π₯,π¦).Β The point where the two lines intersect is the only solution.
- AnΒ inconsistent systemΒ has no solution. Notice that the two lines are parallel and will never intersect.
- AΒ dependent systemΒ has infinitely many solutions. The lines are coincident. They are the same line, so every coordinate pair on the line is a solution to both equations.
HOW TO
Given a system of linear equations and an ordered pair, determine whether the ordered pair is a solution.
- Substitute the ordered pair into each equation in the system.
- Determine whether true statements result from the substitution in both equations; if so, the ordered pair is a solution.
EXAMPLE 1
Determining Whether an Ordered Pair Is a Solution to a System of Equations
Determine whether the ordered pair (5,1)(5,1) is a solution to the given system of equations.
x+3y=82xβ9=yπ₯+3π¦=82π₯β9=π¦
Solution
Substitute the ordered pair (5,1)(5,1) into both equations.
(5)+3(1)=88=82(5)β9=(1)1=1TrueTrue(5)+3(1)=88=8True2(5)β9=(1)1=1True
The ordered pair (5,1)(5,1) satisfies both equations, so it is the solution to the system.
Analysis
We can see the solution clearly by plotting the graph of each equation. Since the solution is an ordered pair that satisfies both equations, it is a point on both of the lines and thus the point of intersection of the two lines. SeeΒ Figure 3.
Figure 3
TRY IT #1
Determine whether the ordered pair (8,5)(8,5) is a solution to the following system.
5xβ4y=202x+1=3y5π₯β4π¦=202π₯+1=3π¦
Solving Systems of Equations by Graphing
There are multiple methods of solving systems of linear equations. For a system of linear equations in two variables, we can determine both the type of system and the solution by graphing the system of equations on the same set of axes.
EXAMPLE 2
Solving a System of Equations in Two Variables by Graphing
Solve the following system of equations by graphing. Identify the type of system.
2x+y=β8xβy=β12π₯+π¦=β8π₯βπ¦=β1
Solution
Solve the first equation for y.π¦.
2x+y=β8y=β2xβ82π₯+π¦=β8π¦=β2π₯β8
Solve the second equation for y.π¦.
xβy=β1y=x+1π₯βπ¦=β1π¦=π₯+1
Graph both equations on the same set of axes as inΒ Figure 4.
Figure 4
The lines appear to intersect at the point (β3,β2).(β3,β2). We can check to make sure that this is the solution to the system by substituting the ordered pair into both equations.
2(β3)+(β2)=β8β8=β8(β3)β(β2)=β1β1=β1TrueTrue2(β3)+(β2)=β8β8=β8True(β3)β(β2)=β1β1=β1True
The solution to the system is the ordered pair (β3,β2),(β3,β2), so the system is independent.
TRY IT #2
Solve the following system of equations by graphing.
2xβ5y=β25β4x+5y=352π₯β5π¦=β25β4π₯+5π¦=35
Q&A
Can graphing be used if the system is inconsistent or dependent?
Yes, in both cases we can still graph the system to determine the type of system and solution. If the two lines are parallel, the system has no solution and is inconsistent. If the two lines are identical, the system has infinite solutions and is a dependent system.
Solving Systems of Equations by Substitution
Solving a linear system in two variables by graphing works well when the solution consists of integer values, but if our solution contains decimals or fractions, it is not the most precise method. We will consider two more methods of solving a system of linear equations that are more precise than graphing. One such method is solving a system of equations by the substitution method, in which we solve one of the equations for one variable and then substitute the result into the second equation to solve for the second variable. Recall that we can solve for only one variable at a time, which is the reason the substitution method is both valuable and practical.
HOW TO
Given a system of two equations in two variables, solve using the substitution method.
- Solve one of the two equations for one of the variables in terms of the other.
- Substitute the expression for this variable into the second equation, then solve for the remaining variable.
- Substitute that solution into either of the original equations to find the value of the first variable. If possible, write the solution as an ordered pair.
- Check the solution in both equations.
EXAMPLE 3
Solving a System of Equations in Two Variables by Substitution
Solve the following system of equations by substitution.
βx+y=β52xβ5y=1βπ₯+π¦=β52π₯β5π¦=1
Solution
First, we will solve the first equation for y.π¦.
βx+y=β5y=xβ5βπ₯+π¦=β5π¦=π₯β5
Now we can substitute the expression xβ5π₯β5 for yπ¦ in the second equation.
2xβ5y=12xβ5(xβ5)=12xβ5x+25=1β3x=β24x=82π₯β5π¦=12π₯β5(π₯β5)=12π₯β5π₯+25=1β3π₯=β24π₯=8
Now, we substitute x=8π₯=8 into the first equation and solve for y.π¦.
β(8)+y=β5y=3β(8)+π¦=β5π¦=3
Our solution is (8,3).(8,3).
Check the solution by substituting (8,3)(8,3) into both equations.
βx+y=β5β(8)+(3)=β52xβ5y=12(8)β5(3)=1TrueTrueβπ₯+π¦=β5β(8)+(3)=β5True2π₯β5π¦=12(8)β5(3)=1True
TRY IT #3
Solve the following system of equations by substitution.
x=y+34=3xβ2yπ₯=π¦+34=3π₯β2π¦
Q&A
Can the substitution method be used to solve any linear system in two variables?
Yes, but the method works best if one of the equations contains a coefficient of 1 or β1 so that we do not have to deal with fractions.
Solving Systems of Equations in Two Variables by the Addition Method
A third method of solving systems of linear equations is the addition method. In this method, we add two terms with the same variable, but opposite coefficients, so that the sum is zero. Of course, not all systems are set up with the two terms of one variable having opposite coefficients. Often we must adjust one or both of the equations by multiplication so that one variable will be eliminated by addition.
HOW TO
Given a system of equations, solve using the addition method.
- Write both equations withΒ x– andΒ y-variables on the left side of the equal sign and constants on the right.
- Write one equation above the other, lining up corresponding variables. If one of the variables in the top equation has the opposite coefficient of the same variable in the bottom equation, add the equations together, eliminating one variable. If not, use multiplication by a nonzero number so that one of the variables in the top equation has the opposite coefficient of the same variable in the bottom equation, then add the equations to eliminate the variable.
- Solve the resulting equation for the remaining variable.
- Substitute that value into one of the original equations and solve for the second variable.
- Check the solution by substituting the values into the other equation.
EXAMPLE 4
Solving a System by the Addition Method
Solve the given system of equations by addition.
x+2y=β1βx+y=3π₯+2π¦=β1βπ₯+π¦=3
Solution
Both equations are already set equal to a constant. Notice that the coefficient of xπ₯ in the second equation, β1, is the opposite of the coefficient of xπ₯ in the first equation, 1. We can add the two equations to eliminate xπ₯ without needing to multiply by a constant.
x+2y=β1βx+y=33y=2π₯+2π¦=β1βπ₯+π¦=33π¦=2
Now that we have eliminated x,π₯, we can solve the resulting equation for y.π¦.
3y=2y=233π¦=2π¦=23
Then, we substitute this value for yπ¦ into one of the original equations and solve for x.π₯.
βx+y=3βx+23=3βx=3β23βx=73x=β73βπ₯+π¦=3βπ₯+23=3βπ₯=3β23βπ₯=73π₯=β73
The solution to this system is (β73,23).(β73,23).
Check the solution in the first equation.
x+2y=β1(β73)+2(23)=β73+43=β33=β1=β1Trueπ₯+2π¦=β1(β73)+2(23)=β73+43=β33=β1=β1True
Analysis
We gain an important perspective on systems of equations by looking at the graphical representation. SeeΒ Figure 5Β to find that the equations intersect at the solution. We do not need to ask whether there may be a second solution because observing the graph confirms that the system has exactly one solution.
Figure 5
EXAMPLE 5
Using the Addition Method When Multiplication of One Equation Is Required
Solve the given system of equations by the addition method.
3x+5y=β11xβ2y=113π₯+5π¦=β11π₯β2π¦=11
Solution
Adding these equations as presented will not eliminate a variable. However, we see that the first equation has 3×3π₯ in it and the second equation has x.π₯. So if we multiply the second equation by β3,β3, the x-terms will add to zero.
xβ2y=11β3(xβ2y)=β3(11)β3x+6y=β33Multiply both sides by β3.Use the distributive property.π₯β2π¦=11β3(π₯β2π¦)=β3(11)Multiply both sides by β3.β3π₯+6π¦=β33Use the distributive property.
Now, letβs add them.
3x+5y=β11β3x+6y=β33_______________ 11y=β44 y=β4 3π₯+5π¦=β11β3π₯+6π¦=β33_______________ 11π¦=β44 π¦=β4
For the last step, we substitute y=β4π¦=β4 into one of the original equations and solve for x.π₯.
3x+5y=β113x+5(β4)=β113xβ20=β113x=9x=33π₯+5π¦=β113π₯+5(β4)=β113π₯β20=β113π₯=9π₯=3
Our solution is the ordered pairΒ (3,β4).(3,β4).Β SeeΒ Figure 6. Check the solution in the original second equation.
xβ2y=11(3)β2(β4)=3+811=11Trueπ₯β2π¦=11(3)β2(β4)=3+811=11True
Figure 6
TRY IT #4
Solve the system of equations by addition.
2xβ7y=23x+y=β202π₯β7π¦=23π₯+π¦=β20
EXAMPLE 6
Using the Addition Method When Multiplication of Both Equations Is Required
Solve the given system of equations in two variables by addition.
2x+3y=β165xβ10y=302π₯+3π¦=β165π₯β10π¦=30
Solution
One equation has 2×2π₯ and the other has 5x.5π₯. The least common multiple is 10×10π₯ so we will have to multiply both equations by a constant in order to eliminate one variable. Letβs eliminate xπ₯ by multiplying the first equation by β5β5 and the second equation by 2.2.
β5(2x+3y)=β5(β16) β10xβ15y=80 2(5xβ10y)=2(30) 10xβ20y=60 β5(2π₯+3π¦)=β5(β16) β10π₯β15π¦=80 2(5π₯β10π¦)=2(30) 10π₯β20π¦=60
Then, we add the two equations together.
β10xβ15y=80 10xβ20y=60________________β35y=140y=β4β10π₯β15π¦=80 10π₯β20π¦=60________________β35π¦=140π¦=β4
Substitute y=β4π¦=β4 into the original first equation.
2x+3(β4)=β162xβ12=β162x=β4x=β22π₯+3(β4)=β162π₯β12=β162π₯=β4π₯=β2
The solution is (β2,β4).(β2,β4). Check it in the other equation.
5xβ10y=305(β2)β10(β4)=30 β10+40=30 30=30 5π₯β10π¦=305(β2)β10(β4)=30 β10+40=30 30=30
SeeΒ Figure 7.
Figure 7
EXAMPLE 7
Using the Addition Method in Systems of Equations Containing Fractions
Solve the given system of equations in two variables by addition.
x3+y6=3×2βy4=β1π₯3+π¦6=3π₯2βπ¦4=β1
Solution
First clear each equation of fractions by multiplying both sides of the equation by the least common denominator.
6(x3+y6)=6(3) 2x+y=184(x2βy4)=4(1) 2xβy=46(π₯3+π¦6)=6(3) 2π₯+π¦=184(π₯2βπ¦4)=4(1) 2π₯βπ¦=4
Now multiply the second equation by β1β1 so that we can eliminate the x-variable.
β1(2xβy)=β1(4) β2x+y=β4β1(2π₯βπ¦)=β1(4) β2π₯+π¦=β4
Add the two equations to eliminate the x-variable and solve the resulting equation.
2x+y=18β2x+y=β4_____________2y=14y=72π₯+π¦=18β2π₯+π¦=β4_____________2π¦=14π¦=7
Substitute y=7π¦=7 into the first equation.
2x+(7)=18 2x=11 x=112 =5.52π₯+(7)=18 2π₯=11 π₯=112 =5.5
The solution is (112,7).(112,7). Check it in the other equation.
x2βy4=11122β74=1114β74=144=1π₯2βπ¦4=11122β74=1114β74=144=1
TRY IT #5
Solve the system of equations by addition.
2x+3y3x+5y==8102π₯+3π¦=83π₯+5π¦=10
Identifying Inconsistent Systems of Equations Containing Two Variables
Now that we have several methods for solving systems of equations, we can use the methods to identify inconsistent systems. Recall that an inconsistent system consists of parallel lines that have the same slope but different yπ¦ -intercepts. They will never intersect. When searching for a solution to an inconsistent system, we will come up with a false statement, such as 12=0.12=0.
EXAMPLE 8
Solving an Inconsistent System of Equations
Solve the following system of equations.
x=9β2yx+2y=13π₯=9β2π¦π₯+2π¦=13
Solution
We can approach this problem in two ways. Because one equation is already solved for x,π₯, the most obvious step is to use substitution.
x+2y=13(9β2y)+2y=139+0y=139=13π₯+2π¦=13(9β2π¦)+2π¦=139+0π¦=139=13
Clearly, this statement is a contradiction because 9β 13.9β 13. Therefore, the system has no solution.
The second approach would be to first manipulate the equations so that they are both in slope-intercept form. We manipulate the first equation as follows.
x=9β2y2y=βx+9y=β12x+92π₯=9β2π¦2π¦=βπ₯+9π¦=β12π₯+92
We then convert the second equation expressed to slope-intercept form.
x+2y=132y=βx+13y=β12x+132π₯+2π¦=132π¦=βπ₯+13π¦=β12π₯+132
Comparing the equations, we see that they have the same slope but different y-intercepts. Therefore, the lines are parallel and do not intersect.
y=β12x+92y=β12x+132π¦=β12π₯+92π¦=β12π₯+132
Analysis
Writing the equations in slope-intercept form confirms that the system is inconsistent because all lines will intersect eventually unless they are parallel. Parallel lines will never intersect; thus, the two lines have no points in common. The graphs of the equations in this example are shown inΒ Figure 8.
Figure 8
TRY IT #6
Solve the following system of equations in two variables.
2yβ2x=22yβ2x=62π¦β2π₯=22π¦β2π₯=6
Expressing the Solution of a System of Dependent Equations Containing Two Variables
Recall that a dependent system of equations in two variables is a system in which the two equations represent the same line. Dependent systems have an infinite number of solutions because all of the points on one line are also on the other line. After using substitution or addition, the resulting equation will be an identity, such as 0=0.0=0.
EXAMPLE 9
Finding a Solution to a Dependent System of Linear Equations
Find a solution to the system of equations using the addition method.
x+3y=23x+9y=6π₯+3π¦=23π₯+9π¦=6
Solution
With the addition method, we want to eliminate one of the variables by adding the equations. In this case, letβs focus on eliminating x.π₯. If we multiply both sides of the first equation by β3,β3, then we will be able to eliminate the xπ₯ -variable.
x+3y=2 (β3)(x+3y)=(β3)(2)β3xβ9y=β6π₯+3π¦=2 (β3)(π₯+3π¦)=(β3)(2)β3π₯β9π¦=β6
Now add the equations.
β3xβ9y+3x+9y=β6=6______________0=0β3π₯β9π¦=β6+3π₯+9π¦=6______________0=0
We can see that there will be an infinite number of solutions that satisfy both equations.
Analysis
If we rewrote both equations in the slope-intercept form, we might know what the solution would look like before adding. Letβs look at what happens when we convert the system to slope-intercept form.
x+3y=2 3y=βx+2 y=β13x+233x+9y=6 9y=β3x+6 y=β39x+69 y=β13x+23 π₯+3π¦=2 3π¦=βπ₯+2 π¦=β13π₯+233π₯+9π¦=6 9π¦=β3π₯+6 π¦=β39π₯+69 π¦=β13π₯+23
See Figure 9. Notice the results are the same. The general solution to the system is (x, β13x+23).(π₯, β13π₯+23).
Figure 9
TRY IT #7
Solve the following system of equations in two variables.
yβ2x=5β3y+6x=β15 π¦β2π₯=5β3π¦+6π₯=β15
Using Systems of Equations to Investigate Profits
Using what we have learned about systems of equations, we can return to the skateboard manufacturing problem at the beginning of the section. The skateboard manufacturerβsΒ revenue functionΒ is the function used to calculate the amount of money that comes into the business. It can be represented by the equationΒ R=xp,π =π₯π,Β whereΒ x=π₯=Β quantity andΒ p=π=Β price. The revenue function is shown in orange inΒ Figure 10.
TheΒ cost functionΒ is the function used to calculate the costs of doing business. It includes fixed costs, such as rent and salaries, and variable costs, such as utilities. The cost function is shown in blue inΒ Figure 10. TheΒ xπ₯Β -axis represents quantity in hundreds of units. TheΒ y-axis represents either cost or revenue in hundreds of dollars.
Figure 10
The point at which the two lines intersect is called the break-even point. We can see from the graph that if 700 units are produced, the cost is $3,300 and the revenue is also $3,300. In other words, the company breaks even if they produce and sell 700 units. They neither make money nor lose money.
The shaded region to the right of the break-even point represents quantities for which the company makes a profit. The shaded region to the left represents quantities for which the company suffers a loss. The profit function is the revenue function minus the cost function, written as P(x)=R(x)βC(x).π(π₯)=π (π₯)βπΆ(π₯). Clearly, knowing the quantity for which the cost equals the revenue is of great importance to businesses.
EXAMPLE 10
Finding the Break-Even Point and the Profit Function Using Substitution
Given the cost function C(x)=0.85x+35,000πΆ(π₯)=0.85π₯+35,000 and the revenue function R(x)=1.55x,π (π₯)=1.55π₯, find the break-even point and the profit function.
Solution
Write the system of equations using yπ¦ to replace function notation.
y=0.85x+35,000y=1.55xπ¦=0.85π₯+35,000π¦=1.55π₯
Substitute the expression 0.85x+35,0000.85π₯+35,000 from the first equation into the second equation and solve for x.π₯.
0.85x+35,000=1.55×35,000=0.7×50,000=x0.85π₯+35,000=1.55π₯35,000=0.7π₯50,000=π₯
Then, we substitute x=50,000π₯=50,000 into either the cost function or the revenue function.
1.55(50,000)=77,5001.55(50,000)=77,500
The break-even point is (50,000,77,500).(50,000,77,500).
The profit function is found using the formula P(x)=R(x)βC(x).π(π₯)=π (π₯)βπΆ(π₯).
P(x)=1.55xβ(0.85x+35,000) =0.7xβ35,000π(π₯)=1.55π₯β(0.85π₯+35,000) =0.7π₯β35,000
The profit function is P(x)=0.7xβ35,000.π(π₯)=0.7π₯β35,000.
Analysis
The cost to produce 50,000 units is $77,500, and the revenue from the sales of 50,000 units is also $77,500. To make a profit, the business must produce and sell more than 50,000 units. SeeΒ Figure 11.
Figure 11
We see from the graph inΒ Figure 12Β that the profit function has a negative value untilΒ x=50,000,π₯=50,000,Β when the graph crosses theΒ x-axis. Then, the graph emerges into positiveΒ y-values and continues on this path as the profit function is a straight line. This illustrates that the break-even point for businesses occurs when the profit function is 0. The area to the left of the break-even point represents operating at a loss.
Figure 12
EXAMPLE 11
Writing and Solving a System of Equations in Two Variables
The cost of a ticket to the circus isΒ $25.00$25.00Β for children andΒ $50.00$50.00Β for adults. On a certain day, attendance at the circus isΒ 2,0002,000Β and the total gate revenue isΒ $70,000.$70,000.Β How many children and how many adults bought tickets?
TRY IT #8
Meal tickets at the circus cost $4.00$4.00 for children and $12.00$12.00 for adults. If 1,6501,650 meal tickets were bought for a total of $14,200,$14,200, how many children and how many adults bought meal tickets?
RELATED POSTS
View all