Solving systems of linear equations | Lesson (article) | Khan Academy (2024)

What are systems of linear equations?

A system of linear equations is usually a set of two linear equations with two variables.

  • x+y=5 and 2xy=1 are both linear equations with two variables.
  • When considered together, they form a system of linear equations.

A linear equation with two variables has an infinite number of solutions (for example, consider how (0,5), (1,4), (2,3), etc. are all solutions to the equation x+y=5). However, systems of two linear equations with two variables can have a single solution that satisfies both solutions.

  • (2,3) is the only solution to both x+y=5 and 2xy=1.

In this lesson, we'll:

  1. Look at two ways to solve systems of linear equations algebraically: substitution and elimination.
  2. Look at systems of linear equations graphically to help us understand when systems of linear equations have one solution, no solutions, or infinitely many solutions.
  3. Explore algebraic methods of identifying the number of solutions that exist for systems with two linear equations.

You can learn anything. Let's do this!

How do I solve systems of linear equations by substitution?

Systems of equations with substitution

Khan Academy video wrapper

Systems of equations with substitution: 2y=x+7 & x=y-4

See video transcript

How does substitution work?

Our goal when solving a system of equations is to reduce two equations with two variables down to a single equation with one variable. Since each equation in the system has two variables, one way to reduce the number of variables in an equation is to substitute an expression for a variable.

Consider the following example:

x=2yx+y=3

In a system of equations, both equations are simultaneously true. In other words, since the first equation tells us that x is equal to 2y, the x in the second equation is also equal to 2y. Therefore, we can plug in 2y as a substitute for x in the second equation:

x+y=3(2y)+y=33y=3

From here, we can solve the equation 3y=3, then use the value of y to calculate x.

First, let's solve for y:

3y=33y3=33y=1

Now, we can substitute 1 for y into either equation in the system. Using x=2y:

x=2yx=2(1)x=2

The solution (x,y) to the system is (2,1).

To solve a system of equations using substitution:

  1. Isolate one of the two variables in one of the equations.
  2. Substitute the expression that is equal to the isolated variable from Step 1 into the other equation. This should result in a linear equation with only one variable.
  3. Solve the linear equation for the remaining variable.
  4. Use the solution of Step 3 to calculate the value of the other variable in the system by using one of the original equations.

Let's look at some more examples!

y=3x14x+y=8

What is the solution (x,y) to the system of equations above?

Since y is already written in terms of x in the first equation, let's start there! We can plug the expression 3x1 into the second equation as a substitute for y, and solve for x. Then, we can use x to calculate y.

For y=3x1:

4x+y=84x+(3x1)=84x+3x1=87x1=87x1+1=8+17x=77x7=77x=1

Since x=1, we can plug 1 into the first equation for x to calculate y:

y=3x1=3(1)1=31=4

Since x=1 and y=4, (x,y)=(1,4).

(1,4) is the solution to the system of equations above.

x2y=27x3y=19

What is the solution (x,y) to the system of equations above?

Neither equation contains an isolated variable. However, we can isolate x in the first equation by adding 2y to both sides of the equation:

x2y=2x2y+2y=2+2yx=2y2

Now, we can plug the expression 2y2 into the second equation as a substitute for x, and solve for y. Then, we can use y to calculate x.

For x=2y2:

7x3y=197(2y2)3y=1914y143y=1911y14=1911y14+14=19+1411y=3311y11=3311y=3

Since y=3, we can plug 3 into the equation x=2y2 to calculate x:

x=2y2=2(3)2=62=4

Since x=4 and y=3, (x,y)=(4,3).

(4,3) is the solution to the system of equations above.

Try it!

TRY: Follow the steps for substitution

y=2x4x+y=2

In the system of equations above, the first equation tells us that y is equal to 2x. This means we can replace the y in the second equation with

to reduce the equation to a linear equation with a single variable.

Next, we can solve the equation 3x+2=2 for x. The value of x is

.

Finally, since y=2x, we can substitute the value of x into the equation to calculate y. The value of y is

.

How do I solve systems of linear equations by elimination?

System of equations with elimination

Khan Academy video wrapper

Systems of equations with elimination: x+2y=6 & 4x-2y=14

See video transcript

How does elimination work?

Our goal when solving a system of equations is to reduce two equations with two variables down to a single equation with one variable. Since each equation in the system has two variables, one way to reduce the number of variables is to add or subtract the two equations in the system to cancel out, or eliminate, one of the variables.

Consider the following system of equations:

