Skip to main content
Solve for x, y
Tick mark Image
Solve for x, y (complex solution)
Tick mark Image
Graph

Similar Problems from Web Search

Share

y-\left(-m\right)x=b
Consider the first equation. Subtract \left(-m\right)x from both sides.
y+mx=b
Multiply -1 and -1 to get 1.
x^{2}+2y^{2}=2
Consider the second equation. Multiply both sides of the equation by 2.
y+mx=b,x^{2}+2y^{2}=2
To solve a pair of equations using substitution, first solve one of the equations for one of the variables. Then substitute the result for that variable in the other equation.
y+mx=b
Solve y+mx=b for y by isolating y on the left hand side of the equal sign.
y=\left(-m\right)x+b
Subtract mx from both sides of the equation.
x^{2}+2\left(\left(-m\right)x+b\right)^{2}=2
Substitute \left(-m\right)x+b for y in the other equation, x^{2}+2y^{2}=2.
x^{2}+2\left(\left(-m\right)^{2}x^{2}+2\left(-m\right)bx+b^{2}\right)=2
Square \left(-m\right)x+b.
x^{2}+2\left(-m\right)^{2}x^{2}+4\left(-m\right)bx+2b^{2}=2
Multiply 2 times \left(-m\right)^{2}x^{2}+2\left(-m\right)bx+b^{2}.
\left(2\left(-m\right)^{2}+1\right)x^{2}+4\left(-m\right)bx+2b^{2}=2
Add x^{2} to 2\left(-m\right)^{2}x^{2}.
\left(2\left(-m\right)^{2}+1\right)x^{2}+4\left(-m\right)bx+2b^{2}-2=0
Subtract 2 from both sides of the equation.
x=\frac{-4\left(-m\right)b±\sqrt{\left(4\left(-m\right)b\right)^{2}-4\left(2\left(-m\right)^{2}+1\right)\left(2b^{2}-2\right)}}{2\left(2\left(-m\right)^{2}+1\right)}
This equation is in standard form: ax^{2}+bx+c=0. Substitute 1+2\left(-m\right)^{2} for a, 2\times 2\left(-m\right)b for b, and 2b^{2}-2 for c in the quadratic formula, \frac{-b±\sqrt{b^{2}-4ac}}{2a}.
x=\frac{-4\left(-m\right)b±\sqrt{16b^{2}m^{2}-4\left(2\left(-m\right)^{2}+1\right)\left(2b^{2}-2\right)}}{2\left(2\left(-m\right)^{2}+1\right)}
Square 2\times 2\left(-m\right)b.
x=\frac{-4\left(-m\right)b±\sqrt{16b^{2}m^{2}+\left(-8m^{2}-4\right)\left(2b^{2}-2\right)}}{2\left(2\left(-m\right)^{2}+1\right)}
Multiply -4 times 1+2\left(-m\right)^{2}.
x=\frac{-4\left(-m\right)b±\sqrt{16b^{2}m^{2}-8\left(b^{2}-1\right)\left(2m^{2}+1\right)}}{2\left(2\left(-m\right)^{2}+1\right)}
Multiply -4-8m^{2} times 2b^{2}-2.
x=\frac{-4\left(-m\right)b±\sqrt{16m^{2}-8b^{2}+8}}{2\left(2\left(-m\right)^{2}+1\right)}
Add 16m^{2}b^{2} to -8\left(1+2m^{2}\right)\left(b^{2}-1\right).
x=\frac{-4\left(-m\right)b±2\sqrt{4m^{2}-2b^{2}+2}}{2\left(2\left(-m\right)^{2}+1\right)}
Take the square root of 16m^{2}-8b^{2}+8.
x=\frac{4bm±2\sqrt{4m^{2}-2b^{2}+2}}{4m^{2}+2}
Multiply 2 times 1+2\left(-m\right)^{2}.
x=\frac{4bm+2\sqrt{4m^{2}-2b^{2}+2}}{4m^{2}+2}
Now solve the equation x=\frac{4bm±2\sqrt{4m^{2}-2b^{2}+2}}{4m^{2}+2} when ± is plus. Add 4mb to 2\sqrt{4m^{2}-2b^{2}+2}.
x=\frac{\sqrt{2}\left(\sqrt{2}bm+\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}
Divide 4mb+2\sqrt{4m^{2}-2b^{2}+2} by 2+4m^{2}.
x=\frac{4bm-2\sqrt{4m^{2}-2b^{2}+2}}{4m^{2}+2}
Now solve the equation x=\frac{4bm±2\sqrt{4m^{2}-2b^{2}+2}}{4m^{2}+2} when ± is minus. Subtract 2\sqrt{4m^{2}-2b^{2}+2} from 4mb.
x=\frac{\sqrt{2}\left(\sqrt{2}bm-\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}
Divide 4mb-2\sqrt{4m^{2}-2b^{2}+2} by 2+4m^{2}.
y=\left(-m\right)\times \frac{\sqrt{2}\left(\sqrt{2}bm+\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}+b
There are two solutions for x: \frac{\sqrt{2}\left(\sqrt{2}mb+\sqrt{2m^{2}-b^{2}+1}\right)}{1+2m^{2}} and \frac{\sqrt{2}\left(\sqrt{2}mb-\sqrt{2m^{2}-b^{2}+1}\right)}{1+2m^{2}}. Substitute \frac{\sqrt{2}\left(\sqrt{2}mb+\sqrt{2m^{2}-b^{2}+1}\right)}{1+2m^{2}} for x in the equation y=\left(-m\right)x+b to find the corresponding solution for y that satisfies both equations.
y=\frac{\sqrt{2}\left(\sqrt{2}bm+\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}\left(-m\right)+b
Multiply -m times \frac{\sqrt{2}\left(\sqrt{2}mb+\sqrt{2m^{2}-b^{2}+1}\right)}{1+2m^{2}}.
y=\left(-m\right)\times \frac{\sqrt{2}\left(\sqrt{2}bm-\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}+b
Now substitute \frac{\sqrt{2}\left(\sqrt{2}mb-\sqrt{2m^{2}-b^{2}+1}\right)}{1+2m^{2}} for x in the equation y=\left(-m\right)x+b and solve to find the corresponding solution for y that satisfies both equations.
y=\frac{\sqrt{2}\left(\sqrt{2}bm-\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}\left(-m\right)+b
Multiply -m times \frac{\sqrt{2}\left(\sqrt{2}mb-\sqrt{2m^{2}-b^{2}+1}\right)}{1+2m^{2}}.
y=\frac{\sqrt{2}\left(\sqrt{2}bm+\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}\left(-m\right)+b,x=\frac{\sqrt{2}\left(\sqrt{2}bm+\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}\text{ or }y=\frac{\sqrt{2}\left(\sqrt{2}bm-\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}\left(-m\right)+b,x=\frac{\sqrt{2}\left(\sqrt{2}bm-\sqrt{2m^{2}-b^{2}+1}\right)}{2m^{2}+1}
The system is now solved.