Math Core

Module 1.2 · Algebra

Systems and substitution tricks

On the AMC, a system of equations is rarely meant to be solved by grinding through substitution. The equations are usually symmetric or patterned, and one well-chosen move (adding everything, multiplying everything, or switching to new variables) cracks the whole thing. This module collects the moves that come up most.

Add everything

When each equation leaves out a different variable, or the variables appear in a cyclic pattern, add all the equations. Each variable shows up the same number of times, so you get the total x+y+zx + y + z in one step. Then subtract each original equation to peel off one variable at a time.

Worked example: Pairwise sums

Suppose x+y=10x + y = 10, y+z=14y + z = 14 and x+z=16x + z = 16. Find xyzxyz.

Adding all three: 2(x+y+z)=402(x + y + z) = 40, so x+y+z=20x + y + z = 20. Subtract each equation from this total: z=20−10=10z = 20 - 10 = 10, x=20−14=6x = 20 - 14 = 6, y=20−16=4y = 20 - 16 = 4. So xyz=6⋅4⋅10=240xyz = 6 \cdot 4 \cdot 10 = 240.

Multiply everything

When the equations give products of variables, multiply them all together. For xyxy, yzyz and xzxz, the product is (xyz)2(xyz)^2.

Worked example: Pairwise products

Positive numbers x,y,zx, y, z satisfy xy=6xy = 6, yz=15yz = 15 and xz=10xz = 10. Find x+y+zx + y + z.

Multiplying gives (xyz)2=6⋅15⋅10=900(xyz)^2 = 6 \cdot 15 \cdot 10 = 900, so xyz=30xyz = 30 (positive). Then z=xyzxy=5z = \dfrac{xyz}{xy} = 5, x=3015=2x = \dfrac{30}{15} = 2 and y=3010=3y = \dfrac{30}{10} = 3. So x+y+z=10x + y + z = 10.

Switch to sum and product

For a symmetric system in two variables, let

s=x+y,p=xy.s = x + y, \qquad p = xy.

Every symmetric expression can be written in ss and pp (the same identities as Vieta's formulas): x2+y2=s2−2px^2 + y^2 = s^2 - 2p and x3+y3=s3−3psx^3 + y^3 = s^3 - 3ps. Often you never need xx and yy individually. If you do, they are the roots of t2−st+p=0t^2 - st + p = 0, and they are real exactly when s2≥4ps^2 \ge 4p.

Look for the structure first

Before substituting, ask:

  • Is the system symmetric or cyclic? Add the equations.
  • Are the equations products? Multiply them.
  • Is it symmetric in two variables? Use s=x+ys = x + y and p=xyp = xy.
  • Is there an xyxy term with xx and yy terms and you want integers? Factor by adding a constant.

Worked example: Sum and product

Real numbers satisfy x+y=5x + y = 5 and xy=3xy = 3. Find x2+y2x^2 + y^2 and x3+y3x^3 + y^3.

With s=5s = 5 and p=3p = 3: x2+y2=25−6=19x^2 + y^2 = 25 - 6 = 19 and x3+y3=125−3⋅3⋅5=80x^3 + y^3 = 125 - 3 \cdot 3 \cdot 5 = 80.

Factoring with an added constant

An equation like xy+2x+3y=30xy + 2x + 3y = 30 looks unfactorable, but it is almost (x+3)(y+2)=xy+2x+3y+6(x + 3)(y + 2) = xy + 2x + 3y + 6. Add 66 to both sides:

(x+3)(y+2)=36.(x + 3)(y + 2) = 36.

For integer solutions, now just list factor pairs. This trick (often called Simon's Favorite Factoring Trick) turns axy+bx+cyaxy + bx + cy into a product.

Worked example: Counting integer solutions

How many ordered pairs of positive integers (x,y)(x, y) satisfy xy+2x+3y=30xy + 2x + 3y = 30?

From above, (x+3)(y+2)=36(x + 3)(y + 2) = 36 with x+3≥4x + 3 \ge 4 and y+2≥3y + 2 \ge 3. The factor pairs (x+3,y+2)(x + 3, y + 2) of 3636 that meet those bounds are (4,9),(6,6),(9,4),(12,3)(4, 9), (6, 6), (9, 4), (12, 3). These give (x,y)=(1,7),(3,4),(6,2),(9,1)(x, y) = (1, 7), (3, 4), (6, 2), (9, 1): 4 pairs. Check (3,4)(3, 4): 12+6+12=3012 + 6 + 12 = 30.

Common mistake

After a multiply-everything step, you take a square root. Decide the sign from the problem ("positive numbers") or keep both signs. Also, in factoring problems, remember negative factor pairs, then check which ones break the bounds on the variables.

Practice

Practice 1

Numbers a,b,ca, b, c satisfy a+b=7a + b = 7, b+c=11b + c = 11 and a+c=12a + c = 12. What is abcabc?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Real numbers xx and yy satisfy x+y=6x + y = 6 and x2+y2=20x^2 + y^2 = 20. What is x3+y3x^3 + y^3?

Practice 3

Positive numbers a,b,ca, b, c satisfy ab=12ab = 12, bc=20bc = 20 and ca=15ca = 15. What is a+b+ca + b + c?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Real numbers x,y,zx, y, z satisfy x+2y=7x + 2y = 7, y+2z=11y + 2z = 11 and z+2x=9z + 2x = 9. What is x+y+zx + y + z?

Practice 5

Real numbers xx and yy satisfy x+y=4x + y = 4 and x3+y3=28x^3 + y^3 = 28. What is x2+y2x^2 + y^2?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

How many ordered pairs of positive integers (x,y)(x, y) satisfy 1x+1y=16\dfrac{1}{x} + \dfrac{1}{y} = \dfrac{1}{6}?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Real numbers xx and yy satisfy x+y+xy=11x + y + xy = 11 and x2y+xy2=30x^2 y + x y^2 = 30. What is the largest possible value of x2+y2x^2 + y^2?

Practice 8

Real numbers aa and bb satisfy a2+ab=20a^2 + ab = 20 and b2+ab=44b^2 + ab = 44. What is ∣a−b∣|a - b|?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 9

Real numbers x,y,zx, y, z satisfy x+y+z=3x + y + z = 3, x2+y2+z2=9x^2 + y^2 + z^2 = 9 and x3+y3+z3=24x^3 + y^3 + z^3 = 24. What is xyzxyz?

Real contest practice