16.1: Systems of Linear Equations - Two Variables

Math 375: Pre-Calculus · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    16.1: Systems of Linear Equations - Two Variables
    Section Preview
    Note to the Instructor (click to expand)
    This entire section should be review for the students.

    Core Prerequisites (i.e., "Understanding the Lesson"): The following prerequisite topics (which have not already been listed as prerequisites in previous sections of this text) are required to understand the core concepts in this lesson.

    (click to expand)

    Operational Prerequisites (i.e., "Completing the Homework"): The following prerequisite topics (which have not already been listed as prerequisites in previous sections of this text) are needed to complete the homework.

    (click to expand)

    The following is a list of learning objectives for this section.

    Learning Objectives (click to expand)
    • Solve systems of equations by graphing.
    • Solve systems of equations by Substitution.
    • Solve systems of equations by Elimination.
    • Identify inconsistent systems of equations containing two variables.
    • Express the solution of a system of dependent equations containing two variables.
    8db994f0a4e152291196aae3d38d23143c6fdf0b
    Figure \(\PageIndex{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. This is where systems of equations come into play.

    Definition: System of Equations

    A system of equations , sometimes simply called a system, consists of two or more equations made up of two or more variables such that all equations in the system are considered simultaneously.

    It would not be an overstatement to say that systems of equations are one of the most important mathematical structures in modern society. From cell phone operation to web search to generative artificial intelligence, the ability to work with and solve systems of equations is a fundamental necessity in technology.

    The simplest of systems involves only linear equations.

    Definition: System of Linear Equations

    A system of linear equations (or linear system) consists of two or more linear equations involving the same variables such that all equations in the linear system are considered simultaneously.

    For the remainder of this section (and the next), we will focus on systems of linear equations.

    Since a system involves two or more variables, we can think of the values of the variables as dials on a safe. We are looking for the very special combination of those dials that makes all equations within the system true simultaneously.

    Definition: Solution and Solution Set of a System

    A combination of values for the variables that causes each equation in a system to simultaneously become true is called a solution to the system. The solution set is the set of all solutions of the system.

    For example, we might have a system of three equations, each containing the variables \(x\), \(y\), and \(z\). If the combination \(x = 0\), \(y = -1\), and \(z = \frac{1}{2}\) makes all three equations in the system true, we say that the solution to the system is \(x = 0\), \(y = -1\), and \(z = \frac{1}{2}\); however, we have a much more succinct way of writing a solution to a system.

    Definition: n-tuple

    An \( n \)-tuple is an ordered collection of \( n \) elements of the form\[ \left( x_1, x_2, x_3 \ldots , x_n \right), \nonumber \]where \( n \) is a non-negative integer. It's a generalization of ordered pairs (\( n=2 \)), triples (\( n=3 \)), etc.

    Therefore, in our case mentioned above, we could say the solution to the system is \(\left(0,-1,\frac{1}{2}\right)\) (where we assume the entries in the \(n\)-tuple are written in alphabetical order).

    Caution: Ambiguous Notation

    When dealing with ordered pairs, an ambiguity appears in our notation. For example, without context, \( \left( 1,5 \right) \) could mean the ordered pair (the point on the plane) where \( x = 1 \) and \( y = 5 \), or it could mean the interval \( 1 < x < 5 \).

    You need to use the context of the given situation to determine which interpretation should be used.

    As we shall see shortly, 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.

    Definition: Systems of Two Linear Equations in Two Variables

    A system of two linear equations in two variables \(x\) and \(y\) is a pair of equations that can be written in the standard form\[\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases}\nonumber\]where \(a_1, b_1, c_1, a_2, b_2, c_2\) are real constants, and in each equation the coefficients of \(x\) and \(y\) are not both zero.

    For example, consider the following system of linear equations in two variables.\[\begin{cases} 2x & + & y & = & 15 \\ 3x & - & y & = & 5 \\ \end{cases}\nonumber\]The ordered pair \((4,7)\) is the solution to this system (for now, don't worry how we arrived at that). We can verify the solution by substituting the values into each equation to see if the ordered pair satisfies both equations. We will investigate methods of finding such a solution, if it exists.\[\begin{cases} 2(4) & + & (7) & = & 15 & \text{True} \\ 3(4) & - & (7) & = & 5 & \text{True} \\ \end{cases}\nonumber\]In addition to considering the number of equations and variables, we can categorize systems (not just linear systems, but systems in general) by the number of solutions.

    Systems can be defined in terms of whether or not they have solutions, and they can be further categorized based upon the number of solutions (finite or infinite).

    Definition: Types of Systems

    A system having one or more solutions is called a consistent system. A system having no solutions is called an inconsistent system.

    Consistent systems are further categorized into independent systems, which are consistent systems with a finite number of solutions, and dependent systems, which are consistent systems with an infinite number of solutions.

    Table \(\PageIndex{1}\) summarizes these possibilities.

    Table \(\PageIndex{1}\): Types of Systems
    Consistent Systems Inconsistent Systems
    Independent Systems Dependent Systems
    Finite Solutions Infinite Solutions No Solutions

    Consider a system of linear equations involving two equations with two unknowns. Recall that the graph of an equation is a visual representation of the solution set for that specific equation. Thus, when we graph a system of two linear equations, we are seeing the solution sets to each component equation separately, and we are trying to find out if these solution sets ever overlap. Figure \(\PageIndex{2}\) shows us the possibilities when considering a system of two linear equations.

    c8f7a36661238892c1cd1c28de3630abf4c2cce3
    Figure \(\PageIndex{2}\)

    The independent and dependent systems are consistent because they have at least one solution. For the independent system, the two lines have different slopes and intersect at one point in the plane. For the dependent system, 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. Finally, the inconsistent system is one in which the equations represent two different 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.

    This should convince us of the following theorem.

    Theorem: Classification of Two Linear Equations in Two Variables

    Given a system of two linear equations in two variables, each equation graphs as a line, and exactly one of the following holds.

    1. The two lines intersect at exactly one point. The system has exactly one solution and is consistent and independent.
    2. The two lines are parallel and distinct. The system has no solution and is inconsistent.
    3. The two lines coincide. The system has infinitely many solutions and is consistent and dependent.
    Example \(\PageIndex{1}\): Determining Whether an Ordered Pair Is a Solution to a System of Equations

    Determine whether the ordered pair \((5,1)\) is a solution to the given system of equations.\[\begin{cases} x & + & 3y & = & 8 \\ 2x & - & 9 & = & y \\ \end{cases}\nonumber\]

    Solution

    Substitute the ordered pair \((5,1)\) into both equations.\[\begin{array}{rrclcl} & (5) + 3(1) & = & 8 & & \\[6pt] \implies & 8 & = & 8 & \quad & \text{True} \\[6pt] & 2(5) - 9 & = & (1) & & \\[6pt] \implies & 1 & = & 1 & \quad & \text{True} \\[6pt] \end{array}\nonumber\]The ordered pair \((5,1)\) satisfies both equations, so it is the solution to the system.

    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 \(\PageIndex{3}\).

    d9a78f2f6d2b5bbf0023d28201280e9313521f53
    Figure \(\PageIndex{3}\)
    Checkpoint \(\PageIndex{1}\)

    Determine whether the ordered pair \((8,5)\) is a solution to the following system.\[\begin{cases} 5x & - & 4y & = & 20 \\ 2x & + & 1 & = & 3y \\ \end{cases}\nonumber\]

    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 \(\PageIndex{2}\): Solving a System of Equations in Two Variables by Graphing

    Solve the following system of equations by graphing. Identify the type of system.\[\begin{cases} 2x & + & y & = & -8 \\ x & - & y & = & -1 \\ \end{cases}\nonumber\]

    Solution

    Solve the first equation for \(y\).\[\begin{array}{rrcl} & 2x + y & = & -8 \\[6pt] \implies & y & = & -2x - 8 \\[6pt] \end{array}\nonumber\]Solve the second equation for \(y\).\[\begin{array}{rrcl} & x - y & = & -1 \\[6pt] \implies & y & = & x + 1 \\[6pt] \end{array}\nonumber\]Graph both equations on the same set of axes as in Figure \(\PageIndex{4}\).

    e9b2076b26ff6ebb2663fd757743945b3c1fe515
    Figure \(\PageIndex{4}\)

    The lines appear to intersect at the point \((-3,-2)\). We can check to make sure that this is the solution to the system by substituting the ordered pair into both equations.\[\begin{array}{rrclcl} & 2(-3) + (-2) & = & -8 & & \\[6pt] \implies & -8 & = & -8 & \quad & \text{True} \\[6pt] & (-3) - (-2) & = & -1 & & \\[6pt] \implies & -1 & = & -1 & \quad & \text{True} \\[6pt] \end{array}\nonumber\]The solution to the system is the ordered pair \((-3,-2)\), so the system is independent.

    Checkpoint \(\PageIndex{2}\)

    Solve the following system of equations by graphing.\[\begin{cases} 2x & - & 5y & = & -25 \\ -4x & + & 5y & = & 35 \\ \end{cases}\nonumber\]

    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.

    Definition: The Substitution Method (for solving a system of equations)

    The Substitution Method is a heuristic process in which we solve one equation in a system for one variable and then substitute that result into another equation in the system. This process is then repeated until the value of a single variable can be determined (thereby, through a series of previous relations, revealing the values of the remaining variables in the system).

    The word "heuristic" used within this definition is purposeful. A process is heuristic if it requires the user to investigate using trial and error. In this regard, solving systems using the Substitution Method is not ideal—especially for larger systems (systems involving more than two equations and two variables). However, we can learn much from the Substitution Method, and its use cannot be avoided.

    How To... Solve a 2x2 System Using Substitution
    1. Solve one of the equations for one of its variables. Choose the variable that is easiest to isolate—typically one whose coefficient is \(1\) or \(-1\).
    2. Substitute the resulting expression into the other equation. This produces a single equation in one variable.
    3. Solve that equation. If it reduces to a false statement (a contradiction), the system has no solution. If it reduces to a true statement (an identity), the system has infinitely many solutions.
    4. Back-substitute the value found into either original equation, or into the isolated expression from Step 1, to find the remaining variable.
    5. Write the solution as an ordered pair \((x,y)\) and verify it in both original equations.

    Before we continue, I should clarify what I mean by "2x2." A system of \(m\) equations involving \(n\) unknowns is called an \(m \times n\) system. Therefore, a system of 2 equations with 2 unknowns is also called a \(2 \times 2\) system.

    Example \(\PageIndex{3}\): Solving a System of Equations in Two Variables by Substitution

    Solve the following system of equations by substitution.\[\begin{cases} -x & + & y & = & -5 \\ 2x & - & 5y & = & 1 \\ \end{cases}\nonumber\]

    Solution

    We solve the first equation for \(y\).\[\begin{array}{rrcl} & -x + y & = & -5 \\[6pt] \implies & y & = & x - 5 \\[6pt] \end{array}\nonumber\]Now we can substitute the expression \(x-5\) for \(y\) in the second equation.\[\begin{array}{rrclcl} & 2x - 5y & = & 1 & & \\[6pt] \implies & 2x - 5(x - 5) & = & 1 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & 2x - 5x + 25 & = & 1 & \quad & \left( \text{distributing} \right) \\[6pt] \implies & -3x + 25 & = & 1 & \quad & \left( \text{combining like terms} \right) \\[6pt] \implies & -3x & = & -24 & \quad & \left( \text{subtracting }25\text{ from both sides} \right) \\[6pt] \implies & x & = & 8 & \quad & \left( \text{dividing both sides by }-3 \right) \\[6pt] \end{array}\nonumber\]Now, we substitute \(x=8\) into the first equation and solve for \(y\).\[\begin{array}{rrclcl} & -x + y & = & -5 & & \\[6pt] \implies & -(8) + y & = & -5 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & y & = & 3 & \quad & \left( \text{adding }8\text{ to both sides} \right) \\[6pt] \end{array}\nonumber\]Our solution is \((8,3)\).

    Check the solution by substituting \((8,3)\) into both equations.\[\begin{array}{rrclcl} & -x + y & = & -5 & & \\[6pt] \implies & -(8) + (3) & = & -5 & \quad & \text{True} \\[6pt] & 2x - 5y & = & 1 & & \\[6pt] \implies & 2(8) - 5(3) & = & 1 & \quad & \text{True} \\[6pt] \end{array}\nonumber\]

    Checkpoint \(\PageIndex{3}\)

    Solve the following system of equations by substitution.\[\begin{cases} x & = & y & + & 3 \\ 4 & = & 3x & - & 2y \\ \end{cases}\nonumber\]

    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 Elimination Method

    A third method of solving systems of linear equations is the Elimination Method. Before introducing this method, we need to define what it means for two systems to be equivalent.

    Definition: Equivalent Systems

    Two systems of linear equations in the same variables are equivalent if they have the same solution set.

    How is it that two systems can have the same solution set? Well, we have seen such beasts throughout our mathematical careers already! Consider the two equations (not a system, but two separate equations) \(3x = 6\) and \(2x - 1 = 3\). These equations are called equivalent because they share the same solution set (namely, \(x = 2\)). In a similar fashion, the systems\[\begin{cases} x & + & y & = & 2 \\ -x & + & 4y & = & 3 \\ \end{cases} \quad \text{and} \quad \begin{cases} x & + & 7y & = & 8 \\ 2x & + & 5y & = & 7 \\ \end{cases}\nonumber\]are equivalent because they both have the same solution set (namely, \((1,1)\)).

    Now that we have defined what it means for two systems to be equivalent, we can consider the Elimination Method.

    Definition: The Elimination Method

    The Elimination Method (also called the addition method) is an algorithm to solve a system by replacing it with an equivalent system in which the coefficients of one variable are additive inverses. This, in turn, allows adding the two equations to remove that variable and produce a single equation in one less variable.

    As with the Substitution Method, our choice of wording here is purposeful. Specifically, the use of the word "algorithm." An algorithm is a prescribed set of rules to achieve a specific goal. As such, the Elimination Method tends to be the better method to solve systems in the long run.

    The theory behind the use of the Elimination Method is the initial focus of a course called Linear Algebra. For our purposes, it's best to reduce the complexity and say that we are allowed three options when creating equivalent systems using the Elimination Method—row interchanges, row scaling, and row replacement.

    Theorem: Operations That Produce an Equivalent System

    Each of the following operations transforms a system of linear equations into an equivalent system:

    1. interchanging two equations;
    2. multiplying both sides of an equation by a nonzero constant;
    3. replacing one equation by the sum of itself and a constant multiple of another equation.

    To motivate why these operations don't change the solution set of a system, let's look at a trivial example—specifically, the system\[\begin{cases} 3x & = & 6\\x & = & 2 \\ \end{cases}.\nonumber\]We can all agree that the solution of this system is \(x = 2\) (it's the only value of \(x\) that simultaneously solves both equations). If we interchange the two rows, our new system becomes\[\begin{cases} x & = & 2 \\3x & = & 6\\ \end{cases}\nonumber\]and we can (again) easily see that the solution is \(x = 2\). Since the solution set didn't change, these two systems are equivalent. That should convince you that interchanging (or swapping) two equations in a system doesn't change the solution to the system (we often say the solutions to the system are invariant under the operation of row interchanges).

    What if we decided to multiply both sides of the equation \(x = 2\) in the original system by \(-10\)? Then the system would become\[\begin{cases} 3x & = & 6\\-10x & = & -20 \\ \end{cases}.\nonumber\]Again, it is easily seen that the solution to this system is \(x = 2\). Hence, the original system and this new one are equivalent. In general, this will always be true (as long as we are multiplying both sides of one of the equations in the system by a nonzero constant).

    Finally, what if we decided to replace the top equation in\[\begin{cases} 3x & = & 6\\x & = & 2 \\ \end{cases}\nonumber\]with the sum of itself and \(4\) times the second equation? That is, what if we replaced the top equation with \((3x +4x) = (6 + 4 \cdot 2)\). The new system would be\[\begin{cases} 7x & = & 14\\x & = & 2 \\ \end{cases}.\nonumber\]Again, notice that the only solution to this system is \(x = 2\), and we have yet another equivalent system.

    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... Solve a 2x2 System Using Elimination
    1. Write both equations with \( x \)- and \( y \)-variables on the left side of the equal sign and constants on the right.
    2. 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.
    3. Solve the resulting equation for the remaining variable.
    4. Substitute that value into one of the original equations and solve for the second variable.
    5. Check the solution by substituting the values into the other equation.
    Example \(\PageIndex{4}\): Solving a System by the Elimination Method

    Solve the given system of equations using the Elimination Method.\[\begin{cases} x & + & 2y & = & -1 \\ -x & + & y & = & 3 \\ \end{cases}\nonumber\]

    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.\[\begin{array}{rccccc} & x & + & 2y & = & -1 \\[6pt] + & -x & + & y & = & 3 \\[6pt] \hline & & & 3y & = & 2 \\[6pt] \end{array}\nonumber\]Now that we have eliminated \(x\), we can solve the resulting equation for \(y\).\[3y=2 \implies y = \dfrac{2}{3}\nonumber\]Then, we substitute this value for \(y\) into one of the original equations and solve for \(x\).\[\begin{array}{rrclcl} & -x + y & = & 3 & & \\[6pt] \implies & -x + \left( \dfrac{2}{3} \right) & = & 3 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & -x & = & \dfrac{7}{3} & \quad & \left( \text{subtracting }\frac{7}{3} \text{ from both sides} \right) \\[6pt] \implies & x & = & -\dfrac{7}{3} & \quad & \left( \text{multiplying both sides by }-1 \right) \\[6pt] \end{array}\nonumber\]The solution to this system is \(\left(-\frac{7}{3},\frac{2}{3}\right)\).

    Check the solution in the first equation.\[\begin{array}{rrclcl} & x + 2y & = & -1 & & \\[6pt] \implies & \left( -\dfrac{7}{3} \right) + 2\left( \dfrac{2}{3} \right) & = & -1 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & -7 + 2\left( 2 \right) & = & -3 & \quad & \left( \text{multiplying both sides by }3 \right) \\[6pt] \implies & -7 + 4 & = & -3 & \quad & \left( \text{simplifying} \right) \\[6pt] \implies & -3 & = & -3 & \quad & \left( \text{combining like terms} \right) \\[6pt] \end{array}\nonumber\]Thus, the solution works in the first equation. We leave it to the reader to verify it satisfies the second equation.

    We gain an important perspective on systems of equations by looking at the graphical representation. See Figure \(\PageIndex{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.

    1064e9f61c297c658f69021dd2f6567ad0bb111e
    Figure \(\PageIndex{5}\)
    Example \(\PageIndex{5}\): Using the Elimination Method When Multiplication of One Equation Is Required

    Solve the given system of equations by the Elimination Method.\[\begin{cases} 3x & + & 5y & = & -11 \\ x & - & 2y & = & 11 \\ \end{cases}\nonumber\]

    Solution

    Adding these equations as presented will not eliminate a variable. However, we see that the first equation has \(3x\) in it and the second equation has \(x\). So if we multiply the second equation by \(-3\), the \(x\)-terms will add to zero.\[\begin{array}{rccccc} & x & - & 2y & = & 11 \\[6pt] \implies & -3(x & - & 2y) & = & -3(11) \\[6pt] \implies & -3x & + & 6y & = & -33 \\[6pt] \end{array}\nonumber\]Now, let's add them.\[\begin{array}{rccccc} & 3x & + & 5y & = & -11 \\[6pt] + & -3x & + & 6y & = & -33 \\[6pt] \hline & & & 11y & = & -44 \\[6pt] \implies & & & y & = & -4 \\[6pt] \end{array}\nonumber\]Substituting this into the second equation (in the original system), we get the following:\[\begin{array}{rrclcl} & x - 2y & = & 11 & & \\[6pt] \implies & x - 2(-4) & = & 11 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & x + 8 & = & 11 & \quad & \left( \text{simplifying} \right) \\[6pt] \implies & x & = & 3 & \quad & \left( \text{subtracting }8\text{ from both sides} \right) \\[6pt] \end{array}\nonumber\]Our solution is the ordered pair \((3,-4)\) (we leave it to the reader to algebraically check the solution). See Figure \(\PageIndex{6}\).

    504feb35c23e198b049008e8745e0907b5da5f73
    Figure \(\PageIndex{6}\)
    Checkpoint \(\PageIndex{5}\)

    Solve the system of equations using the Elimination Method.\[\begin{cases} 2x & - & 7y & = & 2 \\ 3x & + & y & = & -20 \\ \end{cases}\nonumber\]

    Example \(\PageIndex{6}\): Using the Elimination Method When Multiplication of Both Equations Is Required

    Solve the given system of equations in two variables using the Elimination Method.\[\begin{cases} 2x & + & 3y & = & -16 \\ 5x & - & 10y & = & 30 \\ \end{cases}\nonumber\]

    Solution

    One equation has \(2x\) and the other has \(5x\). The least common multiple is \(10x\) 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\) and the second equation by \(2\).\[\begin{array}{rccccc} & 2x & + & 3y & = & -16 \\[6pt] \implies & -5(2x & + & 3y) & = & -5(-16) \\[6pt] \implies & -10x & - & 15y & = & 80 \\[6pt] & 5x & - & 10y & = & 30 \\[6pt] \implies & 2(5x & - & 10y) & = & 2(30) \\[6pt] \implies & 10x & - & 20y & = & 60 \\[6pt] \end{array}\nonumber\]Then, we add the two equations together.\[\begin{array}{rccccc} & -10x & - & 15y & = & 80 \\[6pt] + & 10x & - & 20y & = & 60 \\[6pt] \hline & & - & 35y & = & 140 \\[6pt] \implies & & & y & = & -4 \\[6pt] \end{array}\nonumber\]Substitute \(y=-4\) into the original first equation.\[\begin{array}{rrclcl} & 2x + 3y & = & -16 & & \\[6pt] \implies & 2x + 3(-4) & = & -16 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & 2x - 12 & = & -16 & \quad & \left( \text{simplifying} \right) \\[6pt] \implies & 2x & = & -4 & \quad & \left( \text{adding }12\text{ to both sides} \right) \\[6pt] \implies & x & = & -2 & \quad & \left( \text{dividing both sides by }2 \right) \\[6pt] \end{array}\nonumber\]The solution is \((-2,-4)\) (again, we leave it to the reader to check this). See Figure \(\PageIndex{7}\).

    2e45613367cc2d4dcf9ed2934a347019bf6ea8ef
    Figure \(\PageIndex{7}\)
    Example \(\PageIndex{7}\): Using the Elimination Method in Systems of Equations Containing Fractions

    Solve the given system of equations in two variables using the Elimination Method.\[\begin{cases} \dfrac{x}{3} & + & \dfrac{y}{6} & = & 3 \\[6pt] \dfrac{x}{2} & - & \dfrac{y}{4} & = & 1 \\[6pt] \end{cases}\nonumber\]

    Solution

    First clear each equation of fractions by multiplying both sides of the equation by the least common denominator.\[\begin{array}{rrclcl} & \dfrac{x}{3} & + & \dfrac{y}{6} & = & 3 \\[6pt] \implies & 6\left( \dfrac{x}{3} \right. & + & \left. \dfrac{y}{6} \right) & = & 6(3) \\[6pt] \implies & 2x & + & y & = & 18 \\[6pt] & \dfrac{x}{2} & - & \dfrac{y}{4} & = & 1 \\[6pt] \implies & 4\left( \dfrac{x}{2} \right. & - & \left. \dfrac{y}{4} \right) & = & 4(1) \\[6pt] \implies & 2x & - & y & = & 4 \\[6pt] \end{array}\nonumber\]Add the two equations to eliminate the \(y\)-variable and solve the resulting equation.\[\begin{array}{rrclcl} & 2x & + & y & = & 18 \\[6pt] + & 2x & - & y & = & 4 \\[6pt] \hline & 4x & & & = & 22 \\[6pt] \implies & x & & & = & \dfrac{11}{2} \\[6pt] \end{array}\nonumber\]Substitute \(x = \frac{11}{2}\) into the first equation.\[\begin{array}{rrclcl} & 2x + y & = & 18 & & \\[6pt] \implies & 2\left( \dfrac{11}{2} \right) + y & = & 18 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & 11 + y & = & 18 & \quad & \left( \text{simplifying} \right) \\[6pt] \implies & y & = & 7 & \quad & \left( \text{subtracting }11\text{ from both sides} \right) \\[6pt] \end{array}\nonumber\]The solution is \(\left(\frac{11}{2},7\right)\). We leave it to the reader to check it in the other equation.

    Checkpoint \(\PageIndex{7}\)

    Solve the system of equations using the Elimination Method.\[\begin{cases} 2x & + & 3y & = & 8 \\ 3x & + & 5y & = & 10 \\ \end{cases}\nonumber\]

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

    Example \(\PageIndex{8}\): Solving an Inconsistent System of Equations

    Solve the following system of equations.\[\begin{cases} x & = & 9 & - & 2y \\ x & + & 2y & = & 13 \\ \end{cases}\nonumber\]

    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.\[\begin{array}{rrclcl} & x + 2y & = & 13 & & \\[6pt] \implies & (9 - 2y) + 2y & = & 13 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & 9 & = & 13 & \quad & \left( \text{simplifying} \right) \\[6pt] \end{array}\nonumber\]Clearly, this statement is a contradiction because \(9 \neq 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.\[\begin{array}{rrclcl} & x & = & 9 - 2y & & \\[6pt] \implies & 2y & = & -x + 9 & \quad & \left( \text{subtracting }x\text{ from and adding }2y\text{ to both sides} \right) \\[6pt] \implies & y & = & -\dfrac{1}{2}x + \dfrac{9}{2} & \quad & \left( \text{dividing both sides by }2 \right) \\[6pt] \end{array}\nonumber\]We then convert the second equation expressed to slope-intercept form.\[\begin{array}{rrclcl} & x + 2y & = & 13 & & \\[6pt] \implies & 2y & = & -x + 13 & \quad & \left( \text{subtracting }2y\text{ from both sides} \right) \\[6pt] \implies & y & = & -\dfrac{1}{2}x + \dfrac{13}{2} & \quad & \left( \text{dividing both sides by }2 \right) \\[6pt] \end{array}\nonumber\]Comparing the equations, we see that they have the same slope but different \(y\)-intercepts. Therefore, the lines are parallel and do not intersect.

    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 (with different \(y\)-intercepts) will never intersect; thus, the two lines have no points in common. The graphs of the equations in this example are shown in Figure \(\PageIndex{8}\).

    0bc5feef62f26500d5c6222b75d57c6fc7896022
    Figure \(\PageIndex{8}\)
    Checkpoint \(\PageIndex{8}\)

    Solve the following system of equations in two variables.\[\begin{cases} 2y & - & 2x & = & 2 \\ 2y & - & 2x & = & 6 \\ \end{cases}\nonumber\]

    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 Elimination, the resulting equation will be an identity, such as \(0=0\).

    Example \(\PageIndex{9}\): Finding a Solution to a Dependent System of Linear Equations

    Find a solution to the system of equations using the Elimination Method.\[\begin{cases} x & + & 3y & = & 2 \\ 3x & + & 9y & = & 6 \\ \end{cases}\nonumber\]

    Solution

    With the Elimination 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\), then we will be able to eliminate the \(x\)-variable.\[\begin{array}{rccccc} & x & + & 3y & = & 2 \\[6pt] \implies & (-3)\left( x \right. & + & \left. 3y \right) & = & (-3)(2) \\[6pt] \implies & -3x & - & 9y & = & -6 \\[6pt] \end{array}\nonumber\]Now add the equations.\[\begin{array}{cccccc} & -3x & - & 9y & = & -6 \\[6pt] & 3x & + & 9y & = & 6 \\[6pt] \hline + & & & 0 & = & 0 \\[6pt] \end{array}\nonumber\]We can see that there will be an infinite number of solutions that satisfy both equations.

    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.\[\begin{array}{rrcl} & x + 3y & = & 2 \\[6pt] \implies & 3y & = & -x + 2 \\[6pt] \implies & y & = & -\dfrac{1}{3}x + \dfrac{2}{3} \\[6pt] & 3x + 9y & = & 6 \\[6pt] \implies & 9y & = & -3x + 6 \\[6pt] \implies & y & = & -\dfrac{1}{3}x + \dfrac{2}{3} \\[6pt] \end{array}\nonumber\]See Figure \(\PageIndex{9}\). Notice the results are the same. The general solution to the system is \(\left(x,-\frac{1}{3}x + \frac{2}{3}\right)\).

    08a2f54974371538714c32f2e0bb1562fea79cc9
    Figure \(\PageIndex{9}\)
    Checkpoint \(\PageIndex{9}\)

    Solve the following system of equations in two variables.\[\begin{cases} y & - & 2x & = & 5 \\ -3y & + & 6x & = & -15 \\ \end{cases}\nonumber\]

    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 = \text{quantity}\) and \(p = \text{price}\). The revenue function is shown in orange in Figure \(\PageIndex{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 \(\PageIndex{10}\). The \(x\)-axis represents quantity in hundreds of units. The \(y\)-axis represents either cost or revenue in hundreds of dollars.

    bdd21595beb40b8b01818db5a1716c071dc93482
    Figure \(\PageIndex{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 \(\PageIndex{10}\): Finding the Break-Even Point and the Profit Function Using Substitution

    Given the cost function \(C(x)=0.85x+35,000\) and the revenue function \(R(x)=1.55x\), find the break-even point and the profit function.

    Solution

    Write the system of equations using \(y\) to replace function notation.\[\begin{cases} y & = & 0.85x & + & 35000 \\ y & = & 1.55x \\ \end{cases}\nonumber\]Substitute the expression \(0.85x+35,000\) from the first equation into the second equation and solve for \(x\).\[\begin{array}{rrclcl} & 0.85x + 35000 & = & 1.55x & & \\[6pt] \implies & 35000 & = & 0.7x & \quad & \left( \text{subtracting }0.85x\text{ from both sides} \right) \\[6pt] \implies & 50000 & = & x & \quad & \left( \text{dividing both sides by }0.7 \right) \\[6pt] \end{array}\nonumber\]Then, we substitute \(x=50,000\) into either the cost function or the revenue function.\[1.55 (50000) = 77500\nonumber\]The break-even point is \((50,000,77,500)\).

    The profit function is found using the formula \(P(x)=R(x)-C(x)\).\[\begin{array}{rcl} P(x) & = & R(x) - C(x) \\[6pt] & = & 1.55x - (0.85x + 35000) \\[6pt] & = & 0.7x - 35000 \\[6pt] \end{array}\nonumber\]The profit function is \(P(x)=0.7x-35,000\).

    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 \(\PageIndex{11}\).

    066300b1b3ce105f193b9a719be58553f179be3a
    Figure \(\PageIndex{11}\)

    We see from the graph in Figure \(\PageIndex{12}\) that the profit function has a negative value until \(x=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.

    392f13fb4bd0a777a94bfa466bfd0b8735d72950
    Figure \(\PageIndex{12}\)
    Example \(\PageIndex{11}\): Writing and Solving a System of Equations in Two Variables

    The cost of a ticket to the circus is $25.00 for children and $50.00 for adults. On a certain day, attendance at the circus is 2,000 and the total gate revenue is $70,000. How many children and how many adults bought tickets?

    Solution

    Let \(c\) = the number of children and \(a\) = the number of adults in attendance.

    The total number of people is \(2,000\). We can use this to write an equation for the number of people at the circus that day.\[c+a=2,000\nonumber\]The revenue from all children can be found by multiplying $25.00 by the number of children, \(25c\). The revenue from all adults can be found by multiplying $50.00 by the number of adults, \(50a\). The total revenue is $70,000. We can use this to write an equation for the revenue.\[25c+50a=70,000\nonumber\]We now have a system of linear equations in two variables.\[\begin{cases} c & + & a & = & 2,000 \\ 25c & + & 50a & = & 70,000 \\ \end{cases}\nonumber\]In the first equation, the coefficient of both variables is \(1\). We can quickly solve the first equation for either \(c\) or \(a\). We will solve for \(a\).\[c+a=2,000 \implies a=2,000-c.\nonumber\]Substitute the expression \(2,000-c\) in the second equation for \(a\) and solve for \(c\).\[\begin{array}{rrclcl} & 25c + 50a & = & 70,000 & & \\[6pt] \implies & 25c + 50(2,000 - c) & = & 70,000 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & 25c + 100,000 - 50c & = & 70,000 & \quad & \left( \text{distributing} \right) \\[6pt] \implies & -25c + 100,000 & = & 70,000 & \quad & \left( \text{combining like terms} \right) \\[6pt] \implies & -25c & = & -30,000 & \quad & \left( \text{subtracting }100,000\text{ from both sides} \right) \\[6pt] \implies & c & = & 1,200 & \quad & \left( \text{dividing both sides by }-25 \right) \\[6pt] \end{array}\nonumber\]Substitute \(c=1,200\) into the first equation to solve for \(a\).\[\begin{array}{rrclcl} & c + a & = & 2,000 & & \\[6pt] \implies & 1,200 + a & = & 2,000 & \quad & \left( \text{substituting} \right) \\[6pt] \implies & a & = & 800 & \quad & \left( \text{subtracting }1,200\text{ from both sides} \right) \\[6pt] \end{array}\nonumber\]We find that 1,200 children and 800 adults bought tickets to the circus that day.

    Checkpoint \(\PageIndex{11}\)

    Meal tickets at the circus cost $4.00 for children and $12.00 for adults. If 1,650 meal tickets were bought for a total of $14,200, how many children and how many adults bought meal tickets?


    Success in College: Learning From Tests (Part 6)

    1. How complex are mathematics tests for you compared to exams in other subjects?
    2. How hard do you try on the mathematics test compared to your efforts in other subjects?

    Success in College: Preparing for the Final Exam (Part 2)

    1. Think about the concepts and skills you have learned this semester. Describe two concepts or skills that were most difficult for you.
    2. Describe what you are doing to ensure you can answer the questions about these concepts or skills on the final exam.

    This page titled 16.1: Systems of Linear Equations - Two Variables was last modified on Tue, 08 Jul 2025 17:48:17 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Roy Simpson, Cosumnes River College (OpenStax) via source content that was edited to the style and standards of the LibreTexts platform.