Linear systems in two unknowns

 
 
Linear systems in two unknowns.jpeg
 
 
 

What is a linear system?

Throughout Linear Algebra, we’ll be really interested in solving systems of linear equations, or linear systems.

A linear system is a system of equations, defined for a set of unknown variables, where each of the variables is linear (the variables are first degree, or raised to the power of 11).

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

Later on we’ll learn about matrices and how to use them to solve linear systems. So in order to have a foundational understanding of what we’re doing when we solve systems, we want to take this lesson to review other basic methods for solving systems.

In an introductory Algebra class, we would have learned three ways to solve systems of linear equations: substitution, elimination, and graphing. Let’s review the steps for each of those methods.

Substitution method

  1. Get a variable by itself in one of the equations.

  2. Take the expression you got for the variable in step 1, and plug it (substitute it using parentheses) into the other equation.

  3. Solve the equation in step 2 for the remaining variable.

  4. Use the result from step 3 and plug it into the equation from step 1.

 
 

How to solve a system of two linear equations, in two unknowns


 
 

Take the course

Want to learn more about Linear Algebra? I have a step-by-step course for that. :)

 
 

 
 

There are three ways to solve a system of linear equations

Example

Find the unique solution to the system of equations.

y=x+3y=x+3

2x3y=102x-3y=10

Let’s solve the system using the substitution method. Since yy is already solved for in the first equation, step 1 is completed, and we’ll go on to step 2 by substituting x+3x+3 for yy in the other equation.

2x3y=102x-3y=10

2x3(x+3)=102x-3(x+3)=10

Solve for xx. Start by distributing the 3-3.

2x3x9=102x-3x-9=10

Combine like terms.

x9=10-x-9=10

Add 99 to both sides.

x9+9=10+9-x-9+9=10+9

x=19-x=19

Multiply both sides by 1-1.

x(1)=19(1)-x(-1)=19(-1)

x=19x=-19

To find yy, we’ll plug in 19-19 for xx in the first equation.

y=x+3y=x+3

y=19+3y=-19+3

y=16y=-16

The unique solution is (19,16)(-19,-16).


We would have learned three ways to solve systems of linear equations: substitution, elimination, and graphing.

Elimination method

  1. If necessary, rearrange both equations so that the xx-terms are first, followed by the yy-terms, the equals sign, and the constant term (in that order). If an equation appears to have not constant term, that means that the constant term is 00.

  2. Multiply one (or both) equations by a constant that will allow either the xx-terms or the yy-terms to cancel when the equations are added or subtracted (when their left sides and their right sides are added separately, or when their left sides and their right sides are subtracted separately).

  3. Add or subtract the equations.

  4. Solve for the remaining variable.

  5. Plug the result of step 4 into one of the original equations and solve for the other variable.


Example

Find the unique solution to the system of equations.

y=3x4y=3x-4

x+2y=12-x+2y=12


First, we’ll rearrange the first equation so that its individual parts are in the correct places for elimination. Subtract 3x3x from both sides.

y=3x4y=3x-4

3x+y=3x3x4-3x+y=3x-3x-4

3x+y=4-3x+y=-4

Next, multiply the result above by 22 so that the yy-terms will cancel when we subtract the equations.

2(3x+y)=2(4)2(-3x+y)=2(-4)

6x+2y=8-6x+2y=-8

Now we’ll subtract the equations.

6x+2y(x+2y)=8(12)-6x+2y-(-x+2y)=-8-(12)

6x+2y+x2y=812-6x+2y+x-2y=-8-12

Combine like terms.

6x+x+2y2y=20-6x+x+2y-2y=-20

5x+0=20-5x+0=-20

5x=20-5x=-20

Divide both sides by 5-5.

5x5=205\frac{-5x}{-5}=\frac{-20}{-5}

x=4x=4

To solve for yy, we’ll plug in 44 for xx in the original first equation.

y=3x4y=3x-4

y=3(4)4y=3(4)-4

y=124y=12-4

y=8y=8

The unique solution is (4,8)(4,8).


Graphing method

  1. Solve for yy in each equation.

  2. Graph both equations on the same Cartesian coordinate system.

  3. Find the point of intersection of the lines (the point where the lines cross).

Let’s look at an example using the graphing method.


Example

Graph both equations to find the solution to the system.

x+3y=12x+3y=12

2xy=52x-y=5

In order to graph these equations, let’s put both of them into slope-intercept form. Start with the first equation of the system. We get

x+3y=12x+3y=12

Subtract xx from both sides.

xx+3y=x+12x-x+3y=-x+12

3y=x+123y=-x+12

Divide both sides by 33.

3y3=x3+123\frac{3y}{3}=-\frac{x}{3}+\frac{12}{3}

y=13x+4y=-\frac13x+4

Now we take the second equation.

2xy=52x-y=5

Subtract 2x2x from both sides.

2x2xy=2x+52x-2x-y=-2x+5

y=2x+5-y=-2x+5

Multiply both sides by (1)(-1).

(y)(1)=(2x+5)(1)(-y)(-1)=(-2x+5)(-1)

y=2x5y=2x-5

The line y=(1/3)x+4y=-(1/3)x+4 intersects the yy-axis at 44, and then has a slope of 1/3-1/3, so its graph is

graph of the first line

The line y=2x5y=2x-5 intersects the yy-axis at 5-5, and then has a slope of 22, so if you add its graph to the graph of y=(1/3)x+4y=-(1/3)x+4, you get

graph of both lines showing their intersection point

Looking at the intersection point, it appears as though the solution is approximately (3.75,2.75)(3.75,2.75). In actuality, the solution is (27/7,19/7)(3.86,2.71)(27/7,19/7)\approx(3.86,2.71), so our visual estimate of (3.75,2.75)(3.75,2.75) wasn’t that far off.

 
 

Get access to the complete Linear Algebra course