Solve for x, y
x = \frac{162}{89} = 1\frac{73}{89} \approx 1.820224719
y=-\frac{30}{89}\approx -0.337078652
Graph
Share
Copied to clipboard
5x+15y-\left(7x+8y\right)=-6
Consider the first equation. Use the distributive property to multiply 5 by x+3y.
5x+15y-7x-8y=-6
To find the opposite of 7x+8y, find the opposite of each term.
-2x+15y-8y=-6
Combine 5x and -7x to get -2x.
-2x+7y=-6
Combine 15y and -8y to get 7y.
7x-9y-2x+36y=0
Consider the second equation. Use the distributive property to multiply -2 by x-18y.
5x-9y+36y=0
Combine 7x and -2x to get 5x.
5x+27y=0
Combine -9y and 36y to get 27y.
-2x+7y=-6,5x+27y=0
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.
-2x+7y=-6
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
-2x=-7y-6
Subtract 7y from both sides of the equation.
x=-\frac{1}{2}\left(-7y-6\right)
Divide both sides by -2.
x=\frac{7}{2}y+3
Multiply -\frac{1}{2} times -7y-6.
5\left(\frac{7}{2}y+3\right)+27y=0
Substitute \frac{7y}{2}+3 for x in the other equation, 5x+27y=0.
\frac{35}{2}y+15+27y=0
Multiply 5 times \frac{7y}{2}+3.
\frac{89}{2}y+15=0
Add \frac{35y}{2} to 27y.
\frac{89}{2}y=-15
Subtract 15 from both sides of the equation.
y=-\frac{30}{89}
Divide both sides of the equation by \frac{89}{2}, which is the same as multiplying both sides by the reciprocal of the fraction.
x=\frac{7}{2}\left(-\frac{30}{89}\right)+3
Substitute -\frac{30}{89} for y in x=\frac{7}{2}y+3. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{105}{89}+3
Multiply \frac{7}{2} times -\frac{30}{89} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
x=\frac{162}{89}
Add 3 to -\frac{105}{89}.
x=\frac{162}{89},y=-\frac{30}{89}
The system is now solved.
5x+15y-\left(7x+8y\right)=-6
Consider the first equation. Use the distributive property to multiply 5 by x+3y.
5x+15y-7x-8y=-6
To find the opposite of 7x+8y, find the opposite of each term.
-2x+15y-8y=-6
Combine 5x and -7x to get -2x.
-2x+7y=-6
Combine 15y and -8y to get 7y.
7x-9y-2x+36y=0
Consider the second equation. Use the distributive property to multiply -2 by x-18y.
5x-9y+36y=0
Combine 7x and -2x to get 5x.
5x+27y=0
Combine -9y and 36y to get 27y.
-2x+7y=-6,5x+27y=0
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}-2&7\\5&27\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-6\\0\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}-2&7\\5&27\end{matrix}\right))\left(\begin{matrix}-2&7\\5&27\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}-2&7\\5&27\end{matrix}\right))\left(\begin{matrix}-6\\0\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}-2&7\\5&27\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}-2&7\\5&27\end{matrix}\right))\left(\begin{matrix}-6\\0\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}-2&7\\5&27\end{matrix}\right))\left(\begin{matrix}-6\\0\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{27}{-2\times 27-7\times 5}&-\frac{7}{-2\times 27-7\times 5}\\-\frac{5}{-2\times 27-7\times 5}&-\frac{2}{-2\times 27-7\times 5}\end{matrix}\right)\left(\begin{matrix}-6\\0\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}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{27}{89}&\frac{7}{89}\\\frac{5}{89}&\frac{2}{89}\end{matrix}\right)\left(\begin{matrix}-6\\0\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{27}{89}\left(-6\right)\\\frac{5}{89}\left(-6\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{162}{89}\\-\frac{30}{89}\end{matrix}\right)
Do the arithmetic.
x=\frac{162}{89},y=-\frac{30}{89}
Extract the matrix elements x and y.
5x+15y-\left(7x+8y\right)=-6
Consider the first equation. Use the distributive property to multiply 5 by x+3y.
5x+15y-7x-8y=-6
To find the opposite of 7x+8y, find the opposite of each term.
-2x+15y-8y=-6
Combine 5x and -7x to get -2x.
-2x+7y=-6
Combine 15y and -8y to get 7y.
7x-9y-2x+36y=0
Consider the second equation. Use the distributive property to multiply -2 by x-18y.
5x-9y+36y=0
Combine 7x and -2x to get 5x.
5x+27y=0
Combine -9y and 36y to get 27y.
-2x+7y=-6,5x+27y=0
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.
5\left(-2\right)x+5\times 7y=5\left(-6\right),-2\times 5x-2\times 27y=0
To make -2x and 5x equal, multiply all terms on each side of the first equation by 5 and all terms on each side of the second by -2.
-10x+35y=-30,-10x-54y=0
Simplify.
-10x+10x+35y+54y=-30
Subtract -10x-54y=0 from -10x+35y=-30 by subtracting like terms on each side of the equal sign.
35y+54y=-30
Add -10x to 10x. Terms -10x and 10x cancel out, leaving an equation with only one variable that can be solved.
89y=-30
Add 35y to 54y.
y=-\frac{30}{89}
Divide both sides by 89.
5x+27\left(-\frac{30}{89}\right)=0
Substitute -\frac{30}{89} for y in 5x+27y=0. Because the resulting equation contains only one variable, you can solve for x directly.
5x-\frac{810}{89}=0
Multiply 27 times -\frac{30}{89}.
5x=\frac{810}{89}
Add \frac{810}{89} to both sides of the equation.
x=\frac{162}{89}
Divide both sides by 5.
x=\frac{162}{89},y=-\frac{30}{89}
The system is now solved.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}