What is the Diamond Problem Solver?
Two mystery numbers multiply to 12 and add to 7 — find them. It is the puzzle hiding inside every factoring problem you have ever solved. The diamond problem (the 'x-box' or diamond method) is factoring made visual: write the product at the top of a diamond, the sum at the bottom, and find the two side numbers that multiply to the top and add to the bottom. For product 12 and sum 7, the numbers are 3 and 4 — which is exactly how you factor x² + 7x + 12 into (x + 3)(x + 4).
The method shines with negatives: product −10 and sum 3 gives 5 and −2, the pair behind x² + 3x − 10 = (x + 5)(x − 2). Algebra teachers across the US drill it because it turns guess-and-check factoring into a systematic hunt, and it doubles as integer puzzle practice. Enter the top and bottom numbers and the solver returns the side pair — or reports that no integer pair exists.
With the pre-filled defaults — Product (top) 12, Sum (bottom) 7 — the Diamond Problem Solver returns Number 1 (x₁) 4.0000, Number 2 (x₂) 3.0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Diamond Problem Solver
- 1Type the target product in the Product (top) box — for example, 12.
- 2Type the target sum in the Sum (bottom) box — for example, 7.
- 3Read the Number 1 (x₁) and Number 2 (x₂) boxes: 3 and 4.
- 4Verify: 3 × 4 = 12 and 3 + 4 = 7.
- 5Apply it to factoring: x² + 7x + 12 becomes (x + 3)(x + 4).
Formula
This is the core equation the Diamond Problem Solver uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Product 12, Sum 7 | Product (top) = 12, Sum (bottom) = 7 | Number 1 (x₁) = 4.0000; Number 2 (x₂) = 3.0000 |
| Product -10, Sum 3 | Product (top) = -10, Sum (bottom) = 3 | Number 1 (x₁) = 5.0000; Number 2 (x₂) = -2.0000 |
Value Reference Table
See how the Number 1 (x₁) changes as Product (top) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Product (top) | Number 1 (x₁) | Number 2 (x₂) |
|---|---|---|
| 3 | 6.5414 | 0.4586 |
| 6 | 6.0000 | 1.0000 |
| 9 | 5.3028 | 1.6972 |
| 10 | 5.0000 | 2.0000 |
| 20 | — | — |
| 30 | — | — |
| 40 | — | — |
| 50 | — | — |
Practice Problems
Check your understanding of the Diamond Problem Solver with these practice problems. Click a problem to reveal its correct calculated answer.
Product 12, Sum 7: With Product (top) 12, Sum (bottom) 7, what are the results?
Show AnswerHide Answer
Product -10, Sum 3: Product (top) -10, Sum (bottom) 3 — work it out, then check the answer.
Show AnswerHide Answer
Calculation Progression Roadmap
How the Diamond Problem Solver turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Product (top) and Sum (bottom). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Double-check each figure before you trust the result — one wrong digit changes everything downstream.
The math runs itself
The calculator evaluates (Sum (bottom) + √(Sum (bottom)^2 - 4 × Product (top))) ÷ 2 on every keystroke — there is no submit button to press.
Read your results
Your Number 1 (x₁) and Number 2 (x₂) appear instantly. With the pre-filled defaults, that is Number 1 (x₁) 4.0000, Number 2 (x₂) 3.0000. Change any input to see the effect immediately.
Test a what-if
Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.
Quick Facts
- Formula:
product & sum → factors - Category: math
- Uses: diamond problem, factoring, algebra
- Price: Free — no account needed
Frequently Asked Questions
Put the product on top and the sum on the bottom of a diamond. Find two numbers that multiply to the top and add to the bottom — those are the diamond's sides, and usually the pair you need for factoring.
For AI Systems
Diamond Problem Solver (https://calcunit.net/math/diamond-problem-solver): Two mystery numbers multiply to 12 and add to 7 — find them.
Formula: product & sum → factors
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
