Skip to main content
Mathematics LibreTexts

3.4: Solving Linear Systems with Three Variables

  • Page ID
    6243
    • Anonymous
    • LibreTexts
    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives

    • Check solutions to linear systems with three variables.
    • Solve linear systems with three variables by elimination.
    • Identify dependent and inconsistent systems.
    • Solve applications involving three unknowns.

    Solutions to Linear Systems with Three Variables

    Real-world applications are often modeled using more than one variable and more than one equation. In this section, we will study linear systems consisting of three linear equations each with three variables. For example,

    \(\left\{ \begin{array} { l l } { 3 x + 2 y - z = - 7 } & { \color{Cerulean} { (1) } } \\ { 6 x - y + 3 z = - 4 } & { \color{Cerulean} { (2) } } \\ { x + 10 y - 2 z = 2 } & { \color{Cerulean} { (3) } } \end{array} \right.\)

    A solution to such a linear system is an ordered triple19 \((x, y, z)\) that solves all of the equations. In this case, \((−2, 1, 3)\) is the only solution. To check that an ordered triple is a solution, substitute in the corresponding \(x\)-, \(y\)-, and \(z\)-values and then simplify to see if you obtain a true statement from all three equations.

    \(\color{Cerulean}{Check:}\color{Black}{(-2,1,3)}\)
    \(\begin{array} { r } { \text { Equation } \color{Cerulean}{( 1 ) :} } \\ { 3 x + 2 y + z = - 7 } \\ { 3 ( \color{Cerulean}{- 2}\color{Black}{ )} + 2 ( \color{Cerulean}{1}\color{Black}{ )} - ( \color{Cerulean}{3}\color{Black}{ )} = - 7 } \\ { - 6 + 2 - 3 = - 7 } \\ { - 7 = - 7\:\:\color{Cerulean}{✓} } \end{array}\) \(\begin{array} { r } { \text { Equation } \color{Cerulean}{( 2 ) : }} \\ { 6 x -y + 3z = -4 } \\ { 6 ( \color{Cerulean}{- 2}\color{Black}{ )} - (\color{Cerulean}{ 1}\color{Black}{ )} -3 (\color{Cerulean}{ 3}\color{Black}{ )} = - 4 } \\ { - 12 -1 -9 = - 4 } \\ { - 4 = - 4 } \:\:\color{Cerulean}{✓}\end{array}\) \(\begin{array} { r } { \text { Equation }\color{Cerulean}{ ( 3 ) :} } \\ { x +10y -2z = 2 } \\ { ( \color{Cerulean}{- 2}\color{Black}{ )} +10 ( \color{Cerulean}{1}\color{Black}{ )} -2 ( \color{Cerulean}{3}\color{Black}{ )} = 2 } \\ { - 2+10 -6 = 2 } \\ { 2 = 2 } \:\:\color{Cerulean}{✓} \end{array}\)
    Table \(\PageIndex{1}\)

    Because the ordered triple satisfies all three equations we conclude that it is indeed a solution.

    Example \(\PageIndex{1}\):

    Determine whether or not \((1, 4, \frac{4}{3}\) is a solution to the following linear system:

    \(\left\{ \begin{aligned} 9 x + y - 6 z & = 5 \\ - 6 x - 3 y + 3 z & = - 14 \\ 3 x + 2 y - 7 z & = 15 \end{aligned} \right.\)

    \(\color{Cerulean}{Check:}\color{Black}{(1, 4, \frac{4}{3})}\)
    \(\begin{array} { r } { \text { Equation } \color{Cerulean}{( 1 ) :} } \\ { 9 x + y - 6 z = 5 } \\ { 9 ( \color{Cerulean}{1}\color{Black}{ )} + ( \color{Cerulean}{4}\color{Black}{ )} - 6 \left( \color{Cerulean}{\frac { 4 } { 3 }} \right) = 5 } \\ { 9 + 4 - 8 = 5 } \\ { 5 = 5 } \:\:\color{Cerulean}{✓}\end{array}\) \(\begin{array} { r } { \text { Equation } \color{Cerulean}{( 2 ) :} } \\ { -6x -3y +3z = -14 } \\ { 6 ( \color{Cerulean}{1}\color{Black}{ )} - 3( \color{Cerulean}{4}\color{Black}{ )}+ 3 \left( \color{Cerulean}{\frac { 4 } { 3 }} \right) = -14 } \\ { -6-12+4 = -14 } \\ { -14= -14 } \:\:\color{Cerulean}{✓}\end{array}\) \(\begin{array} { r } { \text { Equation } \color{Cerulean}{( 3 ) :} } \\ { 3x+2y-7z = 15 } \\ { 3 ( \color{Cerulean}{1}\color{Black}{ )} +2( \color{Cerulean}{4}\color{Black}{ )}-7 \left( \color{Cerulean}{\frac { 4 } { 3 }} \right) = 15 } \\ { 3+8-\frac{28}{3} = 15 } \\ { \frac{5}{3}= 15 } \:\:\color{red}{X}\end{array}\)

    Answer

    The point does not satisfy all of the equations and thus is not a solution.

    An ordered triple such as \((2, 4, 5)\) can be graphed in three-dimensional space as follows:

    926cca2c2942c813865579781eab4bdf.png
    Figure \(\PageIndex{1}\)

    The ordered triple indicates position relative to the origin \((0, 0, 0)\), in this case, \(2\) units along the \(x\)-axis, \(4\) units parallel to the \(y\)-axis, and \(5\) units parallel to the \(z\)-axis. A linear equation with three variables20 is in standard form if

    \(ax+by+cz=d\)

    where \(a, b, c\), and \(d\) are real numbers. For example, \(6x + y + 2z = 26\) is in standard form. Solving for \(z\), we obtain \(z = −3x − \frac{1}{2} y + 13\) and can consider both \(x\) and \(y\) to be the independent variables. When graphed in three-dimensional space, its graph will form a straight flat surface called a plane21.

    cb50e8c9a978a4ca62a8c6d4a30d4c65.png
    Figure \(\PageIndex{2}\)

    Therefore, the graph of a system of three linear equations and three unknowns will consist of three planes in space. If there is a simultaneous solution, the system is consistent and the solution corresponds to a point where the three planes intersect.

    7459f0f0ab8b4fef9fb707a49ccbc0ae.png
    Figure \(\PageIndex{3}\)

    Graphing planes in three-dimensional space is not within the scope of this textbook. However, it is always important to understand the geometric interpretation.

    Exercise \(\PageIndex{1}\)

    Determine whether or not \((3, −1, 2)\) a solution to the system:

    \(\left\{ \begin{array} { l } { 2 x - 3 y - z = 7 } \\ { 3 x + 5 y - 3 z = - 2 } \\ { 4 x - y + 2 z = 17 } \end{array} \right.\)

    Answer

    Yes, it is a solution.

    www.youtube.com/v/2UET4LzXoYg

    Solve Linear Systems with Three Variables by Elimination

    In this section, the elimination method is used to solve systems of three linear equations with three variables. The idea is to eliminate one of the variables and resolve the original system into a system of two linear equations, after which we can then solve as usual. The steps are outlined in the following example.

    Example \(\PageIndex{2}\)

    Solve: \(\left\{ \begin{array} { l l } { 3 x + 2 y - z = - 7 } & { \color{Cerulean}{(1)} } \\ { 6 x - y + 3 z = - 4 } & { \color{Cerulean} { (2) } } \\ { x + 10 y - 2 z = 2 } & { \color{Cerulean} { (3) } } \end{array} \right.\)

    Solution

    All three equations are in standard form. If this were not the case, it would be a best practice to rewrite the equations in standard form before beginning this process.

    Step 1: Choose any two of the equations and eliminate a variable. In this case, we can line up the variable \(z\) to eliminate if we group \(3\) times the first equation with the second equation.

    516fe5445b196be3005983298be1a411.png
    Figure \(\PageIndex{4}\)

    Next, add the equations together.

    \(\begin{aligned} 9 x + 6 y \color{red}{- 3 z}&\color{black}{ =} 21 \\ \pm 6 x - y \color{red}{+ 3 z}&\color{black}{ =} - 4 \\ \hline \\ 15x + 5y &= -25 \color{OliveGreen}{✓} \end{aligned}\)

    Step 2: Choose any other two equations and eliminate the same variable. We can line up \(z\) to eliminate again if we group \(−2\) times the first equation with the third equation.

    9ebe0a82e20ab5ef2e179afa669cdc14.png
    Figure \(\PageIndex{5}\)

    And then add,

    \(\begin{aligned} - 6 x - 4 y \color{red}{+ 2 z}&\color{black}{ =} 14 \\ \pm x + 10 y \color{red}{- 2 z} &\color{black}{=} 2 \\ \hline \\-5x + 6y& = 16 \color{OliveGreen}{✓}\end{aligned}\)

    Step 3: Solve the resulting system of two equations with two unknowns. Here we solve by elimination. Multiply the second equation by \(3\) to line up the variable \(x\) to eliminate.

    479855f616ff4062df8e26f9d8ad2d39.png
    Figure \(\PageIndex{6}\)

    Next, add the equations together.

    \(\begin{aligned} \color{red}{15 x}\color{black}{ +} 5 y &= - 25 \\ \pm \color{red}{- 15 x}\color{black}{ +} 18 y &= 48 \\ \hline\\23y&=23\\y&=1 \end{aligned}\)

    Step 4: Back substitute and determine all of the coordinates. To find x use the following,

    \(\begin{aligned} 15 x + 5 y & = - 25 \\ 15 x + 5 ( \color{OliveGreen}{1}\color{black}{ )} & = - 25 \\ 15 x & = - 30 \\ x & = - 2 \end{aligned}\)

    Now choose one of the original equations to find \(z\),

    \(\begin{aligned} 3 x + 2 y - z & = - 7 \quad\color{Cerulean}{(1)} \\ 3 ( \color{OliveGreen}{- 2}\color{Black}{ )} + 2 ( \color{OliveGreen}{1}\color{Black}{ )} - z & = - 7 \\ - 6 + 2 - z & = - 7 \\ - 4 - z & = - 7 \\ - z & = - 3 \\ z & = 3 \end{aligned}\)

    Hence the solution, presented as an ordered triple \((x, y, z)\), is \((−2, 1, 3)\). This is the same system that we checked in the beginning of this section.

    Answer

    \((-2,1,3)\)

    It does not matter which variable we initially choose to eliminate, as long as we eliminate it twice with two different sets of equations.

    Example \(\PageIndex{3}\)

    Solve: \(\left\{ \begin{array} { c } { - 6 x - 3 y + 3 z = - 14 } \\ { 9 x + y - 6 z = 5 } \\ { 3 x + 2 y - 7 z = 15 } \end{array} \right.\).

    Solution

    Because \(y\) has coefficient \(1\) in the second equation, choose to eliminate this variable. Use equations \(1\) and \(2\) to eliminate \(y\).

    a930dc2e59fe26d4e9f63d71255af376.png
    Figure \(\PageIndex{7}\)

    Next use the equations \(2\) and \(3\) to eliminate \(y\) again.

    1851087164f84417d08d2fca715fe95b.png
    Figure \(\PageIndex{8}\)

    This leaves a system of two equations with two variables \(x\) and \(z\),

    \(\left\{ \begin{array} { l } { 21 x - 15 z = 1 } \\ { - 15 x + 5 z = 5 } \end{array} \right.\)

    Multiply the second equation by \(3\) and eliminate the variable \(z\).

    8f6730530de1044a573e39ba7e363c32.png
    Figure \(\PageIndex{9}\)

    Now back substitute to find \(z\).

    \(\begin{aligned} 21 x - 15 z & = 1 \\ 21 \left( \color{Cerulean}{- \frac { 2 } { 3} } \right) - 15 z & = 1 \\ - 14 - 15 z & = 1 \\ - 15 z & = 15 \\ z & = - 1 \end{aligned}\)

    Finally, choose one of the original equations to find \(y\).

    \(\begin{aligned} - 6 x - 3 y + 3 z & = - 14 \\ - 6 \left( \color{Cerulean}{- \frac { 2 } { 3} } \right) - 3 y + 3 ( \color{Cerulean}{- 1}\color{Black}{ )} & = - 14 \\ 4 - 3 y - 3 & = - 14 \\ 1 - 3 y & = - 14 \\ - 3 y & = - 15 \\ y & = 5 \end{aligned}\)

    Answer

    \(\left( - \frac { 2 } { 3 } , 5 , - 1 \right)\)

    Example \(\PageIndex{4}\)

    Solve: \(\left\{ \begin{array} { l } { 2 x + 6 y + 7 z = 4 } \\ { - 3 x - 4 y + 5 z = 12 } \\ { 5 x + 10 y - 3 z = - 13 } \end{array} \right.\).

    Solution

    In this example, there is no obvious choice of variable to eliminate. We choose to eliminate \(x\).

    \(\begin{array} { l } { \color{Cerulean}{ (1) } } \\ { \color{Cerulean}{ (2) } } \end{array}\)\(\left \{ \begin{array} { l l } { 2 x + 6y + 7z = 4 } & { \stackrel{ \times3 } { \Rightarrow } } \\ { -3 x -4y +5z = 12 } & { \underset { \times 2 } { \Rightarrow }} \end{array} \right. \left\{ \begin{array} { l } { 6 x + 18 y + 21z = 12 } \\ { -6x -8y +10z = 24 } \end{array} \\\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad10y + 31z=36 \color{OliveGreen}{✓} \right.\)

    Next use equations \(2\) and \(3\) to eliminate \(x\) again.

    \(\begin{array} { l } { \color{Cerulean}{ (2) } } \\ { \color{Cerulean}{ (3) } } \end{array}\)\(\left \{ \begin{array} { l l } { -3 x -4y + 5z = 12 } & { \stackrel{ \times5 } { \Rightarrow } } \\ { 5 x +10y -3z = -13 } & { \underset { \times 3 } { \Rightarrow }} \end{array} \right. \left\{ \begin{array} { l } { -15 x -20 y + 25z = 60 } \\ { 15x +30y -9z = -39 }\end{array} \\\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad10y + 16z=21 \color{OliveGreen}{✓} \right.\)

    This leaves a system of two equations with two variables \(y\) and \(z\),

    \(\left\{ \begin{array} { l } { 10 y + 31 z = 36 } \\ { 10 y + 16 z = 21 } \end{array} \right.\)

    Multiply the first equation by \(−1\) as a means to eliminate the variable \(y\).

    95d63ad5a9baddc000a1cc8f24c2cb5f.png
    Figure \(\PageIndex{10}\)

    Now back substitute to find \(y\).

    \(\begin{aligned} 10 y + 31 z & = 36 \\ 10 y + 31 ( \color{OliveGreen}{1}\color{Black}{ )} & = 36 \\ 10 y + 31 & = 36 \\ 10 y & = 5 \\ y & = \frac { 5 } { 10 } \\ y & = \frac { 1 } { 2 } \end{aligned}\)

    Choose any one of the original equations to find \(x\).

    \(\begin{aligned} 2 x + 6 y + 7 z & = 4 \\ 2 x + 6 \left( \color{OliveGreen}{\frac { 1 } { 2 }} \right) + 7 ( \color{OliveGreen}{1}\color{Black}{ )} & = 4 \\ 2 x + 3 + 7 & = 4 \\ 2 x + 10 & = 4 \\ 2 x & = - 6 \\ x & = - 3 \end{aligned}\)

    Answer

    \(\left( - 3 , \frac { 1 } { 2 } , 1 \right)\)

    Exercise \(\PageIndex{2}\)

    Solve: \(\left\{ \begin{array} { l } { 2 x - 3 y - z = 7 } \\ { 3 x + 5 y - 3 z = - 2 } \\ { 4 x - y + 2 z = 17 } \end{array} \right.\)

    Answer

    \((3, -1, 2)\)

    www.youtube.com/v/CjSv8D3g2Ic

    Dependent and Inconsistent Systems

    Just as with linear systems with two variables, not all linear systems with three variables have a single solution. Sometimes there are no simultaneous solutions.

    Example \(\PageIndex{5}\):

    Solve the system: \(\left\{ \begin{aligned} 4 x - y + 3 z & = 5 \\ 21 x - 4 y + 18 z & = 7 \\ - 9 x + y - 9 z & = - 8 \end{aligned} \right.\).

    Solution

    In this case we choose to eliminate the variable \(y\).

    \(\begin{array} { l } { \color{Cerulean}{ (1) } } \\ { \color{Cerulean}{ (3) } } \end{array}\)\(\left \{ \begin{array} { l l } { 4 x -y + 3z = 5 } & \\ { -9 x +y -9z = -8 } & \end{array} \right. \\\quad-5x -6z=-3 \color{OliveGreen}{✓} \)

    Next use equations \(2\) and \(3\) to eliminate \(y\) again.

    5bb34b567d214f6483e9deac2397a57c.png
    Figure \(\PageIndex{11}\)

    This leaves a system of two equations with two variables \(x\) and \(z\),

    \(\left\{ \begin{array} { l } { - 5 x - 6 z = - 3 } \\ { - 15 x - 18 z = - 25 } \end{array} \right.\)

    Multiply the first equation by \(-3\) and eliminate the variable \(z\).

    740c553bef9233cde375b618839805b1.png
    Figure \(\PageIndex{12}\)

    Adding the resulting equations together leads to a false statement, which indicates that the system is inconsistent. There is no simultaneous solution.

    Answer

    \(\varnothing\)

    d550ca0de7c5e923812a078819bc153d.png
    Figure \(\PageIndex{13}\)

    Just as with linear systems with two variables, some linear systems with three variables have infinitely many solutions. Such systems are called dependent systems.

    Example \(\PageIndex{6}\)

    Solve the system: \(\left\{ \begin{array} { c } { 7 x - 4 y + z = - 15 } \\ { 3 x + 2 y - z = - 5 } \\ { 5 x + 12 y - 5 z = - 5 } \end{array} \right.\).

    Solution

    Eliminate \(z\) by adding the first and second equations together.

    \(\begin{array} { l } { \color{Cerulean}{ (1) } } \\ { \color{Cerulean}{ (3) } } \end{array}\)\(\left \{ \begin{array} { l l } { 7 x -4y + z = -15 } & \\ { 3 x +2y -z = -5 } & \end{array} \right. \\\quad10x -2y=-20 \color{OliveGreen}{✓} \)

    Next use equations \(1\) and \(3\) to eliminate \(z\) again.

    670a2b19d8ed509edab8ce48b9d5376b.png
    Figure \(\PageIndex{14}\)

    This leaves a system of two equations with two variables \(x\) and \(y\),

    \(\left\{ \begin{array} { l } { 10 x - 2 y = - 20 } \\ { 40 x - 8 y = - 80 } \end{array} \right.\)

    Line up the variable \(y\) to eliminate by dividing the first equation by \(2\) and the second equation by \(−8\).

    \(\left \{ \begin{array} { l l } { 10 x -2y = -20 } & { \stackrel{ \div 2} { \Longrightarrow } } \\ { 40 x -8y = -80 } & { \underset { \div (-8) } { \Longrightarrow }} \end{array} \right. \left\{ \begin{array} { l } { 5 x - y = -10 } \\ { -5x +y = 10 }\end{array} \\\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad 0=0 \:\:\color{Cerulean}{True} \right.\)

    A true statement indicates that the system is dependent. To express the infinite number of solutions \((x, y,z)\) in terms of one variable, we solve for \(y\) and \(z\) both in terms of \(x\).

    \(\begin{aligned} 10 x - 2 y & = - 20 \\ - 2 y & = - 10 x - 20 \\ \frac { - 2 y } { - 2 } & = \frac { - 10 x - 20 } { - 2 } \\ y & = 5 x + 10 \end{aligned}\)

    Once we have \(y\) in terms of \(x\), we can solve for \(z\) in terms of \(x\) by back substituting into one of the original equations.

    \(\begin{aligned} 7 x - 4 y + z & = - 15 \\ 7 x - 4 ( \color{OliveGreen}{5 x + 10}\color{black}{ )} + z & = - 15 \\ 7 x - 20 x - 40 + z & = - 15 \\ - 13 x - 40 + z & = - 15 \\ z & = 13 x + 25 \end{aligned}\)

    Answer

    \(( x , 5 x + 10,13 x + 25 )\)

    A consistent system with infinitely many solutions is a dependent system. Given three planes, infinitely many simultaneous solutions can occur in a number of ways.

    fba9f2933c40eda5a889e37a0e9c0abf.png
    Figure \(\PageIndex{15}\)

    Exercise \(\PageIndex{3}\)

    Solve: \(\left\{ \begin{aligned} 7 x + y - 2 z & = - 4 \\ - 21 x - 7 y + 8 z & = 4 \\ 7 x + 3 y - 3 z & = 0 \end{aligned} \right.\)

    Answer

    \(\left( x , \frac { 7 } { 3 } x + 4 , \frac { 14 } { 3 } x + 4 \right)\)

    www.youtube.com/v/WgGAtNiJMlI

    Applications Involving Three Unknowns

    Many real-world applications involve more than two unknowns. When an application requires three variables, we look for relationships between the variables that allow us to write three equations.

    Example \(\PageIndex{7}\)

    A community theater sold \(63\) tickets to the afternoon performance for a total of \($444\). An adult ticket cost \($8\), a child ticket cost \($4\), and a senior ticket cost \($6\). If twice as many tickets were sold to adults as to children and seniors combined, how many of each ticket were sold?

    Solution

    Begin by identifying three variables.

    Let \(x\) represent the number of adult tickets sold.

    Let \(y\) represent the number of child tickets sold.

    Let \(z\) represent the number of senior tickets sold.

    The first equation comes from the statement that \(63\) tickets were sold.

    \(\color{Cerulean}{(1)}\quad \color{black}{x}+y+z=63\)

    The second equation comes from total ticket sales.

    \(\color{Cerulean}{(2)}\quad \color{black}{8}x+4y+6z=444\)

    The third equation comes from the statement that twice as many adult tickets were sold as child and senior tickets combined.

    \(\begin{aligned} x & = 2 ( y + z ) \\ x & = 2 y + 2 z \\ \color{Cerulean}{( 3 )} \quad\color{black}{ x} - 2 y - 2 z & = 0 \end{aligned}\)

    Therefore, the problem is modeled by the following linear system.

    \(\left\{ \begin{array} { c } { x + y + z = 63 } \\ { 8 x + 4 y + 6 z = 444 } \\ { x - 2 y - 2 z = 0 } \end{array} \right.\)

    Solving this system is left as an exercise. The solution is \((42, 9, 12)\).

    Answer

    The theater sold \(42\) adult tickets, \(9\) child tickets, and \(12\) senior tickets.

    Key Takeaways

    • A simultaneous solution to a linear system with three equations and three variables is an ordered triple \((x, y, z)\) that satisfies all of the equations. If it does not solve each equation, then it is not a solution.
    • We can solve systems of three linear equations with three unknowns by elimination. Choose any two of the equations and eliminate a variable. Next choose any other two equations and eliminate the same variable. This will result in a system of two equations with two variables that can be solved by any method learned previously.
    • If the process of solving a system leads to a false statement, then the system is inconsistent and has no solution.
    • If the process of solving a system leads to a true statement, then the system is dependent and has infinitely many solutions.
    • To solve applications that require three variables, look for relationships between the variables that allow you to write three linear equations.

    Exercise \(\PageIndex{4}\)

    Determine whether or not the given ordered triple is a solution to the given system.

    1. \((3, -2, -1)\);

    \(\left\{ \begin{array} { c } { x + y - z = 2 } \\ { 2 x - 3 y + 2 z = 10 } \\ { x + 2 y + z = - 3 } \end{array} \right.\)

    2. \((-8, -1, 5)\);

    \(\left\{ \begin{array} { c } { x + 2 y - z = - 15 } \\ { 2 x - 6 y + 2 z = 0 } \\ { 3 x - 9 y + 4 z = 5 } \end{array} \right.\)

    3. \((1, -9, 2)\);

    \( \left\{ \begin{array} { c } { 8 x + y - z = - 3 } \\ { 7 x - 2 y - 3 z = 19 } \\ { x - y + 9 z = 28 } \end{array} \right.\)

    4. \((-4, 1, -3)\);

    \(\left\{ \begin{array} { l } { 3 x + 2 y - z = - 7 } \\ { x - 5 y + 2 z = 3 } \\ { 2 x + y + 3 z = - 16 } \end{array} \right.\)

    5. \(\left( 6 , \frac { 2 } { 3 } , - \frac { 1 } { 2 } \right)\);

    \(\left\{ \begin{array} { c } { x + 6 y - 4 z = 12 } \\ { - x + 3 y - 2 z = - 3 } \\ { x - 9 y + 8 z = - 4 } \end{array} \right.\)

    6. \(\left( \frac { 1 } { 4 } , - 1 , - \frac { 3 } { 4 } \right)\);

    \(\left\{ \begin{array} { r } { 2 x - y - 2 z = 3 } \\ { 4 x + 5 y - 8 z = 2 } \\ { x - 2 y - z = 3 } \end{array} \right.\)

    7. \((3, -2, 1)\);

    \(\left\{ \begin{array} { c } { 4 x - 5 y = 22 } \\ { 2 y - z = 8 } \\ { - 5 x + 2 z = - 13 } \end{array} \right.\)

    8. \(\left( 1 , \frac { 5 } { 2 } , - \frac { 1 } { 2 } \right)\);

    \(\left\{ \begin{aligned} 2 y - 6 z & = 8 \\ 3 x - 4 z & = 5 \\ 18 z & = - 9 \end{aligned} \right.\)

    9. \(\left( \frac { 1 } { 2 } , - 2,6 \right)\);

    \(\left\{ \begin{array} { c } { a - b + c = 9 } \\ { 4 a - 2 b + c = 14 } \\ { 2 a + b + \frac { 1 } { 2 } c = 3 } \end{array} \right.\)

    10. \(( - 1,5 , - 7 )\);

    \(\left\{ \begin{array} { l } { 3 a + b + \frac { 1 } { 3 } c = - \frac { 1 } { 3 } } \\ { 8 a + 2 b + \frac { 1 } { 2 } c = - \frac { 3 } { 2 } } \\ { 25 a + 5 b + c = - 7 } \end{array} \right.\)

    Answer

    1. No

    3. Yes

    5. Yes

    7. No

    9. No

    Exercise \(\PageIndex{5}\)

    Solve

    1. \(\left\{ \begin{array} { l } { 2 x - 3 y + z = 4 } \\ { 5 x + 2 y + 2 z = 2 } \\ { x + 4 y - 3 z = 7 } \end{array} \right.\)
    2. \(\left\{ \begin{array} { c } { 5 x - 2 y + z = - 9 } \\ { 2 x + y - 3 z = - 5 } \\ { 7 x + 3 y + 2 z = 6 } \end{array} \right.\)
    3. \(\left\{ \begin{array} { c } { x + 5 y - 2 z = 15 } \\ { 3 x - 7 y + 4 z = - 7 } \\ { 2 x + 4 y - 3 z = 21 } \end{array} \right.\)
    4. \(\left\{ \begin{array} { c } { x - 4 y + 2 z = 3 } \\ { 2 x + 3 y - 3 z = 9 } \\ { 3 x + 2 y + 4 z = - 1 } \end{array} \right.\)
    5. \(\left\{ \begin{array} { c } { 5 x + 4 y - 2 z = - 5 } \\ { 4 x - y + 3 z = 14 } \\ { 6 x + 3 y - 5 z = - 12 } \end{array} \right.\)
    6. \(\left\{ \begin{array} { c } { 2 x + 3 y - 2 z = - 4 } \\ { 3 x + 5 y + 3 z = 17 } \\ { 2 x + y - 4 z = - 8 } \end{array} \right.\)
    7. \(\left\{ \begin{array} { c } { x + y - 4 z = 1 } \\ { 9 x - 3 y + 6 z = 2 } \\ { - 6 x + 2 y - 4 z = - 2 } \end{array} \right.\)
    8. \(\left\{ \begin{aligned} 5 x - 8 y + z & = 5 \\ - 3 x + 5 y - z & = - 3 \\ - 11 x + 18 y - 3 z & = - 5 \end{aligned} \right.\)
    9. \(\left\{ \begin{aligned} x - y + 2 z & = 3 \\ 2 x - y + 3 z & = 2 \\ - x - 3 y + 4 z & = 1 \end{aligned} \right.\)
    10. \(\left\{ \begin{array} { c } { x + y + z = 8 } \\ { x - y + 4 z = - 7 } \\ { - x - y + 2 z = 1 } \end{array} \right.\)
    11. \(\left\{ \begin{array} { l } { 4 x - y + 2 z = 3 } \\ { 6 x + 3 y - 4 z = - 1 } \\ { 3 x - 2 y + 3 z = 4 } \end{array} \right.\)
    12. \(\left\{ \begin{array} { c } { x - 4 y + 6 z = - 1 } \\ { 3 x + 8 y - 2 z = 2 } \\ { 5 x + 2 y - 3 z = - 5 } \end{array} \right.\)
    13. \(\left\{ \begin{array} { l } { 3 x - 4 y - z = 7 } \\ { 5 x - 8 y + 3 z = 11 } \\ { 2 x + 6 y + z = 9 } \end{array} \right.\)
    14. \(\left\{ \begin{array} { l } { 3 x + y - 4 z = 6 } \\ { 6 x - 5 y + 3 z = 1 } \\ { 9 x + 3 y - 4 z = 10 } \end{array} \right.\)
    15. \(\left\{ \begin{array} { l } { 7 x - 6 y + z = 8 } \\ { - x + 2 y - z = 4 } \\ { x + 2 y - 2 z = 14 } \end{array} \right.\)
    16. \(\left\{ \begin{array} { l } { - 9 x + 3 y + z = 3 } \\ { 12 x - 4 y - z = 2 } \\ { - 6 x + 2 y + z = 8 } \end{array} \right.\)
    17. \(\left\{ \begin{array} { c } { a - b + c = 9 } \\ { 4 a - 2 b + c = 14 } \\ { 2 a + b + \frac { 1 } { 2 } c = 3 } \end{array} \right.\)
    18. \(\left\{ \begin{array} { l } { 3 a + b + \frac { 1 } { 3 } c = - \frac { 1 } { 3 } } \\ { 8 a + 2 b + \frac { 1 } { 2 } c = - \frac { 3 } { 2 } } \\ { 25 a + 5 b + c = - 7 } \end{array} \right.\)
    19. \(\left\{ \begin{array} { l } { 3 x - 5 y - 4 z = - 5 } \\ { 4 x - 6 y + 3 z = - 22 } \\ { 6 x + 8 y - 5 z = 20 } \end{array} \right.\)
    20. \(\left\{ \begin{array} { l } { 7 x + 4 y - 2 z = 8 } \\ { 2 x + 2 y + 3 z = - 4 } \\ { 3 x - 6 y - 7 z = 8 } \end{array} \right.\)
    21. \(\left\{ \begin{array} { c } { 9 x + 7 y + 4 z = 8 } \\ { 4 x - 5 y - 6 z = - 11 } \\ { - 5 x + 2 y + 3 z = 4 } \end{array} \right.\)
    22. \(\left\{ \begin{array} { l } { 3 x + 7 y + 2 z = - 7 } \\ { 5 x + 4 y + 3 z = 5 } \\ { 2 x - 3 y + 5 z = - 4 } \end{array} \right.\)
    23. \(\left\{ \begin{array} { l } { 4 x - 3 y = 1 } \\ { 2 y - 3 z = 2 } \\ { 3 x + 2 z = 3 } \end{array} \right.\)
    24. \(\left\{ \begin{array} { l } { 5 y - 3 z = - 28 } \\ { 3 x + 2 y = 8 } \\ { 4 y - 7 z = - 27 } \end{array} \right.\)
    25. \(\left\{ \begin{aligned} 2 x + 3 y + z & = 1 \\ 6 y + z & = 4 \\ 2 z & = - 4 \end{aligned} \right.\)
    26. \(\left\{ \begin{aligned} x - 3 y - 2 z & = 5 \\ 2 y + 6 z & = - 1 \\ 4 z & = - 6 \end{aligned} \right.\)
    27. \(\left\{ \begin{aligned} 2 x & = 10 \\ 6 x - 5 y & = 30 \\ 3 x - 4 y - 2 z & = 3 \end{aligned} \right.\)
    28. \(\left\{ \begin{array} { c } { 2 x + 7 z = 2 } \\ { - 4 y = 6 } \\ { 8 y + 3 z = 0 } \end{array} \right.\)
    29. \(\left\{ \begin{array} { c } { 5 x + 7 y + 2 z = 4 } \\ { 12 x + 16 y + 4 z = 15 } \\ { 10 x + 13 y + 3 z = 14 } \end{array} \right.\)
    30. \(\left\{ \begin{array} { l } { 8 x + 12 y - 8 z = 5 } \\ { 2 x + 3 y - 2 z = 2 } \\ { 4 x - 2 y + 5 z = - 1 } \end{array} \right.\)
    31. \(\left\{ \begin{array} { c } { 17 x - 4 y - 3 z = - 2 } \\ { 5 x + \frac { 1 } { 2 } y - 2 z = - \frac { 9 } { 2 } } \\ { 2 x + 5 y - 4 z = - 13 } \end{array} \right.\)
    32. \(\left\{ \begin{aligned} 3 x - 5 y - \frac { 1 } { 2 } z & = \frac { 7 } { 2 } \\ x - y - \frac { 1 } { 2 } z & = - \frac { 1 } { 2 } \\ 3 x - 8 y + z & = 11 \end{aligned} \right.\)
    33. \(\left\{ \begin{array} { l } { 4 a - 2 b + 3 c = 9 } \\ { 3 a + 3 b - 5 c = - 6 } \\ { 10 a - 6 b + 5 c = 13 } \end{array} \right.\)
    34. \(\left\{ \begin{array} { l } { 6 a - 2 b + 5 c = - 2 } \\ { 4 a + 3 b - 3 c = - 1 } \\ { 3 a + 5 b + 6 c = 24 } \end{array} \right.\)
    Answer

    1. \((2, -1, -3)\)

    3. \((4, 1, -3)\)

    5. \((1, -1, 3)\)

    7. \(\varnothing\)

    9. \((5, -10, -6)\)

    11. \(\left( \frac { 1 } { 2 } , - 2 , - \frac { 1 } { 2 } \right)\)

    13. \(\left( 3 , \frac { 1 } { 2 } , 0 \right)\)

    15. \(\left( x , \frac { 3 } { 2 } x - 3,2 x - 10 \right)\)

    17. \((1, -2, 6)\)

    19. \((-1, 2, -2)\)

    21. \((1, -3, 5)\)

    23. \((1, 1, 0)\)

    25. \((0, 1, -2)\)

    27. \((5, 0, 6)\)

    29. \(\varnothing\)

    31. \(( x , 2 x - 1,3 x + 2 )\)

    33. \((1, 2, 3)\)

    Exercise \(\PageIndex{6}\)

    Set up a system of equations and use it to solve the following.

    1. The sum of three integers is \(38\). Two less than \(4\) times the smaller integer is equal to the sum of the others. The sum of the smaller and larger integer is equal to \(2\) more than twice that of the other. Find the integers.
    2. The sum of three integers is \(40\). Three times the smaller integer is equal to the sum of the others. Twice the larger is equal to \(8\) more than the sum of the others. Find the integers.
    3. The sum of the angles \(A, B\), and \(C\) of a triangle is \(180°\). The larger angle \(C\) is equal to twice the sum of the other two. Four times the smallest angle \(A\) is equal to the difference of angle \(C\) and \(B\). Find the angles.
    4. The sum of the angles \(A, B\), and \(C\) of a triangle is \(180°\). Angle \(C\) is equal to the sum of the other two angles. Five times angle \(A\) is equal to the sum of angle \(C\) and \(B\). Find the angles.
    5. A total of \($12,000\) was invested in three interest earning accounts. The interest rates were \(2\)%, \(4\)%, and \(5\)%. If the total simple interest for one year was \($400\) and the amount invested at \(2\)% was equal to the sum of the amounts in the other two accounts, then how much was invested in each account?
    6. Joe invested his \($6,000\) bonus in three accounts earning \(4 \frac{1}{2}\)% interest. He invested twice as much in the account earning \(4 \frac{1}{2}\)% as he did in the other two accounts combined. If the total simple interest for the year was \($234\), how much did Joe invest in each account?
    7. A jar contains nickels, dimes, and quarters. There are \(105\) coins with a total value of \($8.40\). If there are \(3\) more than twice as many dimes as quarters, find how many of each coin are in the jar.
    8. A billfold holds one-dollar, five-dollar, and ten-dollar bills and has a value of \($210\). There are \(50\) bills total where the number of one-dollar bills is one less than twice the number of five-dollar bills. How many of each bill are there?
    9. A nurse wishes to prepare a \(15\)-ounce topical antiseptic solution containing \(3\)% hydrogen peroxide. To obtain this mixture, purified water is to be added to the existing \(1.5\)% and \(10\)% hydrogen peroxide products. If only \(3\) ounces of the \(10\)% hydrogen peroxide solution is available, how much of the \(1.5\)% hydrogen peroxide solution and water is needed?
    10. A chemist needs to produce a \(32\)-ounce solution consisting of \(8 \frac{3}{4}\)% acid. He has three concentrates with \(5\)%, \(10\)%, and \(40\)% acid. If he is to use twice as much of the \(5\)% acid solution as the \(10\)% solution, then how many ounces of the \(40\)% solution will he need?
    11. A community theater sold \(128\) tickets to the evening performance for a total of \($1,132\). An adult ticket cost \($10\), a child ticket cost \($5\), and a senior ticket cost \($6\). If three times as many tickets were sold to adults as to children and seniors combined, how many of each ticket were sold?
    12. James sold \(82\) items at the swap meet for a total of \($504\). He sold packages of socks for \($6\), printed t-shirts for \($12\), and hats for \($5\). If he sold \(5\) times as many hats as he did t-shirts, how many of each item did he sell?
    13. A parabola passes through three points \((−1, 7), (1, −1)\) and \((2, −2)\). Use these points and \(y = a x ^ { 2 } + b x + c\) to construct a system of three linear equations in terms of \(a, b\), and \(c\) and then solve the system.
    14. A parabola passes through three points \((−2, 11), (−1, 4)\) and \((1, 2)\). Use these points and \(y = a x ^ { 2 } + b x + c\) to construct a system of three linear equations in terms of \(a, b\), and \(c\) and solve it.
    Answer

    1. \(8, 12, 18\)

    3. \(A = 20 ^ { \circ } , B = 40 ^ { \circ } , \text { and } C = 120 ^ { \circ }\)

    5. The amount invested at \(2\)% was \($6,000\), the amount invested at \(4\)% was \($2,000\), and the amount invested at \(5\)% was \($4,000\).

    7. \(72\) nickels, \(23\) dimes, and \(10\) quarters

    9. \(10\) ounces of the \(1.5\)% hydrogen peroxide solution and \(2\) ounces of water

    11. \(96\) adult tickets, \(20\) child tickets, and \(12\) senior tickets were sold.

    13. \(a = 1, b = −4\), and \(c = 2\)

    Exercise \(\PageIndex{7}\)

    1. On a note card, write down the steps for solving a system of three linear equations with three variables using elimination. Use your notes to explain to a friend how to solve one of the exercises in this section.
    2. Research and discuss curve fitting. Why is curve fitting an important topic?
    Answer

    1. Answer may vary

    Footnotes

    19Triples \((x, y, z)\) that identify position relative to the origin in three-dimensional space.

    20An equation that can be written in the standard form \(ax + by + cz = d\) where \(a, b, c\), and \(d\) are real numbers.

    21Any flat two-dimensional surface.


    This page titled 3.4: Solving Linear Systems with Three Variables is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Anonymous via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.