3xy=72x+y=8

Recall that when we're solving equations, we can perform the same operations to both sides of the equation and maintain the equality. Since the second equation tells us that 2x+y is equal to 8, we can add 2x+y to the left side of the first equation, add 8 to the right side of the first equation, and maintain the equality:

3xy=7+2x+y=85x+0=15

Notice that the y-terms cancel out and are eliminated as a result of adding the two equations. When solving systems of equations using elimination, we're always looking for opportunities to cancel out terms.

  • If two terms have the opposite coefficients like in the system above (y and y), we can add the two equations to cancel the terms.
  • If two terms have the same coefficients, we can subtract the two equations to cancel the terms.

From here, we can solve the equation 5x=15, then use the value of x to calculate y.

First, let's solve for x:

5x=155x5=155x=3

Now, we can substitute 3 for x into either equation in the system. Using 2x+y=8:

2x+y=82(3)+y=86+y=86+y6=86y=2

The solution (x,y) to the system is (3,2).

Sometimes, the system of equations does not have coefficients that readily cancel out. Consider this example:

3xy=7x+2y=21

In this case, we need to find ways to match a pair of coefficients by rewriting one of the equations. There are two ways to do this.

Option 1: We can set the system up for eliminating the y-terms through addition by multiplying both sides of the first equation by 2.

(3xy)2=726x2y=14

From here, we can add the second equation to eliminate the y-terms:

6x2y=14+x+2y=217x+0=35

First, let's solve for x:

7x=35x=5

Now, we can plug 5 in for x in one of the original equations to solve for y:

3xy=73(5)y=715y=7y=8

The solution (x,y) to the system is (5,8).

Option 2: We can also set the system up for eliminating the x-terms through subtraction by multiplying both sides of the second equation by 3.

(x+2y)3=2133x+6y=63

From here, we can subtract the equation from the first equation to eliminate the x-terms:

3xy=7(3x+6y=63)07y=56

First, let's solve for y:

7y=567y7=567y=8

Now, we can substitute 8 for y into either equation in the system. Using 3xy=7:

3xy=73x8=73x8+8=7+83x=153x3=153x=5

The solution (x,y) to the system is (5,8).

To solve a system of equations using elimination:

  1. Identify a pair of terms in the system that have both the same variable and coefficients with the same magnitude (ex: 2x and 2x, or 3y and 3y). If necessary, rewrite one or both equations so that a pair of terms have both the same variable and coefficients with the same magnitude.
  2. Add or subtract the two equations in the system to eliminate the terms identified in Step 1. This should result in a linear equation with only one variable.
  3. Solve the linear equation to obtain a value for the variable.
  4. Now that you have figured out the value of one variable, plug that value into either equation to find the value of the other variable.

Let's look at some more examples!

3x+2y=102x2y=5

What is the solution (x,y) to the system of equations above?

The first equation contains the term 2y, and the second equation contains the term 2y. We can cancel the y-terms by adding the two equations. Then, we can solve for x. Finally, we can use the value of x to calculate y.

Adding each side of the two equations gives us:

3x+2y=10+2x2y=55x+0=15

Now, we can solve for x:

5x=155x5=155x=3

Since x=3, we can plug 3 into either equation in the system to calculate y. Using 3x+2y=10:

3x+2y=103(3)+2y=109+2y=109+2y9=1092y=12y2=12y=12

Since x=3 and y=12, (x,y)=(3,12).

(3,12) is the solution to the system of equations above.

3x+2y=104xy=6

What is the solution (x,y) to the system of equations above?

At first glance, the two equations in the system do not have any terms that can be readily eliminated. However, notice that the first equation contains the term +2y and the second equation contains the term y. If we multiply both sides of the second equation by 2, we get:

4xy=62(4xy)=268x2y=12

The system of equation is now:

3x+2y=108x2y=12

From here, we can cancel the y-terms by adding the two equations, solve for x, and use the value of x to calculate y.

3x+2y=10+8x2y=1211x+0=22

Now, we can solve for x:

11x=2211x11=2211x=2

Since x=2, we can plug 2 into either equation in the system to calculate y. Using 3x+2y=10:

3x+2y=103(2)+2y=106+2y=106+2y6=1062y=42y2=42y=2

Since x=2 and y=2, (x,y)=(2,2).

(2,2) is the solution to the system of equations above.

Try it!

TRY: spot the mistake for elimination

5x+3y=343x+3y=30

The solution steps to the system of equations above are shown in order below. Select the earliest mistake in the solution steps, if any.

