Chalk−1

Math · College algebra · Worked example

Solve a system of equations by substitution

Solve the system y=2⁢x−1 and 3⁢x+2⁢y=12.

y=2⁢x−1,3⁢x+2⁢y=12

Try one — Chalk checks each line

Write both equations

Put each equation of the system on its own row, so every later row can be checked against both.

3⁢x+2⁢y=12

Substitute for y

The first equation already gives y, and the two equations hold at the same point. Replace y in the second equation with 2⁢x−1, in parentheses so the 2 multiplies both terms.

3⁢x+2⁢(2⁢x−1)=12

Simplify

Distribute the 2 to get 4⁢x−2, then combine 3⁢x and 4⁢x.

7⁢x−2=12

Solve for x

Add 2 to both sides to get 7⁢x=14, then divide by 7.

x=2

Find y

Put x=2 into y=2⁢x−1, the equation that already gives y.

y=3

Check in both original equations

2⁢(2)−1=3 and 3⁢(2)+2⁢(3)=12, so (2,3) satisfies both.

2⁢(2)−1=33⁢(2)+2⁢(3)=12

Result

x=2 and y=3.

Your turn

1. One like the example

Solve x=3⁢y+2 and 2⁢x−5⁢y=7.

Show the answer and explanation

x=11 and y=3.

Substitute x=3⁢y+2 into the second equation to get 2⁢(3⁢y+2)−5⁢y=7, so y+4=7 and y=3. Then x=3⁢(3)+2=11. Check that 2⁢(11)−5⁢(3)=7.

x=3⁢y+22⁢x−5⁢y=72⁢(3⁢y+2)−5⁢y=7y+4=7y=3x=11

2. A variation

Solve 4⁢x−y=7 and 2⁢x+3⁢y=21. No variable stands alone yet.

Show the answer and explanation

x=3 and y=5.

Solve the first equation for y, which has coefficient −1, to get y=4⁢x−7. Substituting gives 2⁢x+3⁢(4⁢x−7)=21, so 14⁢x=42 and x=3. Then y=4⁢(3)−7=5. Check that 6+15=21.

4⁢x−y=72⁢x+3⁢y=21y=4⁢x−72⁢x+3⁢(4⁢x−7)=2114⁢x=42x=3y=5

3. Somewhere new

How many liters of a 20⁢% acid solution and a 50⁢% acid solution make 12 L of a 30⁢% solution?

Show the answer and explanation

8 L of the 20⁢% solution and 4 L of the 50⁢% solution.

With x liters of 20⁢% and y liters of 50⁢%, the volumes give x+y=12 and the acid gives 0.2⁢x+0.5⁢y =0.3⋅12 =3.6. Substitute y=12−x to get −0.3⁢x+6=3.6, so x=8 and y=4. The acid checks, 1.6+2=3.6 L.

x+y=120.2⁢x+0.5⁢y=3.60.2⁢x+0.5⁢(12−x)=3.6−0.3⁢x+6=3.6x=8y=4

Keep exploring

In Matrices & linear systems the same system is the rows −2, 1, −1 and 3, 2, 12. Row reduction reaches the same x=2 and y=3 without choosing a variable to isolate.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check each step in Math Solve it in Matrices & linear systems Study the 6 key terms Open worked example on a board Equation rules in Math Reference

Your existing work stays on this device. Examples open as editable copies.