Worked Example · Simultaneous Equations · Paper 1 · 5 marks

Sum and Sum-of-Squares of Two Numbers

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 19 August 2026

Given the sum and the sum of squares of two numbers, the elegant route uses the identity (x+y)2=x2+2xy+y2(x+y)^2 = x^2 + 2xy + y^2 to get the product xyxy. Knowing the sum and product, the numbers are the roots of a quadratic.

Two numbers have a sum of 1515, and the sum of their squares is 125125. Find the two numbers. [5]

The working

Let the numbers be xx and yy, so x+y=15x + y = 15 and x2+y2=125x^2 + y^2 = 125.

Step 1, square the sum and use the identity: (x+y)2=x2+2xy+y2    152=125+2xy(M1)(x + y)^2 = x^2 + 2xy + y^2 \implies 15^2 = 125 + 2xy \quad \text{(M1)}

Step 2, solve for the product xyxy: 225=125+2xy    2xy=100    xy=50(A1)225 = 125 + 2xy \implies 2xy = 100 \implies xy = 50 \quad \text{(A1)}

Step 3, form the quadratic with sum 1515 and product 5050 (roots xx, yy): t215t+50=0(M1)t^2 - 15t + 50 = 0 \quad \text{(M1)}

Step 4, factorise and solve: (t5)(t10)=0    t=5 or t=10(t - 5)(t - 10) = 0 \implies t = 5 \ \text{or} \ t = 10

So the two numbers are 5 and 10\boxed{5 \text{ and } 10}. (A1, A1)

Check: 5+10=155 + 10 = 15 and 25+100=12525 + 100 = 125. ✓

Where the marks are won and lost

  • The identity (x+y)2=x2+2xy+y2(x+y)^2 = x^2 + 2xy + y^2 is the key: it links the two given facts to the product.
  • Once you have sum =15= 15 and product =50= 50, use t2(sum)t+(product)=0t^2 - (\text{sum})t + (\text{product}) = 0.
  • A quick check in both original conditions confirms the pair.

Common mistakes

  • Writing (x+y)2=x2+y2(x+y)^2 = x^2 + y^2 (forgetting the 2xy2xy).
  • Direct substitution y=15xy = 15 - x into x2+y2=125x^2 + y^2 = 125 also works but is heavier and error-prone.
  • Sign slip in the quadratic: it is t215t+50t^2 - 15t + 50, with product positive.

Topic home: Simultaneous Equations pillar. More: Worked examples.

Common questions

How do you solve for two numbers given their sum and sum of squares?
Use the identity (x+y)² = x² + 2xy + y² to find the product xy, then build a quadratic whose roots are the two numbers. The sum gives x+y directly, and squaring it and subtracting the given sum of squares isolates 2xy. Once you know the sum and product, the numbers are the roots of t² − (sum)t + (product) = 0. This is faster and cleaner than substituting one equation into the other, and it avoids the heavy algebra that direct substitution would create.

Keep going

See the teaching work on your own child. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.