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

Similar Problems from Web Search

Share

y=-\frac{2}{3}x-5
Consider the first equation. Reduce the fraction \frac{4}{6} to lowest terms by extracting and canceling out 2.
5\left(-\frac{2}{3}x-5\right)+8x=-45
Substitute -\frac{2x}{3}-5 for y in the other equation, 5y+8x=-45.
-\frac{10}{3}x-25+8x=-45
Multiply 5 times -\frac{2x}{3}-5.
\frac{14}{3}x-25=-45
Add -\frac{10x}{3} to 8x.
\frac{14}{3}x=-20
Add 25 to both sides of the equation.
x=-\frac{30}{7}
Divide both sides of the equation by \frac{14}{3}, which is the same as multiplying both sides by the reciprocal of the fraction.
y=-\frac{2}{3}\left(-\frac{30}{7}\right)-5
Substitute -\frac{30}{7} for x in y=-\frac{2}{3}x-5. Because the resulting equation contains only one variable, you can solve for y directly.
y=\frac{20}{7}-5
Multiply -\frac{2}{3} times -\frac{30}{7} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
y=-\frac{15}{7}
Add -5 to \frac{20}{7}.
y=-\frac{15}{7},x=-\frac{30}{7}
The system is now solved.
y=-\frac{2}{3}x-5
Consider the first equation. Reduce the fraction \frac{4}{6} to lowest terms by extracting and canceling out 2.
y+\frac{2}{3}x=-5
Add \frac{2}{3}x to both sides.
y+\frac{2}{3}x=-5,5y+8x=-45
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}1&\frac{2}{3}\\5&8\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-5\\-45\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}1&\frac{2}{3}\\5&8\end{matrix}\right))\left(\begin{matrix}1&\frac{2}{3}\\5&8\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}1&\frac{2}{3}\\5&8\end{matrix}\right))\left(\begin{matrix}-5\\-45\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}1&\frac{2}{3}\\5&8\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&\frac{2}{3}\\5&8\end{matrix}\right))\left(\begin{matrix}-5\\-45\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&\frac{2}{3}\\5&8\end{matrix}\right))\left(\begin{matrix}-5\\-45\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{8}{8-\frac{2}{3}\times 5}&-\frac{\frac{2}{3}}{8-\frac{2}{3}\times 5}\\-\frac{5}{8-\frac{2}{3}\times 5}&\frac{1}{8-\frac{2}{3}\times 5}\end{matrix}\right)\left(\begin{matrix}-5\\-45\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{12}{7}&-\frac{1}{7}\\-\frac{15}{14}&\frac{3}{14}\end{matrix}\right)\left(\begin{matrix}-5\\-45\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}\frac{12}{7}\left(-5\right)-\frac{1}{7}\left(-45\right)\\-\frac{15}{14}\left(-5\right)+\frac{3}{14}\left(-45\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-\frac{15}{7}\\-\frac{30}{7}\end{matrix}\right)
Do the arithmetic.
y=-\frac{15}{7},x=-\frac{30}{7}
Extract the matrix elements y and x.
y=-\frac{2}{3}x-5
Consider the first equation. Reduce the fraction \frac{4}{6} to lowest terms by extracting and canceling out 2.
y+\frac{2}{3}x=-5
Add \frac{2}{3}x to both sides.
y+\frac{2}{3}x=-5,5y+8x=-45
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.
5y+5\times \frac{2}{3}x=5\left(-5\right),5y+8x=-45
To make y and 5y equal, multiply all terms on each side of the first equation by 5 and all terms on each side of the second by 1.
5y+\frac{10}{3}x=-25,5y+8x=-45
Simplify.
5y-5y+\frac{10}{3}x-8x=-25+45
Subtract 5y+8x=-45 from 5y+\frac{10}{3}x=-25 by subtracting like terms on each side of the equal sign.
\frac{10}{3}x-8x=-25+45
Add 5y to -5y. Terms 5y and -5y cancel out, leaving an equation with only one variable that can be solved.
-\frac{14}{3}x=-25+45
Add \frac{10x}{3} to -8x.
-\frac{14}{3}x=20
Add -25 to 45.
x=-\frac{30}{7}
Divide both sides of the equation by -\frac{14}{3}, which is the same as multiplying both sides by the reciprocal of the fraction.
5y+8\left(-\frac{30}{7}\right)=-45
Substitute -\frac{30}{7} for x in 5y+8x=-45. Because the resulting equation contains only one variable, you can solve for y directly.
5y-\frac{240}{7}=-45
Multiply 8 times -\frac{30}{7}.
5y=-\frac{75}{7}
Add \frac{240}{7} to both sides of the equation.
y=-\frac{15}{7}
Divide both sides by 5.
y=-\frac{15}{7},x=-\frac{30}{7}
The system is now solved.