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

Similar Problems from Web Search

Share

-2y+12x=14
Consider the second equation. Add 12x to both sides.
19x-2y=6,12x-2y=14
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.
19x-2y=6
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
19x=2y+6
Add 2y to both sides of the equation.
x=\frac{1}{19}\left(2y+6\right)
Divide both sides by 19.
x=\frac{2}{19}y+\frac{6}{19}
Multiply \frac{1}{19} times 6+2y.
12\left(\frac{2}{19}y+\frac{6}{19}\right)-2y=14
Substitute \frac{6+2y}{19} for x in the other equation, 12x-2y=14.
\frac{24}{19}y+\frac{72}{19}-2y=14
Multiply 12 times \frac{6+2y}{19}.
-\frac{14}{19}y+\frac{72}{19}=14
Add \frac{24y}{19} to -2y.
-\frac{14}{19}y=\frac{194}{19}
Subtract \frac{72}{19} from both sides of the equation.
y=-\frac{97}{7}
Divide both sides of the equation by -\frac{14}{19}, which is the same as multiplying both sides by the reciprocal of the fraction.
x=\frac{2}{19}\left(-\frac{97}{7}\right)+\frac{6}{19}
Substitute -\frac{97}{7} for y in x=\frac{2}{19}y+\frac{6}{19}. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{194}{133}+\frac{6}{19}
Multiply \frac{2}{19} times -\frac{97}{7} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
x=-\frac{8}{7}
Add \frac{6}{19} to -\frac{194}{133} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
x=-\frac{8}{7},y=-\frac{97}{7}
The system is now solved.
-2y+12x=14
Consider the second equation. Add 12x to both sides.
19x-2y=6,12x-2y=14
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}19&-2\\12&-2\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}6\\14\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}19&-2\\12&-2\end{matrix}\right))\left(\begin{matrix}19&-2\\12&-2\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}19&-2\\12&-2\end{matrix}\right))\left(\begin{matrix}6\\14\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}19&-2\\12&-2\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}19&-2\\12&-2\end{matrix}\right))\left(\begin{matrix}6\\14\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}19&-2\\12&-2\end{matrix}\right))\left(\begin{matrix}6\\14\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{2}{19\left(-2\right)-\left(-2\times 12\right)}&-\frac{-2}{19\left(-2\right)-\left(-2\times 12\right)}\\-\frac{12}{19\left(-2\right)-\left(-2\times 12\right)}&\frac{19}{19\left(-2\right)-\left(-2\times 12\right)}\end{matrix}\right)\left(\begin{matrix}6\\14\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{1}{7}&-\frac{1}{7}\\\frac{6}{7}&-\frac{19}{14}\end{matrix}\right)\left(\begin{matrix}6\\14\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{1}{7}\times 6-\frac{1}{7}\times 14\\\frac{6}{7}\times 6-\frac{19}{14}\times 14\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{8}{7}\\-\frac{97}{7}\end{matrix}\right)
Do the arithmetic.
x=-\frac{8}{7},y=-\frac{97}{7}
Extract the matrix elements x and y.
-2y+12x=14
Consider the second equation. Add 12x to both sides.
19x-2y=6,12x-2y=14
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.
19x-12x-2y+2y=6-14
Subtract 12x-2y=14 from 19x-2y=6 by subtracting like terms on each side of the equal sign.
19x-12x=6-14
Add -2y to 2y. Terms -2y and 2y cancel out, leaving an equation with only one variable that can be solved.
7x=6-14
Add 19x to -12x.
7x=-8
Add 6 to -14.
x=-\frac{8}{7}
Divide both sides by 7.
12\left(-\frac{8}{7}\right)-2y=14
Substitute -\frac{8}{7} for x in 12x-2y=14. Because the resulting equation contains only one variable, you can solve for y directly.
-\frac{96}{7}-2y=14
Multiply 12 times -\frac{8}{7}.
-2y=\frac{194}{7}
Add \frac{96}{7} to both sides of the equation.
y=-\frac{97}{7}
Divide both sides by -2.
x=-\frac{8}{7},y=-\frac{97}{7}
The system is now solved.