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

Similar Problems from Web Search

Share

45x+y=2
Consider the first equation. Add y to both sides.
3-5y+7x=0
Consider the second equation. Add 7x to both sides.
-5y+7x=-3
Subtract 3 from both sides. Anything subtracted from zero gives its negation.
45x+y=2,7x-5y=-3
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.
45x+y=2
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
45x=-y+2
Subtract y from both sides of the equation.
x=\frac{1}{45}\left(-y+2\right)
Divide both sides by 45.
x=-\frac{1}{45}y+\frac{2}{45}
Multiply \frac{1}{45} times -y+2.
7\left(-\frac{1}{45}y+\frac{2}{45}\right)-5y=-3
Substitute \frac{-y+2}{45} for x in the other equation, 7x-5y=-3.
-\frac{7}{45}y+\frac{14}{45}-5y=-3
Multiply 7 times \frac{-y+2}{45}.
-\frac{232}{45}y+\frac{14}{45}=-3
Add -\frac{7y}{45} to -5y.
-\frac{232}{45}y=-\frac{149}{45}
Subtract \frac{14}{45} from both sides of the equation.
y=\frac{149}{232}
Divide both sides of the equation by -\frac{232}{45}, which is the same as multiplying both sides by the reciprocal of the fraction.
x=-\frac{1}{45}\times \frac{149}{232}+\frac{2}{45}
Substitute \frac{149}{232} for y in x=-\frac{1}{45}y+\frac{2}{45}. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{149}{10440}+\frac{2}{45}
Multiply -\frac{1}{45} times \frac{149}{232} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
x=\frac{7}{232}
Add \frac{2}{45} to -\frac{149}{10440} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
x=\frac{7}{232},y=\frac{149}{232}
The system is now solved.
45x+y=2
Consider the first equation. Add y to both sides.
3-5y+7x=0
Consider the second equation. Add 7x to both sides.
-5y+7x=-3
Subtract 3 from both sides. Anything subtracted from zero gives its negation.
45x+y=2,7x-5y=-3
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}45&1\\7&-5\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}2\\-3\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}45&1\\7&-5\end{matrix}\right))\left(\begin{matrix}45&1\\7&-5\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}45&1\\7&-5\end{matrix}\right))\left(\begin{matrix}2\\-3\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}45&1\\7&-5\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}45&1\\7&-5\end{matrix}\right))\left(\begin{matrix}2\\-3\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}45&1\\7&-5\end{matrix}\right))\left(\begin{matrix}2\\-3\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{5}{45\left(-5\right)-7}&-\frac{1}{45\left(-5\right)-7}\\-\frac{7}{45\left(-5\right)-7}&\frac{45}{45\left(-5\right)-7}\end{matrix}\right)\left(\begin{matrix}2\\-3\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{5}{232}&\frac{1}{232}\\\frac{7}{232}&-\frac{45}{232}\end{matrix}\right)\left(\begin{matrix}2\\-3\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{5}{232}\times 2+\frac{1}{232}\left(-3\right)\\\frac{7}{232}\times 2-\frac{45}{232}\left(-3\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{7}{232}\\\frac{149}{232}\end{matrix}\right)
Do the arithmetic.
x=\frac{7}{232},y=\frac{149}{232}
Extract the matrix elements x and y.
45x+y=2
Consider the first equation. Add y to both sides.
3-5y+7x=0
Consider the second equation. Add 7x to both sides.
-5y+7x=-3
Subtract 3 from both sides. Anything subtracted from zero gives its negation.
45x+y=2,7x-5y=-3
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.
7\times 45x+7y=7\times 2,45\times 7x+45\left(-5\right)y=45\left(-3\right)
To make 45x and 7x equal, multiply all terms on each side of the first equation by 7 and all terms on each side of the second by 45.
315x+7y=14,315x-225y=-135
Simplify.
315x-315x+7y+225y=14+135
Subtract 315x-225y=-135 from 315x+7y=14 by subtracting like terms on each side of the equal sign.
7y+225y=14+135
Add 315x to -315x. Terms 315x and -315x cancel out, leaving an equation with only one variable that can be solved.
232y=14+135
Add 7y to 225y.
232y=149
Add 14 to 135.
y=\frac{149}{232}
Divide both sides by 232.
7x-5\times \frac{149}{232}=-3
Substitute \frac{149}{232} for y in 7x-5y=-3. Because the resulting equation contains only one variable, you can solve for x directly.
7x-\frac{745}{232}=-3
Multiply -5 times \frac{149}{232}.
7x=\frac{49}{232}
Add \frac{745}{232} to both sides of the equation.
x=\frac{7}{232}
Divide both sides by 7.
x=\frac{7}{232},y=\frac{149}{232}
The system is now solved.