Choose 1 answer:

Choose 1 answer:

  • Add the two equations to eliminate the y-terms, giving us 8x=64.

  • Solving 8x=64 for x gives us x=8.

  • Substituting 8 for x into 5x+3y=34 and solving for y gives us y=2.

  • Since the (8,2) satisfies the first equation, it is the solution to the system of equations.

  • No mistake

When do I use substitution, and when do I use elimination?

It's up to you!

All systems of linear equations can be solved with either substitution or elimination. On test day, you should use whichever method you're more comfortable with.

Substitution is sometimes easier when:

  • A variable is already isolated: x=4y+1
  • You can isolate a variable in a single step: 3x+y=7

Elimination is sometimes easier when:

  • Both equations contain an identical term: 2x+3y=11 and 2x+7y=23
  • The equations contain opposite terms: 2x+2y=7 and 5x2y=14
  • An equation contains a term that is an integer multiple of a term in the other equation: 3x+4y=26 and 5x+2y=20.

Try it!

TRY: Identify multiple ways to solve a system of equations

7x+y=203x=y

Consider the system of equations above. Which of the following can be used to solve the system of equations, and how?

Choose 2 answers:

Choose 2 answers:

  • Substitution: we can plug 3x into the first equation as a substitute for y and solve for x.

  • Substitution: we can plug y into the first equation as a substitute for 7x and solve for y.

  • Elimination: we can rewrite the second equation as 3x+y=0 and subtract the two equations to eliminate the y-terms and solve for x.

  • Elimination: we can rewrite the second equation as 3xy=0 and add the two equations to eliminate the y-terms and solve for x.

TRY: Identify multiple ways to solve a system of equations

3x+5y=172x10y=38

Consider the system of equations above. Which of the following can be used to solve the system of equations, and how?

Choose 2 answers:

Choose 2 answers:

  • Substitution: we can isolate 3x and plug in 175y as a substitute for x in the second equation to solve for y.

  • Substitution: we can isolate 5y, and rewrite the second equation as 2x2(5y)=38. Then, we can plug 173x in as a substitute for 5y in the second equation to solve for x.

  • Elimination: we can multiply both sides of the first equation by 2, then add the two equations to eliminate the y-terms and solve for x.

  • Elimination: we can multiply both sides of the second equation by 3, then subtract the two equations to eliminate the x-terms and solve for y.

Self-reflection

Even though we can solve the systems of equations above using either substitution or elimination, ask yourself these questions:

  • For each system, which solution method came to mind first?
  • How comfortable am I with isolating variables?
  • How comfortable am I with multiplying both sides of an equation by a constant?
  • How comfortable am I with adding and subtracting two linear equations?
  • How comfortable am I with making more complex substitutions, e.g., substituting for 5y instead of y?
  • How comfortable am I with finding least common multiples and using them to set up eliminations?

Your answers to these questions should inform which method you use.

What is the relationship between lines and the number of solutions to systems of linear equations?

Linear systems by graphing

Khan Academy video wrapper

Number of solutions to a system of equations

See video transcript

Intersections and number of solutions

A linear equation can be represented by a line in the xy-plane. The solution to a system of linear equations is the point at which the lines representing the linear equations intersect.

Two lines in the xy-plane can intersect once, never intersect, or completely overlap. Each of these scenarios corresponds to a different number of solutions to the system of equations the two lines represent.

  • If the two lines have two different slopes, then they will intersect once. Therefore, the system of equations has exactly one solution.
  • If the two lines have the same slope but different y-intercepts, then they are parallel lines, and they will never intersect. Therefore, we can say that the system of equations has no solutions.
  • If the two lines have the same slope and the same y-intercept, then they will completely overlap—they are the same line!. When this is the case, we say that the system has infinitely many solutions.

Try it!

TRY: Determine the number of solutions from a graph

The two lines in the xy-plane above represent a system of linear equations. Because the two lines have

, they

, and the system they represent has

.

How do I determine the number of solutions for systems of linear equations?

How to determine the number of solutions to a system of equations algebraically

Khan Academy video wrapper

Number of solutions to a system of equations algebraically

See video transcript

How do I identify the number of solutions?

In the previous section, we covered the graphical method of determining the number of solutions to a system of linear equations. However, when we don't have the aid of a graph, we can determine the number of solutions algebraically.

