Ten problems on linear systems and the matrices that organize them: a 2×2 system by elimination, ticket sales as a system, a system with no solution and one with infinitely many, a 3×3 system by row reduction, the parabola through three points, matrix sums and products in both orders, a 2×2 determinant and inverse used to solve a system, a 3×3 determinant and Cramer's rule, a line meeting a circle, and every way to blend three coffees to a target price, with worked solutions and the mistakes of multiplying only one side of an equation, reading 0 = 0 as no solution, multiplying matrices entry by entry, leaving the determinant out of an inverse, and substituting back into the squared equation.
Before you start
A system of equations asks for the values that satisfy several conditions at once: the ticket prices and the total sales, the three points a curve must pass through, the cost and the weight of a blend. Elimination solves small systems directly. Writing the coefficients in a matrix turns the same steps into arithmetic on rows, and matrices then become objects that can be added, multiplied and inverted. These ten problems cover both, along with systems that have no solution or infinitely many and one that is not linear. The mistakes at the end start with a slip in the first step of elimination. The Gaussian elimination set takes row reduction further.
Elimination. Multiply one or both equations by constants so that one variable has opposite coefficients, then add the equations. Substitution: solve one equation for a variable and replace it in the others.
Three outcomes. A linear system has exactly one solution, no solution (elimination ends in a false statement such as ),0=17), or infinitely many (it ends in ,0=0, and the solutions are written with a free variable).
Augmented matrix. The coefficients and the right-hand sides in one array, one row per equation. Three row operations keep the solutions unchanged: swap two rows, multiply a row by a nonzero number, add a multiple of one row to another. Use them to make zeros below the diagonal, then solve from the bottom row up (back-substitution).
Matrix arithmetic. Matrices of the same size add entry by entry, and a number multiplies every entry. In a product ,AB, the entry in row i and column j is row i of A times column j of :B: multiply matching entries and add. In general .AB=BA.
Determinant and inverse, .2×2. For ,A=(acbd),.detA=ad−bc. If ,detA=0, then ,A−1=ad−bc1(d−c−ba), and the system Ax=b has the solution .x=A−1b. The inverse undoes :A:,A−1A=I, where I=(1001) is the identity matrix, which leaves every column unchanged.
Determinant, .3×3. Expand along the first row: each entry times the 2×2 determinant left when its row and column are deleted, with signs ,+,,−,.+.
Cramer's rule. If ,D=detA=0, then ,x=DDx, where Dx is the determinant of A with its x-column replaced by the right-hand sides; the same for the other variables.
A theater sold 350 tickets for one performance. Adult tickets cost $12 and child tickets ,$7, and ticket sales came to .$3450. How many tickets of each kind were sold?
··
Solve each system, or explain why it has no solution: (a) 2x−3y=6 and ,−4x+6y=5, (b) 2x−3y=6 and .−4x+6y=−12.
··
Solve by row reduction on the augmented matrix: ,x+y+z=6,,2x−y+3z=9,.−x+2y+2z=9.
··
Find the parabola y=ax2+bx+c that passes through ,(1,4),(2,9) and .(−1,6).
··
Let A=(23−14) and .B=(1−250). Find ,A+B,,3A−2B,AB and .BA.
··
Let .A=(4235). Find detA and ,A−1, and use the inverse to solve ,4x+3y=10,.2x+5y=12.
··
(a) Find the determinant of .A=21313−2−121. (b) Use Cramer's rule to solve ,2x+y−z=1,,x+3y+2z=13,.3x−2y+z=2.
··
Find every point where the line y=x+1 meets the circle .x2+y2=25.
···
A café blends three coffees that cost ,$8,$10 and $14 per kg to make 100 kg of a blend worth $11 per kg. (a) Write the amounts of the $8 and $10 coffees in terms of the amount z of the $14 coffee. (b) What values of z are possible? (c) Find the blend that uses equal amounts of the two cheaper coffees.
Answers
(x,y)=(4,2)
200 adult tickets and 150 child tickets
(a) No solution. (b) Infinitely many: (t,32t−6) for every real t
(a) x=2z−50 and .y=150−3z. (b) .25≤z≤50. (c) 30 kg, 30 kg and 40 kg
Worked solutions
Problem 1
Solve by elimination: 3x+2y=16 and .5x−4y=12.
.6x+4y=32.Multiply the first equation by ,2, on both sides, so that the y terms are 4y and .−4y.
,(6x+4y)+(5x−4y)=32+12, so 11x=44 and .x=4.Add the second equation. The y terms cancel.
,3(4)+2y=16, so 2y=4 and .y=2.Substitute into either original equation.
(x,y)=(4,2)Steps 2 and 3. Check in the equation not used in step 3: .5(4)−4(2)=12. The two lines cross at this point.2465xy(4,2)3x+2y=165x−4y=12
Problem 2
A theater sold 350 tickets for one performance. Adult tickets cost $12 and child tickets ,$7, and ticket sales came to .$3450. How many tickets of each kind were sold?
Let a be the number of adult tickets and c the number of child tickets: a+c=350 and .12a+7c=3450.One equation counts tickets, the other counts dollars.
.7a+7c=2450.Multiply the first equation by 7 to match the c terms.
,5a=1000, so .a=200.Subtract step 2 from the money equation: 12a−7a=5a and .3450−2450=1000.
.c=350−200=150.From the first equation.
200 adult tickets and 150 child ticketsSteps 3 and 4. Check: .12(200)+7(150)=2400+1050=3450.
Problem 3
Solve each system, or explain why it has no solution: (a) 2x−3y=6 and ,−4x+6y=5, (b) 2x−3y=6 and .−4x+6y=−12.
(a) Multiply the first equation by :2:.4x−6y=12.To cancel the x terms.
Add the second: .0=17.Both variables cancel, and what is left is false.
No pair (x,y) satisfies both equations.The lines y=32x−2 and y=32x+65 have the same slope and different intercepts: they are parallel.
(b) The same steps give 4x−6y=12 and then .0=0.Both variables cancel, and what is left is true for every x and .y.
The second equation is −2 times the first, so it carries no new information. Every point of the line 2x−3y=6 is a solution.The two equations describe the same line.
Let :x=t: then .y=32t−6.Solve the one equation for y in terms of a free variable.
(a) No solution. (b) Infinitely many: (t,32t−6) for every real tSteps 3 and 6. For example t=3 gives (3,0) and t=0 gives .(0,−2).
Problem 4
Solve by row reduction on the augmented matrix: ,x+y+z=6,,2x−y+3z=9,.−x+2y+2z=9.
12−11−12132699The augmented matrix: one row per equation, with the right-hand sides after the bar.
R2→R2−2R1 and :R3→R3+R1:1001−331136−315Clear the first column below the top row. For row 2: ,−1−2=−3,,3−2=1,.9−12=−3.
:R3→R3+R2:1001−301146−312Clear the second column below the diagonal.
,4z=12, so .z=3.The last row, read as an equation.
,−3y+3=−3, so .y=2.The second row, with .z=3.
,x+2+3=6, so .x=1.The first row.
(x,y,z)=(1,2,3)Steps 4 to 6. Check in the original equations: ,1+2+3=6,2−2+9=9 and .−1+4+6=9.
Problem 5
Find the parabola y=ax2+bx+c that passes through ,(1,4),(2,9) and .(−1,6).
,a+b+c=4,,4a+2b+c=9,.a−b+c=6.Substitute each point. The unknowns are the coefficients, and the equations are linear in them.
Subtract the third from the first: ,2b=−2, so .b=−1.a and c cancel together, which is quicker here than row reduction.
a+c=5 and .4a+c=11.Put b=−1 into the first two equations.
,3a=6, so ,a=2, and .c=3.Subtract.
y=2x2−x+3Steps 2 and 4. Check all three points: ,2−1+3=4,8−2+3=9 and .2+1+3=6.−2−112510xy(1,4)(2,9)(−1,6)
Problem 6
Let A=(23−14) and .B=(1−250). Find ,A+B,,3A−2B,AB and .BA.
.3A−2B=(69−312)−(2−4100)=(413−1312).Scale each matrix, then subtract: .9−(−4)=13.
.AB=(2(1)+(−1)(−2)3(1)+4(−2)2(5)+(−1)(0)3(5)+4(0))=(4−51015).Each entry is a row of A times a column of .B.A
2
−1
3
4
⋅B
1
5
−2
0
=AB
4
10
−5
15
.BA=(1(2)+5(3)−2(2)+0(3)1(−1)+5(4)−2(−1)+0(4))=(17−4192).Now the rows come from B and the columns from .A.
,A+B=(3144),,3A−2B=(413−1312),,AB=(4−51015),BA=(17−4192)Steps 1 to 4. :AB=BA: the order of a matrix product matters.
Problem 7
Let .A=(4235). Find detA and ,A−1, and use the inverse to solve ,4x+3y=10,.2x+5y=12.
.detA=(4)(5)−(3)(2)=14..ad−bc. It is not ,0, so the inverse exists.
.A−1=141(5−2−34).Swap the diagonal entries, negate the other two, and divide by the determinant.
The system is ,A(xy)=(1012), so .(xy)=A−1(1012).Multiply both sides on the left by .A−1.
.(xy)=141(5(10)−3(12)−2(10)+4(12))=141(1428)=(12).A matrix times a column.
,detA=14,,A−1=141(5−2−34), and (x,y)=(1,2)Steps 1, 2 and 4. Check: 4+6=10 and .2+10=12.
Problem 8
(a) Find the determinant of .A=21313−2−121. (b) Use Cramer's rule to solve ,2x+y−z=1,,x+3y+2z=13,.3x−2y+z=2.
(a) .D=2det(3−221)−1det(1321)+(−1)det(133−2).Expand along the first row with signs ,+,,−,.+. Each small matrix is what remains when that entry's row and column are deleted.
.D=2(3+4)−1(1−6)−1(−2−9)=14+5+11=30.Each 2×2 determinant is .ad−bc.
(b) .Dx=det113213−2−121=1(3+4)−1(13−4)−1(−26−6)=7−9+32=30.Replace the first column by the right-hand sides.
.Dy=det2131132−121=2(13−4)−1(1−6)−1(2−39)=18+5+37=60.Replace the second column.
.Dz=det21313−21132=2(6+26)−1(2−39)+1(−2−9)=64+37−11=90.Replace the third column.
,x=3030=1,,y=3060=2,.z=3090=3.Each variable is its own determinant over .D.
(a) .detA=30. (b) (x,y,z)=(1,2,3)Steps 2 and 6. Check: ,2+2−3=1,1+6+6=13 and .3−4+3=2.
Problem 9
Find every point where the line y=x+1 meets the circle .x2+y2=25.
.x2+(x+1)2=25.Substitute the line into the circle. Substitute the line into the circle. Adding multiples of the equations cannot cancel a variable here, because y is squared in one equation and not in the other.
,2x2+2x+1=25, so .x2+x−12=0.Expand, collect, and divide by .2.
,(x+4)(x−3)=0, so x=−4 or .x=3.Factor.
x=3 gives ;y=4;x=−4 gives .y=−3.Use the line ,y=x+1, which gives one y for each .x.
(3,4) and (−4,−3)Step 4. Check on the circle: 9+16=25 and .16+9=25.−6−4−2246−6−4−2246xy(3,4)(−4,−3)
Problem 10
A café blends three coffees that cost ,$8,$10 and $14 per kg to make 100 kg of a blend worth $11 per kg. (a) Write the amounts of the $8 and $10 coffees in terms of the amount z of the $14 coffee. (b) What values of z are possible? (c) Find the blend that uses equal amounts of the two cheaper coffees.
(a) Let ,x,,y,z be the kg of the ,$8,$10 and $14 coffees: x+y+z=100 and .8x+10y+14z=1100.One equation for weight and one for cost: 100 kg at $11 is .$1100.
,2y+6z=300, so .y=150−3z.Subtract 8 times the first equation from the second. With two equations and three unknowns, one variable stays free.
.x=100−y−z=100−(150−3z)−z=2z−50.From the first equation.
(b) x≥0 needs ,2z−50≥0, so .z≥25.y≥0 needs ,150−3z≥0, so .z≤50.An amount of coffee cannot be negative. This is what limits the free variable.
(c) 2z−50=150−3z gives ,5z=200, so z=40 and .x=y=30.Set .x=y.
(a) x=2z−50 and .y=150−3z. (b) .25≤z≤50. (c) 30 kg, 30 kg and 40 kgSteps 2 to 5. Check (c): 30+30+40=100 and .240+300+560=1100. At the ends, z=25 uses none of the $8 coffee and z=50 uses none of the .$10.
Where this goes wrong
1. Multiplying only one side of an equation
Elimination starts by scaling an equation.
3x+2y=16 and 5x−4y=12Right so far: Problem 1.
Multiply the first equation by :2:6x+4y=16The right side must be doubled as well: .6x+4y=32. Scaling only one side changes the line.
Add: ,11x=28, so x=1128It follows from step 2, so it inherits the error. With ,32,11x=44 and .x=4. Checking x=1128 in both original equations would give two different values of .y.
2. Reading 0 = 0 as no solution
Both special cases end with every variable gone.
2x−3y=6 and ;−4x+6y=−12; doubling the first and adding gives 0=0Right so far: Problem 3(b).
“The variables have disappeared, so there is nothing to solve for.”The half-truth that causes the mistake: the variables also disappear when there is no solution, but then the statement left is false, such as .0=17.
No solution0=0 is true, so the second equation adds no condition beyond the first. There are infinitely many solutions: every point on ,2x−3y=6, for example ,(3,0), which satisfies both.
3. Multiplying matrices entry by entry
Matrices add entry by entry.
A=(23−14) and ;B=(1−250); find ABRight so far: Problem 6.
“Multiply matching entries, as for a sum.”The habit that causes the mistake: a product combines a whole row of A with a whole column of .B.
AB=(2−6−50)Row times column: the top-left entry is ,2(1)+(−1)(−2)=4, and .AB=(4−51015). Only the row-by-column product turns a system into .Ax=b.
4. Leaving the determinant out of an inverse
The 2×2 inverse has two parts: rearranged entries, and a division.
;A=(4235); solve Ax=(1012) with the inverseRight so far: Problem 7.
A−1=(5−2−34)This matrix times A is ,(140014), which is 14 times the identity. Divide by .detA=14.
x=(5(10)−3(12)−2(10)+4(12))=(1428)It follows from step 2 and is 14 times too large: ,4(14)+3(28)=140, not .10. The solution is .(1,2).
5. Substituting back into the squared equation
After solving for ,x, either equation will produce .y.
y=x+1 and x2+y2=25 give x=3 or x=−4Right so far: Problem 9, step 3.
“Put x=3 into the circle: ,y2=16, so .y=±4. Put :x=−4:,y2=9, so .y=±3.”The slip that causes the mistake: the circle has two points for each ,x, one above the axis and one below, and only one of them is on the line.
Four intersections: ,(3,4),,(3,−4),,(−4,3),(−4,−3)A line meets a circle at most twice. (3,−4) fails ,y=x+1, since ,−4=4, and so does .(−4,3). Substitute back into the linear equation, or test every candidate in both equations.
More at eulerpad.app. This is one of 102 free practice sets with worked solutions at eulerpad.app/practice, alongside guides to the topics behind them.
EulerPad, the app, reads your handwritten math on iPad, iPhone and Android and checks it line by line. It's free to start.
This set is also Chapter 23 of Precalculus: Functions, Logarithms and Trigonometry, a 250-problem workbook with worked solutions: eulerpad.app/workbooks