Unit 2, lesson 15

Systems of Equations by Graphs and Substitution

What it means for an ordered pair to solve a system of two equations, how that pair appears as the intersection of two graphs, and how substitution finds it exactly.

  • Theory part 29
  • Practice part 30
  • Linear Systems

A school play sells 50 tickets and takes in 520 dollars. Adult tickets cost 12 dollars and student tickets cost 8 dollars. One equation counts tickets and another counts money, and neither one alone tells you how many adults came. Together they pin down a single answer. That is the idea of a system, two conditions that must hold at the same time.

See also Curve Intersections and Which Curve Is Higher in Foundations for Calculus and Linear Systems in Two and Three Variables in Precalculus.

Key terms

System of equations

Definition A system of equations is a set of two or more equations in the same variables that are meant to hold at the same time. A system of two linear equations in xx and yy has the form

a1x+b1y=c1a2x+b2y=c2,\begin{aligned} a_1x + b_1y &= c_1 \\[0.4em] a_2x + b_2y &= c_2, \end{aligned}

where in each equation the coefficients of xx and yy are not both 00. The equations may also be written in other forms, such as y=2x+1y = 2x + 1.

In plain words Two conditions on the same two unknowns. You are looking for the values that satisfy both of them at once.

Example For the ticket sale, let aa be the number of adult tickets and ss the number of student tickets. The system is

a+s=5012a+8s=520.\begin{aligned} a + s &= 50 \\[0.4em] 12a + 8s &= 520. \end{aligned}

The first equation counts tickets and the second counts dollars.

Simultaneous solution

Definition A solution of a system in xx and yy is an ordered pair (x,y)(x, y) that makes every equation of the system true. The set of all such pairs is the solution set of the system. A pair that satisfies only some of the equations is not a solution. The order matters, since (x,y)(x, y) lists the value of xx first. When a question names the variables differently, follow the order it gives.

In plain words A solution has to pass every test, not just one of them. Report it with the xx-value first.

Example Consider y=2x+1y = 2x + 1 and x+y=7x + y = 7. The pair (2,5)(2, 5) is a solution, since 5=2(2)+15 = 2(2) + 1 and 2+5=72 + 5 = 7. The pair (3,4)(3, 4) satisfies x+y=7x + y = 7 but not y=2x+1y = 2x + 1, because 2(3)+1=7≠42(3) + 1 = 7 \ne 4. The pair (5,2)(5, 2) has the right numbers in the wrong order. It still satisfies x+y=7x + y = 7, but it fails y=2x+1y = 2x + 1, so it is not a solution.

Intersection of graphs

Definition The graph of an equation in xx and yy is the set of all points (x,y)(x, y) that satisfy it. A point lies on both graphs exactly when it satisfies both equations, so the solutions of a system are exactly the intersection points of the graphs. For two lines in the plane there are three possibilities. They meet in one point, they are parallel and never meet, or they are the same line.

In plain words Draw both lines. Where they cross is the answer, because that point is on both lines at once.

Example Graph y=2x+1y = 2x + 1 and y=−x+5y = -x + 5 in the Desmos graphing calculator by typing each equation on its own line. Clicking the crossing point shows its coordinates as rounded decimals, such as (1.333,3.667)(1.333, 3.667). A graph can guide you, but it cannot tell you whether 1.3331.333 is exactly 43\frac{4}{3} or only close to it. Setting the right sides equal gives 2x+1=−x+52x + 1 = -x + 5, so 3x=43x = 4, and the exact solution is

(43,113).\left(\frac{4}{3}, \frac{11}{3}\right).

Substitution

Definition Substitution solves a system in four steps.

  1. Solve one equation for one variable, for example yy in terms of xx.
  2. Replace that variable in the other equation with the expression, which leaves an equation in one variable.
  3. Solve that equation, then put the value back into the expression to get the other variable.
  4. Check the pair in both original equations.

Replacing yy by 2x+12x + 1 is allowed because, for any solution, yy and 2x+12x + 1 are the same number. In terms of the graph, it means looking only at points on the line y=2x+1y = 2x + 1 and asking which of them also lies on the other line.

In plain words When one equation tells you what yy equals, use that to get rid of yy in the other equation. One equation with one unknown is something you already know how to solve.

