Question 134·Medium·Equivalent Expressions
If the equation above is true for all real numbers , what is the value of ?
(Express the answer as an integer)
For polynomial identity questions, first rewrite any products (like ) by fully expanding and combining like terms so both sides are in standard form. Then use the fact that two polynomials equal for all must have matching coefficients on each power of , which gives you simple equations to solve for the unknowns. Work systematically—start with the constant term (often the easiest), then the -coefficient, and finally compute whatever combination (like ) the problem asks for, paying close attention to negative signs and the exact wording of the question.
Hints
Rewrite the left side
Try expanding using the distributive property (FOIL) so that it looks like a standard quadratic expression .
Use the fact that the equation is true for all x
If two polynomial expressions in are equal for every real number , what must be true about the coefficients of , , and the constant terms on each side?
Solve step by step for a and b
First, compare the constant terms on both sides to find . Then, use the -coefficients to find . After you know both and , compute their sum.
Desmos Guide
Enter both expressions with sliders
In Desmos, type y1 = (x - 3)(x + a) and y2 = x^2 + b*x - 21. When prompted, create sliders for a and b so you can adjust their values.
Adjust sliders so the graphs match
Move the sliders for a and b until the two parabolas overlap perfectly (you should see only one parabola because and are identical for all visible ). Note the values of a and b that make the graphs coincide.
Compute a + b in Desmos
Using the values of a and b you found, type an expression like a + b into Desmos (with those numbers substituted if needed) and read off the numerical result; that value is what the question is asking for.
Step-by-step Explanation
Expand the left-hand side
Start by expanding using distribution (FOIL):
- Multiply by each term in : and .
- Multiply by each term in : and .
- Add all these terms together:
Combine like terms ( are both -terms):
So the left-hand side becomes . The equation is now
Match corresponding coefficients
Because these two quadratic expressions are equal for all real numbers , the coefficients of the matching powers of must be the same on both sides.
Compare the constant terms (the terms without ):
- Left side constant:
- Right side constant:
Set them equal:
Solve for :
Find b and then compute a + b
Now compare the coefficients of :
- Left side -coefficient:
- Right side -coefficient:
So
Substitute :
Finally, add and :
So the value of is 11.