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

Similar Problems from Web Search

Share

45+0.25x-y=0
Consider the first equation. Subtract y from both sides.
0.25x-y=-45
Subtract 45 from both sides. Anything subtracted from zero gives its negation.
35+0.3x-y=0
Consider the second equation. Subtract y from both sides.
0.3x-y=-35
Subtract 35 from both sides. Anything subtracted from zero gives its negation.
0.25x-y=-45,0.3x-y=-35
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.
0.25x-y=-45
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
0.25x=y-45
Add y to both sides of the equation.
x=4\left(y-45\right)
Multiply both sides by 4.
x=4y-180
Multiply 4 times y-45.
0.3\left(4y-180\right)-y=-35
Substitute -180+4y for x in the other equation, 0.3x-y=-35.
1.2y-54-y=-35
Multiply 0.3 times -180+4y.
0.2y-54=-35
Add \frac{6y}{5} to -y.
0.2y=19
Add 54 to both sides of the equation.
y=95
Multiply both sides by 5.
x=4\times 95-180
Substitute 95 for y in x=4y-180. Because the resulting equation contains only one variable, you can solve for x directly.
x=380-180
Multiply 4 times 95.
x=200
Add -180 to 380.
x=200,y=95
The system is now solved.
45+0.25x-y=0
Consider the first equation. Subtract y from both sides.
0.25x-y=-45
Subtract 45 from both sides. Anything subtracted from zero gives its negation.
35+0.3x-y=0
Consider the second equation. Subtract y from both sides.
0.3x-y=-35
Subtract 35 from both sides. Anything subtracted from zero gives its negation.
0.25x-y=-45,0.3x-y=-35
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}0.25&-1\\0.3&-1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-45\\-35\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}0.25&-1\\0.3&-1\end{matrix}\right))\left(\begin{matrix}0.25&-1\\0.3&-1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}0.25&-1\\0.3&-1\end{matrix}\right))\left(\begin{matrix}-45\\-35\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}0.25&-1\\0.3&-1\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}0.25&-1\\0.3&-1\end{matrix}\right))\left(\begin{matrix}-45\\-35\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}0.25&-1\\0.3&-1\end{matrix}\right))\left(\begin{matrix}-45\\-35\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{1}{0.25\left(-1\right)-\left(-0.3\right)}&-\frac{-1}{0.25\left(-1\right)-\left(-0.3\right)}\\-\frac{0.3}{0.25\left(-1\right)-\left(-0.3\right)}&\frac{0.25}{0.25\left(-1\right)-\left(-0.3\right)}\end{matrix}\right)\left(\begin{matrix}-45\\-35\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}-20&20\\-6&5\end{matrix}\right)\left(\begin{matrix}-45\\-35\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-20\left(-45\right)+20\left(-35\right)\\-6\left(-45\right)+5\left(-35\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}200\\95\end{matrix}\right)
Do the arithmetic.
x=200,y=95
Extract the matrix elements x and y.
45+0.25x-y=0
Consider the first equation. Subtract y from both sides.
0.25x-y=-45
Subtract 45 from both sides. Anything subtracted from zero gives its negation.
35+0.3x-y=0
Consider the second equation. Subtract y from both sides.
0.3x-y=-35
Subtract 35 from both sides. Anything subtracted from zero gives its negation.
0.25x-y=-45,0.3x-y=-35
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.
0.25x-0.3x-y+y=-45+35
Subtract 0.3x-y=-35 from 0.25x-y=-45 by subtracting like terms on each side of the equal sign.
0.25x-0.3x=-45+35
Add -y to y. Terms -y and y cancel out, leaving an equation with only one variable that can be solved.
-0.05x=-45+35
Add \frac{x}{4} to -\frac{3x}{10}.
-0.05x=-10
Add -45 to 35.
x=200
Multiply both sides by -20.
0.3\times 200-y=-35
Substitute 200 for x in 0.3x-y=-35. Because the resulting equation contains only one variable, you can solve for y directly.
60-y=-35
Multiply 0.3 times 200.
-y=-95
Subtract 60 from both sides of the equation.
y=95
Divide both sides by -1.
x=200,y=95
The system is now solved.