One way to do it is to rewrite both equations in slope-intercept form, y=mx+b. This allows us to compare the slopes of the lines, m, and their y-intercepts, b, to determine the number of solutions.

  • If the two equations have different m-values, then the system has one solution.
  • If the two equations have the same m-value but different b-values, then the system has no solution.
  • If the two equations have both the same m-value and the same b-value, then the system has infinitely many solutions.

To determine the number of solutions a system of linear equations has using slope-intercept form, y=mx+b:

  1. Rewrite both equations in slope-intercept form.
  2. Compare the m- and b-values of the equations to determine the number of solutions.

Let's look at an example!

13y=x+2y=3x+6

How many solutions does the system of equations above have?

We can rewrite the first equation in slope-intercept form by multiplying both sides of the equation by 3:

313y=3(x+2)y=3x+6

Since the first equation is equivalent to the second equation, the two equations describe the same line in the xy-plane! The two lines completely overlap and share an infinite number of points together.

The system of equations above has infinitely many solutions.

Try it!

TRY: Identify the number of solutions in slope-intercept form

y=3x1y=3x1

In the system of equations above, the two equations have

and

. Therefore, the system has

.

Your turn!

Practice: Solve a system of linear equations using substitution

y=x23x+5y=30

If (x,y) is a solution to the system of equations above, what is the value of x ?

Choose 1 answer:

Choose 1 answer:

  • 3

  • 5

  • 8

  • 15

Practice: Solve a system of linear equations using elimination

4x+2y=22xy=9

The system of equations above has solution (x,y). What is the value of y ?

Practice: Solve a system of linear equations

2xy=123x7y=7

Which ordered pair (x,y) satisfies the system of equations shown above?

Choose 1 answer:

Choose 1 answer:

  • (0,1)

  • (4,4)

  • (7,2)

  • (10,8)

Practice: Determine the condition for no solution

ax3y=21bx3y=11

The system of equations above has no solutions. If a and b are positive constants, what is the value of ab ?

Things to remember

To determine the number of solutions a system of linear equations has using slope-intercept form, y=mx+b:

  1. Rewrite both equations in slope-intercept form.
  2. Compare the m- and b-values of the equations to determine the number of solutions.

  3. If the two equations have different m-values, then the system has one solution.
  4. If the two equations have the same m-value but different b-values, then the system has no solution.
  5. If the two equations have both the same m-value and the same b-value, then the system has infinitely many solutions.
Solving systems of linear equations | Lesson (article) | Khan Academy (2024)

References

Top Articles
Pear and Blue Cheese Crostini Appetizer recipe.
Delish Recipes for Cooking for One
Joi Databas
Le Blanc Los Cabos - Los Cabos – Le Blanc Spa Resort Adults-Only All Inclusive
Craigslist Vans
35105N Sap 5 50 W Nit
Vanadium Conan Exiles
Bill Devane Obituary
Becky Hudson Free
Marion County Wv Tax Maps
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis - NFL
How To Cut Eelgrass Grounded
Connect U Of M Dearborn
Char-Em Isd
Harem In Another World F95
8664751911
Csi Tv Series Wiki
Foxy Brown 2025
Milanka Kudel Telegram
Walgreens Alma School And Dynamite
Lola Bunny R34 Gif
Xsensual Portland
The Tower and Major Arcana Tarot Combinations: What They Mean - Eclectic Witchcraft
Drug Test 35765N
Suspiciouswetspot
Xxn Abbreviation List 2017 Pdf
Truvy Back Office Login
Anesthesia Simstat Answers
Superhot Free Online Game Unblocked
Co10 Unr
Airg Com Chat
Ugly Daughter From Grown Ups
The Menu Showtimes Near Amc Classic Pekin 14
Japanese Pokémon Cards vs English Pokémon Cards
Sun Haven Pufferfish
Lake Dunson Robertson Funeral Home Lagrange Georgia Obituary
Craigs List Jonesboro Ar
Mydocbill.com/Mr
Bitchinbubba Face
Search All of Craigslist: A Comprehensive Guide - First Republic Craigslist
About My Father Showtimes Near Amc Rockford 16
Cnp Tx Venmo
Craigslist Odessa Midland Texas
The Attleboro Sun Chronicle Obituaries
Guided Practice Activities 5B-1 Answers
Best Conjuration Spell In Skyrim
Iupui Course Search
Tweedehands camper te koop - camper occasion kopen
Dcuo Wiki
Inloggen bij AH Sam - E-Overheid
All Obituaries | Roberts Funeral Home | Logan OH funeral home and cremation
Craigslist Centre Alabama
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5781

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.