Skip to main content
Solve for x, y
Tick mark Image
Graph

Similar Problems from Web Search

Share

y\left(x+2\right)=\left(y+5\right)\left(x+7\right)
Consider the first equation. Variable y cannot be equal to any of the values -5,0 since division by zero is not defined. Multiply both sides of the equation by y\left(y+5\right), the least common multiple of y+5,y.
yx+2y=\left(y+5\right)\left(x+7\right)
Use the distributive property to multiply y by x+2.
yx+2y=yx+7y+5x+35
Use the distributive property to multiply y+5 by x+7.
yx+2y-yx=7y+5x+35
Subtract yx from both sides.
2y=7y+5x+35
Combine yx and -yx to get 0.
2y-7y=5x+35
Subtract 7y from both sides.
-5y=5x+35
Combine 2y and -7y to get -5y.
y=-\frac{1}{5}\left(5x+35\right)
Divide both sides by -5.
y=-x-7
Multiply -\frac{1}{5} times 35+5x.
-4\left(-x-7\right)+2x=-1
Substitute -x-7 for y in the other equation, -4y+2x=-1.
4x+28+2x=-1
Multiply -4 times -x-7.
6x+28=-1
Add 4x to 2x.
6x=-29
Subtract 28 from both sides of the equation.
x=-\frac{29}{6}
Divide both sides by 6.
y=-\left(-\frac{29}{6}\right)-7
Substitute -\frac{29}{6} for x in y=-x-7. Because the resulting equation contains only one variable, you can solve for y directly.
y=\frac{29}{6}-7
Multiply -1 times -\frac{29}{6}.
y=-\frac{13}{6}
Add -7 to \frac{29}{6}.
y=-\frac{13}{6},x=-\frac{29}{6}
The system is now solved.
y\left(x+2\right)=\left(y+5\right)\left(x+7\right)
Consider the first equation. Variable y cannot be equal to any of the values -5,0 since division by zero is not defined. Multiply both sides of the equation by y\left(y+5\right), the least common multiple of y+5,y.
yx+2y=\left(y+5\right)\left(x+7\right)
Use the distributive property to multiply y by x+2.
yx+2y=yx+7y+5x+35
Use the distributive property to multiply y+5 by x+7.
yx+2y-yx=7y+5x+35
Subtract yx from both sides.
2y=7y+5x+35
Combine yx and -yx to get 0.
2y-7y=5x+35
Subtract 7y from both sides.
-5y=5x+35
Combine 2y and -7y to get -5y.
-5y-5x=35
Subtract 5x from both sides.
-5y-5x=35,-4y+2x=-1
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}-5&-5\\-4&2\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}35\\-1\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}-5&-5\\-4&2\end{matrix}\right))\left(\begin{matrix}-5&-5\\-4&2\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}-5&-5\\-4&2\end{matrix}\right))\left(\begin{matrix}35\\-1\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}-5&-5\\-4&2\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}-5&-5\\-4&2\end{matrix}\right))\left(\begin{matrix}35\\-1\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}-5&-5\\-4&2\end{matrix}\right))\left(\begin{matrix}35\\-1\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{2}{-5\times 2-\left(-5\left(-4\right)\right)}&-\frac{-5}{-5\times 2-\left(-5\left(-4\right)\right)}\\-\frac{-4}{-5\times 2-\left(-5\left(-4\right)\right)}&-\frac{5}{-5\times 2-\left(-5\left(-4\right)\right)}\end{matrix}\right)\left(\begin{matrix}35\\-1\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{1}{15}&-\frac{1}{6}\\-\frac{2}{15}&\frac{1}{6}\end{matrix}\right)\left(\begin{matrix}35\\-1\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{15}\times 35-\frac{1}{6}\left(-1\right)\\-\frac{2}{15}\times 35+\frac{1}{6}\left(-1\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{13}{6}\\-\frac{29}{6}\end{matrix}\right)
Do the arithmetic.
y=-\frac{13}{6},x=-\frac{29}{6}
Extract the matrix elements y and x.
y\left(x+2\right)=\left(y+5\right)\left(x+7\right)
Consider the first equation. Variable y cannot be equal to any of the values -5,0 since division by zero is not defined. Multiply both sides of the equation by y\left(y+5\right), the least common multiple of y+5,y.
yx+2y=\left(y+5\right)\left(x+7\right)
Use the distributive property to multiply y by x+2.
yx+2y=yx+7y+5x+35
Use the distributive property to multiply y+5 by x+7.
yx+2y-yx=7y+5x+35
Subtract yx from both sides.
2y=7y+5x+35
Combine yx and -yx to get 0.
2y-7y=5x+35
Subtract 7y from both sides.
-5y=5x+35
Combine 2y and -7y to get -5y.
-5y-5x=35
Subtract 5x from both sides.
-5y-5x=35,-4y+2x=-1
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.
-4\left(-5\right)y-4\left(-5\right)x=-4\times 35,-5\left(-4\right)y-5\times 2x=-5\left(-1\right)
To make -5y and -4y equal, multiply all terms on each side of the first equation by -4 and all terms on each side of the second by -5.
20y+20x=-140,20y-10x=5
Simplify.
20y-20y+20x+10x=-140-5
Subtract 20y-10x=5 from 20y+20x=-140 by subtracting like terms on each side of the equal sign.
20x+10x=-140-5
Add 20y to -20y. Terms 20y and -20y cancel out, leaving an equation with only one variable that can be solved.
30x=-140-5
Add 20x to 10x.
30x=-145
Add -140 to -5.
x=-\frac{29}{6}
Divide both sides by 30.
-4y+2\left(-\frac{29}{6}\right)=-1
Substitute -\frac{29}{6} for x in -4y+2x=-1. Because the resulting equation contains only one variable, you can solve for y directly.
-4y-\frac{29}{3}=-1
Multiply 2 times -\frac{29}{6}.
-4y=\frac{26}{3}
Add \frac{29}{3} to both sides of the equation.
y=-\frac{13}{6}
Divide both sides by -4.
y=-\frac{13}{6},x=-\frac{29}{6}
The system is now solved.