Four cells, and four different problems
The picture is always the same and the work is not. Which two cells you are given decides whether the problem is one multiplication or a quadratic:
- Both numbers. Multiply and add. left 3, right −5 gives a product of −15 and a sum of −2. No thinking required.
- The product and one number. Divide, then add. One step each.
- The sum and one number. Subtract, then multiply.
- The product and the sum. A quadratic — and this is the one worksheets actually ask.
Only the last case has any difficulty in it, and the difficulty is real: there is no direct formula that produces the pair, because finding it is exactly as hard as solving a quadratic. That is why guessing works on easy diamonds and fails on the rest.
Why product-and-sum is a quadratic
If the two numbers are r and s with r + s = S and rs = P, then r and s are the roots of (t − r)(t − s) = t² − St + P. That is a complete derivation, and it is why the diamond and the quadratic are the same problem in two costumes.
product 12, sum 7 gives t² − 7t + 12 = 0 with discriminant 1, a perfect square, so both roots come out whole: 3 and 4.
product −24, sum 2 works the same way and produces −4 and 6. A negative product means the two numbers straddle zero — one positive, one negative — which is a useful thing to read off before doing any arithmetic at all.
When no such pair exists
product 6, sum 1 has no solution over the reals. S² − 4P = −23, which is negative, and that is not a hint that the pair is hard to spot — it is a proof that no two real numbers have that sum and that product.
The reason is a bound worth knowing: for a fixed sum S, the largest possible product is S²/4, reached when the two numbers are equal. Ask for anything larger and you are asking for something arithmetic cannot supply.
A calculator that returns a rounded near-miss here has answered a different question. The tool reports the impossibility and gives the closest achievable product for that sum, which at least says how far off the request was.
Irrational answers are still answers
product 1, sum 3 does have a real solution — S² − 4P = 5, positive — but it is not a perfect square, so the two numbers are (3 − √5)/2 and (3 + √5)/2.
Those are exact. Written as decimals they are 0.3819660113 and 2.618033989, and multiplying those decimals will not give exactly 1 — which is why the surd form is the one to keep.
In a factoring context this is the signal that the trinomial does not factor over the integers. A worksheet asking for whole numbers has no answer here, and the honest response is to say so rather than to round to the nearest pair that looks plausible.
The diamond IS the AC method
To factor ax² + bx + c by grouping you look for two numbers whose product is a×c and whose sum is b. That is a diamond, and the whole difficulty of factoring by grouping lives in it — the splitting and grouping that follow are bookkeeping.
This diamond is the AC step for any trinomial with a·c = 12 and b = 7 — x² + 7x + 12 being the simplest of them. Finding the pair is the entire difficulty of factoring by grouping; the rest is bookkeeping.
Which is why an impossible diamond and an unfactorable trinomial are the same fact. If no two integers have product ac and sum b, the trinomial does not factor over the integers, and the discriminant of the diamond is the discriminant of the trinomial. The Factoring Trinomials Calculator runs the full search with every factor pair listed.
Reading the signs before doing the arithmetic
The signs of the two cells narrow the answer before any calculation:
- Product positive, sum positive — both numbers positive.
- Product positive, sum negative — both negative. product −30, sum −1 is close to this shape.
- Product negative — one of each sign, whatever the sum does. The sum then tells you which of the two is bigger in size: a positive sum means the positive number is.
product −24, sum 2 has a negative product, so one number is negative: −4 and 6. The sum being positive says the positive one is larger in magnitude, which it is.
This is worth doing first because it halves the search space for free, and because it catches sign errors after the fact — a pair that multiplies to a negative and that you have written as two positives is wrong before you check anything else.
Sources and methodology
The diamond is a teaching device rather than a named theorem; what it rests on is the relationship between the roots and coefficients of a quadratic, stated below.
Method. Every figure on this page comes from src/lib/diamond-problem.ts, which routes the product-and-sum case through the exact quadratic solver in src/lib/algebra/quadratic.ts. The discriminant is an exact rational, so "no real solution" and "irrational solution" are decided rather than estimated — a distinction a floating-point discriminant near zero cannot always make. That engine is verified on every change against 51 hand-written assertions, including that the two returned numbers always multiply and add back to the given cells, and that a negative discriminant is reported as impossible rather than solved. The count and the per-case breakdown are published on the formula verification page.
Read the guide
The diamond is one step inside a larger method. Which Method Should You Use to Solve a Quadratic? covers when factoring by grouping is the fast route and when completing the square or the formula beats it outright.