Example Solve the system y=2x+1y = 2x + 1 and 3x+2y=163x + 2y = 16. Replace yy in the second equation.

3x+2(2x+1)=167x+2=16x=2\begin{aligned} 3x + 2(2x + 1) &= 16 \\[0.4em] 7x + 2 &= 16 \\[0.4em] x &= 2 \end{aligned}

Then y=2(2)+1=5y = 2(2) + 1 = 5. Check both equations. The first gives 5=55 = 5 and the second gives 6+10=166 + 10 = 16. The solution is (2,5)(2, 5).

Choosing what to isolate

Definition If neither equation is already solved for a variable, solve one of them for a variable first. Any choice gives the same solution set, as long as you divide only by nonzero numbers. A variable with coefficient 11 or −1-1 is the easiest choice, since isolating it creates no fractions.

In plain words Look for a variable that stands alone. Isolating it keeps the arithmetic clean.

Example Solve x−3y=1x - 3y = 1 and 2x+5y=132x + 5y = 13. The xx in the first equation has coefficient 11, so x=3y+1x = 3y + 1. Substituting gives

2(3y+1)+5y=13,2(3y + 1) + 5y = 13,

so 11y+2=1311y + 2 = 13 and y=1y = 1. Then x=3(1)+1=4x = 3(1) + 1 = 4. The check gives 4−3=14 - 3 = 1 and 8+5=138 + 5 = 13, so the solution is (4,1)(4, 1).

Solutions in context

Definition In a word problem, each variable stands for a named quantity with units. A solution of the system is meaningful only when its values make sense for those quantities, for example whole numbers for counts. The question decides which value to report, so read the last sentence again before answering.

In plain words Say in words what each number means. A question about student tickets wants the student count, not the adult count.

Example Back to the ticket system a+s=50a + s = 50 and 12a+8s=52012a + 8s = 520. From the first equation s=50−as = 50 - a. Substituting,

12a+8(50−a)=520,12a + 8(50 - a) = 520,

so 4a+400=5204a + 400 = 520 and a=30a = 30. Then s=20s = 20. The play sold 30 adult tickets and 20 student tickets, and the money checks, since 360+160=520360 + 160 = 520.

Check yourself

  1. Which ordered pair (x,y)(x, y) is the solution of the system y=3x−2y = 3x - 2 and x+2y=17x + 2y = 17? (A) (3,7)(3, 7) (B) (7,3)(7, 3) (C) (5,6)(5, 6) (D) (1,1)(1, 1)
Show the answer

The answer is (A). Substituting gives x+2(3x−2)=17x + 2(3x - 2) = 17, so 7x=217x = 21 and x=3x = 3. Then y=9−2=7y = 9 - 2 = 7. Choice (B) lists the numbers in the wrong order. Choice (C) satisfies only the second equation, and choice (D) satisfies only the first, so neither solves the system.

  1. In the xyxy-plane, the graphs of y=2xy = 2x and x+y=4x + y = 4 intersect at the point (a,b)(a, b). What is the value of bb?
Show the answer

The answer is 83\frac{8}{3}. Substituting y=2xy = 2x gives 3x=43x = 4, so a=43a = \frac{4}{3} and

b=2⋅43=83.b = 2 \cdot \frac{4}{3} = \frac{8}{3}.

Enter 8/38/3, or a decimal such as 2.6662.666 or 2.6672.667. A rounded graph reading such as 2.6672.667 would also be accepted here, because it is 83\frac{8}{3} rounded at the last digit that fits. The algebra is what tells you the exact value.

  1. A club bought 40 notebooks for a total of 97 dollars. Some cost 2 dollars each and the rest cost 3 dollars each. How many 3-dollar notebooks did the club buy?
Show the answer

The answer is 1717. Let tt be the number of 2-dollar notebooks and hh the number of 3-dollar notebooks. Then t+h=40t + h = 40 and 2t+3h=972t + 3h = 97. With t=40−ht = 40 - h,

2(40−h)+3h=97,2(40 - h) + 3h = 97,

so 80+h=9780 + h = 97 and h=17h = 17. The other 2323 notebooks cost 2 dollars, and 46+51=9746 + 51 = 97 checks. Entering 2323 answers the wrong question.

How this lesson connects