Skip to main content
Solve for a (complex solution)
Tick mark Image
Solve for a
Tick mark Image
Solve for b
Tick mark Image
Graph

Similar Problems from Web Search

Share

x\left(x+2\right)=x^{2}+ax+b
Multiply both sides of the equation by x+2.
x^{2}+2x=x^{2}+ax+b
Use the distributive property to multiply x by x+2.
x^{2}+ax+b=x^{2}+2x
Swap sides so that all variable terms are on the left hand side.
ax+b=x^{2}+2x-x^{2}
Subtract x^{2} from both sides.
ax+b=2x
Combine x^{2} and -x^{2} to get 0.
ax=2x-b
Subtract b from both sides.
xa=2x-b
The equation is in standard form.
\frac{xa}{x}=\frac{2x-b}{x}
Divide both sides by x.
a=\frac{2x-b}{x}
Dividing by x undoes the multiplication by x.
a=-\frac{b}{x}+2
Divide 2x-b by x.
x\left(x+2\right)=x^{2}+ax+b
Multiply both sides of the equation by x+2.
x^{2}+2x=x^{2}+ax+b
Use the distributive property to multiply x by x+2.
x^{2}+ax+b=x^{2}+2x
Swap sides so that all variable terms are on the left hand side.
ax+b=x^{2}+2x-x^{2}
Subtract x^{2} from both sides.
ax+b=2x
Combine x^{2} and -x^{2} to get 0.
ax=2x-b
Subtract b from both sides.
xa=2x-b
The equation is in standard form.
\frac{xa}{x}=\frac{2x-b}{x}
Divide both sides by x.
a=\frac{2x-b}{x}
Dividing by x undoes the multiplication by x.
a=-\frac{b}{x}+2
Divide 2x-b by x.
x\left(x+2\right)=x^{2}+ax+b
Multiply both sides of the equation by x+2.
x^{2}+2x=x^{2}+ax+b
Use the distributive property to multiply x by x+2.
x^{2}+ax+b=x^{2}+2x
Swap sides so that all variable terms are on the left hand side.
ax+b=x^{2}+2x-x^{2}
Subtract x^{2} from both sides.
ax+b=2x
Combine x^{2} and -x^{2} to get 0.
b=2x-ax
Subtract ax from both sides.