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

Similar Problems from Web Search

Share

y=2hx-4-3x
Consider the first equation. Use the distributive property to multiply 2 by hx-2.
y-2hx=-4-3x
Subtract 2hx from both sides.
y-2hx+3x=-4
Add 3x to both sides.
y+\left(-2h+3\right)x=-4
Combine all terms containing x,y.
y=3x-2h+2
Consider the second equation. Use the distributive property to multiply -2 by h-1.
y-3x=-2h+2
Subtract 3x from both sides.
y+\left(3-2h\right)x=-4,y-3x=2-2h
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+\left(3-2h\right)x=-4
Choose one of the equations and solve it for y by isolating y on the left hand side of the equal sign.
y=\left(2h-3\right)x-4
Subtract \left(-2h+3\right)x from both sides of the equation.
\left(2h-3\right)x-4-3x=2-2h
Substitute \left(2h-3\right)x-4 for y in the other equation, y-3x=2-2h.
\left(2h-6\right)x-4=2-2h
Add \left(2h-3\right)x to -3x.
\left(2h-6\right)x=6-2h
Add 4 to both sides of the equation.
x=-1
Divide both sides by -6+2h.
y=\left(2h-3\right)\left(-1\right)-4
Substitute -1 for x in y=\left(2h-3\right)x-4. Because the resulting equation contains only one variable, you can solve for y directly.
y=3-2h-4
Multiply 2h-3 times -1.
y=-2h-1
Add -4 to -2h+3.
y=-2h-1,x=-1
The system is now solved.
y=2hx-4-3x
Consider the first equation. Use the distributive property to multiply 2 by hx-2.
y-2hx=-4-3x
Subtract 2hx from both sides.
y-2hx+3x=-4
Add 3x to both sides.
y+\left(-2h+3\right)x=-4
Combine all terms containing x,y.
y=3x-2h+2
Consider the second equation. Use the distributive property to multiply -2 by h-1.
y-3x=-2h+2
Subtract 3x from both sides.
y+\left(3-2h\right)x=-4,y-3x=2-2h
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&-2h+3\\1&-3\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{3}{-3-\left(3-2h\right)}&-\frac{3-2h}{-3-\left(3-2h\right)}\\-\frac{1}{-3-\left(3-2h\right)}&\frac{1}{-3-\left(3-2h\right)}\end{matrix}\right)\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
For the 2\times 2 matrix \left(\begin{matrix}a&b\\c&d\end{matrix}\right), the inverse matrix is \left(\begin{matrix}\frac{d}{ad-bc}&\frac{-b}{ad-bc}\\\frac{-c}{ad-bc}&\frac{a}{ad-bc}\end{matrix}\right), so the matrix equation can be rewritten as a matrix multiplication problem.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{3}{2\left(h-3\right)}&-\frac{3-2h}{2\left(h-3\right)}\\-\frac{1}{2\left(h-3\right)}&\frac{1}{2\left(h-3\right)}\end{matrix}\right)\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}\left(-\frac{3}{2\left(h-3\right)}\right)\left(-4\right)+\left(-\frac{3-2h}{2\left(h-3\right)}\right)\left(2-2h\right)\\\left(-\frac{1}{2\left(h-3\right)}\right)\left(-4\right)+\frac{1}{2\left(h-3\right)}\left(2-2h\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-2h-1\\-1\end{matrix}\right)
Do the arithmetic.
y=-2h-1,x=-1
Extract the matrix elements y and x.
y=2hx-4-3x
Consider the first equation. Use the distributive property to multiply 2 by hx-2.
y-2hx=-4-3x
Subtract 2hx from both sides.
y-2hx+3x=-4
Add 3x to both sides.
y+\left(-2h+3\right)x=-4
Combine all terms containing x,y.
y=3x-2h+2
Consider the second equation. Use the distributive property to multiply -2 by h-1.
y-3x=-2h+2
Subtract 3x from both sides.
y+\left(3-2h\right)x=-4,y-3x=2-2h
In order to solve by elimination, coefficients of one of the variables must be the same in both equations so that the variable will cancel out when one equation is subtracted from the other.
y-y+\left(3-2h\right)x+3x=-4+2h-2
Subtract y-3x=2-2h from y+\left(3-2h\right)x=-4 by subtracting like terms on each side of the equal sign.
\left(3-2h\right)x+3x=-4+2h-2
Add y to -y. Terms y and -y cancel out, leaving an equation with only one variable that can be solved.
\left(6-2h\right)x=-4+2h-2
Add \left(-2h+3\right)x to 3x.
\left(6-2h\right)x=2h-6
Add -4 to -2+2h.
x=-1
Divide both sides by -2h+6.
y-3\left(-1\right)=2-2h
Substitute -1 for x in y-3x=2-2h. Because the resulting equation contains only one variable, you can solve for y directly.
y+3=2-2h
Multiply -3 times -1.
y=-2h-1
Subtract 3 from both sides of the equation.
y=-2h-1,x=-1
The system is now solved.
y=2hx-4-3x
Consider the first equation. Use the distributive property to multiply 2 by hx-2.
y-2hx=-4-3x
Subtract 2hx from both sides.
y-2hx+3x=-4
Add 3x to both sides.
y+\left(-2h+3\right)x=-4
Combine all terms containing x,y.
y=3x-2h+2
Consider the second equation. Use the distributive property to multiply -2 by h-1.
y-3x=-2h+2
Subtract 3x from both sides.
y+\left(3-2h\right)x=-4,y-3x=2-2h
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+\left(3-2h\right)x=-4
Choose one of the equations and solve it for y by isolating y on the left hand side of the equal sign.
y=\left(2h-3\right)x-4
Subtract \left(-2h+3\right)x from both sides of the equation.
\left(2h-3\right)x-4-3x=2-2h
Substitute \left(2h-3\right)x-4 for y in the other equation, y-3x=2-2h.
\left(2h-6\right)x-4=2-2h
Add \left(2h-3\right)x to -3x.
\left(2h-6\right)x=6-2h
Add 4 to both sides of the equation.
x=-1
Divide both sides by -6+2h.
y=\left(2h-3\right)\left(-1\right)-4
Substitute -1 for x in y=\left(2h-3\right)x-4. Because the resulting equation contains only one variable, you can solve for y directly.
y=3-2h-4
Multiply 2h-3 times -1.
y=-2h-1
Add -4 to -2h+3.
y=-2h-1,x=-1
The system is now solved.
y=2hx-4-3x
Consider the first equation. Use the distributive property to multiply 2 by hx-2.
y-2hx=-4-3x
Subtract 2hx from both sides.
y-2hx+3x=-4
Add 3x to both sides.
y+\left(-2h+3\right)x=-4
Combine all terms containing x,y.
y=3x-2h+2
Consider the second equation. Use the distributive property to multiply -2 by h-1.
y-3x=-2h+2
Subtract 3x from both sides.
y+\left(3-2h\right)x=-4,y-3x=2-2h
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&-2h+3\\1&-3\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&3-2h\\1&-3\end{matrix}\right))\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{3}{-3-\left(3-2h\right)}&-\frac{3-2h}{-3-\left(3-2h\right)}\\-\frac{1}{-3-\left(3-2h\right)}&\frac{1}{-3-\left(3-2h\right)}\end{matrix}\right)\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
For the 2\times 2 matrix \left(\begin{matrix}a&b\\c&d\end{matrix}\right), the inverse matrix is \left(\begin{matrix}\frac{d}{ad-bc}&\frac{-b}{ad-bc}\\\frac{-c}{ad-bc}&\frac{a}{ad-bc}\end{matrix}\right), so the matrix equation can be rewritten as a matrix multiplication problem.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{3}{2\left(h-3\right)}&-\frac{3-2h}{2\left(h-3\right)}\\-\frac{1}{2\left(h-3\right)}&\frac{1}{2\left(h-3\right)}\end{matrix}\right)\left(\begin{matrix}-4\\2-2h\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}\left(-\frac{3}{2\left(h-3\right)}\right)\left(-4\right)+\left(-\frac{3-2h}{2\left(h-3\right)}\right)\left(2-2h\right)\\\left(-\frac{1}{2\left(h-3\right)}\right)\left(-4\right)+\frac{1}{2\left(h-3\right)}\left(2-2h\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-2h-1\\-1\end{matrix}\right)
Do the arithmetic.
y=-2h-1,x=-1
Extract the matrix elements y and x.
y=2hx-4-3x
Consider the first equation. Use the distributive property to multiply 2 by hx-2.
y-2hx=-4-3x
Subtract 2hx from both sides.
y-2hx+3x=-4
Add 3x to both sides.
y+\left(-2h+3\right)x=-4
Combine all terms containing x,y.
y=3x-2h+2
Consider the second equation. Use the distributive property to multiply -2 by h-1.
y-3x=-2h+2
Subtract 3x from both sides.
y+\left(3-2h\right)x=-4,y-3x=2-2h
In order to solve by elimination, coefficients of one of the variables must be the same in both equations so that the variable will cancel out when one equation is subtracted from the other.
y-y+\left(3-2h\right)x+3x=-4+2h-2
Subtract y-3x=2-2h from y+\left(3-2h\right)x=-4 by subtracting like terms on each side of the equal sign.
\left(3-2h\right)x+3x=-4+2h-2
Add y to -y. Terms y and -y cancel out, leaving an equation with only one variable that can be solved.
\left(6-2h\right)x=-4+2h-2
Add \left(-2h+3\right)x to 3x.
\left(6-2h\right)x=2h-6
Add -4 to -2+2h.
x=-1
Divide both sides by -2h+6.
y-3\left(-1\right)=2-2h
Substitute -1 for x in y-3x=2-2h. Because the resulting equation contains only one variable, you can solve for y directly.
y+3=2-2h
Multiply -3 times -1.
y=-2h-1
Subtract 3 from both sides of the equation.
y=-2h-1,x=-1
The system is now solved.