Expand (x + p)(x + q) into x squared plus (p+q)x plus pq, and verify that both forms match at your test value of x.
Equivalent Expression Calculator
Expand two brackets into their equivalent quadratic and prove the two forms agree at a test value.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Equivalent Expression Result
Calculated locally in your browser
—
Name
—
First bracket constant p in (x + p)
—
Second bracket constant q in (x + q)
—
Test value of x (verification)
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Two expressions are equivalent when they match for every value of the variable. Expanding (x plus 2)(x plus 5) gives x squared plus 7x plus 10: the middle coefficient is 2 plus 5 and the constant is 2 times 5. At x equals 3 both forms give 40, confirming the expansion.
- Middle coefficient = p + q
- Constant = p x q
- One mismatching test value disproves equivalence
Expansion pattern
Reference values for this calculator.
| Brackets | Equivalent expansion |
|---|---|
| (x+1)(x+2) | x^2 + 3x + 2 |
| (x+3)(x+4) | x^2 + 7x + 12 |
| (x-2)(x+5) | x^2 + 3x - 10 |
| (x-3)(x-3) | x^2 - 6x + 9 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Honestly scoped: expands a product of two linear brackets into its equivalent quadratic and proves equivalence numerically, rather than claiming to parse arbitrary typed algebra.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Positive constants
p = 2, q = 5, test x = 3
| Calculation | Steps |
|---|---|
| Middle = 2 + 5 = 7; constant = 2 x 5 = 10; expansion x^2 + 7x + 10; check: (5)(8) = 40 and 9 + 21 + 10 = 40. | Equivalent expansion x^2 + 7x + 10. |
Result
Example 2
One negative
p = -1, q = 4, test x = 2
| Calculation | Steps |
|---|---|
| Middle = 3; constant = -4; expansion x^2 + 3x - 4; check: (1)(6) = 6 and 4 + 6 - 4 = 6. | Equivalent expansion x^2 + 3x - 4. |
Result
Example 3
Double zero
p = 0, q = 0, test x = 9
| Calculation | Steps |
|---|---|
| Expansion is simply x^2; check 81 = 81. | Equivalent expansion x^2. |
Result
How to use this calculator
Step 1
Enter the values for this calculation in the labelled fields.
Step 2
Check the units and any mode selector before calculating.
Step 3
Read the headline result, then the step-by-step working and detail figures.
Step 4
Try a second set of values to see how the result responds.
Frequently asked questions
What does equivalent expression mean?
Two expressions are equivalent if they give the same value for every value of the variable. (x+2)(x+5) and x^2 + 7x + 10 are equivalent — equal at x = 3 (40) and at every other x too.
How can I test equivalence quickly?
Evaluate both forms at one or two test values. Different values prove non-equivalence; matching values at several points strongly indicate equivalence for quadratics.
What is the FOIL rule behind this?
First, Outer, Inner, Last: multiply the pairs and collect like terms — the outer and inner products combine into the (p + q)x middle term.
Can brackets have minus signs?
Yes — enter a negative constant, for example p = -2 for (x - 2). The pattern (p + q) and pq handles the signs automatically.
Does this parse expressions I type?
No. It is honestly scoped to the two-bracket expansion (x + p)(x + q), the most common equivalence task in school algebra; it does not parse free-typed algebra.
About this calculator
This calculator produces the equivalent expanded form of a bracket product (x + p)(x + q) and verifies the equivalence numerically, so students can both get the answer and see why it counts as equivalent.
Equivalence is stronger than equality at a point. Two expressions can agree at one x by coincidence, so the expansion rule — not a single test value — is what guarantees agreement everywhere; the test value is included as a concrete demonstration and error trap.
The pattern is memorable: the middle coefficient is always the sum of the two constants and the final constant is always their product. Reading it backwards is exactly how quadratics are factorised, which is why this one pattern carries so much of school algebra.
Use it for algebra homework on expanding brackets, for checking factorisation in reverse, and for understanding why two differently written answers on a mark scheme both earn the mark.
How to calculate it yourself
Step 1
Multiply the first terms: x times x gives x squared.
Step 2
Add the two constants for the middle coefficient: (p + q)x.
Step 3
Multiply the constants for the final term: pq.
Step 4
Write x^2 + (p+q)x + pq and test both forms at one value of x.
Real-life examples
Checking a factorisation answer
A student factorised x^2 + 7x + 10 as (x + 2)(x + 5) and wants certainty before submitting.
Expanding the brackets returns x^2 + 7x + 10 exactly, and both forms give 40 at x = 3.
The factorisation is confirmed correct.
Reverse-engineering a worksheet
A parent helping with homework sees the answer x^2 + 3x - 4 and wants the bracket form explained.
Middle 3 and constant -4 fit p = -1 and q = 4, giving (x - 1)(x + 4), which expands back to the printed answer.
The parent can now show the working instead of just the answer.
Ideas & use cases
- Factorising practice: pick the expanded form first, hide the brackets, and use the tool only to mark your attempt.
- Sign drills: mix one negative constant to practise how (p + q) and pq handle signs differently.
- Coincidence hunting: find two non-equivalent expressions that agree at x = 0 to see why one test value is not a proof.
Limitations & sources
- Scoped to (x + p)(x + q) expansions; it does not parse arbitrary typed expressions or handle cubic and rational equivalence.
Sources: OpenStax College Algebra, polynomial expansion (FOIL)
