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

Similar Problems from Web Search

Share

12x-18y=2,15x+24y=1
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.
12x-18y=2
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
12x=18y+2
Add 18y to both sides of the equation.
x=\frac{1}{12}\left(18y+2\right)
Divide both sides by 12.
x=\frac{3}{2}y+\frac{1}{6}
Multiply \frac{1}{12} times 18y+2.
15\left(\frac{3}{2}y+\frac{1}{6}\right)+24y=1
Substitute \frac{3y}{2}+\frac{1}{6} for x in the other equation, 15x+24y=1.
\frac{45}{2}y+\frac{5}{2}+24y=1
Multiply 15 times \frac{3y}{2}+\frac{1}{6}.
\frac{93}{2}y+\frac{5}{2}=1
Add \frac{45y}{2} to 24y.
\frac{93}{2}y=-\frac{3}{2}
Subtract \frac{5}{2} from both sides of the equation.
y=-\frac{1}{31}
Divide both sides of the equation by \frac{93}{2}, which is the same as multiplying both sides by the reciprocal of the fraction.
x=\frac{3}{2}\left(-\frac{1}{31}\right)+\frac{1}{6}
Substitute -\frac{1}{31} for y in x=\frac{3}{2}y+\frac{1}{6}. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{3}{62}+\frac{1}{6}
Multiply \frac{3}{2} times -\frac{1}{31} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
x=\frac{11}{93}
Add \frac{1}{6} to -\frac{3}{62} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
x=\frac{11}{93},y=-\frac{1}{31}
The system is now solved.
12x-18y=2,15x+24y=1
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}12&-18\\15&24\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}2\\1\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}12&-18\\15&24\end{matrix}\right))\left(\begin{matrix}12&-18\\15&24\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}12&-18\\15&24\end{matrix}\right))\left(\begin{matrix}2\\1\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}12&-18\\15&24\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}12&-18\\15&24\end{matrix}\right))\left(\begin{matrix}2\\1\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}12&-18\\15&24\end{matrix}\right))\left(\begin{matrix}2\\1\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{24}{12\times 24-\left(-18\times 15\right)}&-\frac{-18}{12\times 24-\left(-18\times 15\right)}\\-\frac{15}{12\times 24-\left(-18\times 15\right)}&\frac{12}{12\times 24-\left(-18\times 15\right)}\end{matrix}\right)\left(\begin{matrix}2\\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}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{4}{93}&\frac{1}{31}\\-\frac{5}{186}&\frac{2}{93}\end{matrix}\right)\left(\begin{matrix}2\\1\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{4}{93}\times 2+\frac{1}{31}\\-\frac{5}{186}\times 2+\frac{2}{93}\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{11}{93}\\-\frac{1}{31}\end{matrix}\right)
Do the arithmetic.
x=\frac{11}{93},y=-\frac{1}{31}
Extract the matrix elements x and y.
12x-18y=2,15x+24y=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.
15\times 12x+15\left(-18\right)y=15\times 2,12\times 15x+12\times 24y=12
To make 12x and 15x equal, multiply all terms on each side of the first equation by 15 and all terms on each side of the second by 12.
180x-270y=30,180x+288y=12
Simplify.
180x-180x-270y-288y=30-12
Subtract 180x+288y=12 from 180x-270y=30 by subtracting like terms on each side of the equal sign.
-270y-288y=30-12
Add 180x to -180x. Terms 180x and -180x cancel out, leaving an equation with only one variable that can be solved.
-558y=30-12
Add -270y to -288y.
-558y=18
Add 30 to -12.
y=-\frac{1}{31}
Divide both sides by -558.
15x+24\left(-\frac{1}{31}\right)=1
Substitute -\frac{1}{31} for y in 15x+24y=1. Because the resulting equation contains only one variable, you can solve for x directly.
15x-\frac{24}{31}=1
Multiply 24 times -\frac{1}{31}.
15x=\frac{55}{31}
Add \frac{24}{31} to both sides of the equation.
x=\frac{11}{93}
Divide both sides by 15.
x=\frac{11}{93},y=-\frac{1}{31}
The system is now solved.