Solve for x, y
Tick mark Image
Graph

Similar Problems from Web Search

Share

2ax+by=14,-2x+9y=-19
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.
2ax+by=14
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
2ax=\left(-b\right)y+14
Subtract by from both sides of the equation.
x=\frac{1}{2a}\left(\left(-b\right)y+14\right)
Divide both sides by 2a.
x=\left(-\frac{b}{2a}\right)y+\frac{7}{a}
Multiply \frac{1}{2a} times -by+14.
-2\left(\left(-\frac{b}{2a}\right)y+\frac{7}{a}\right)+9y=-19
Substitute \frac{-by+14}{2a} for x in the other equation, -2x+9y=-19.
\frac{b}{a}y-\frac{14}{a}+9y=-19
Multiply -2 times \frac{-by+14}{2a}.
\left(\frac{b}{a}+9\right)y-\frac{14}{a}=-19
Add \frac{by}{a} to 9y.
\left(\frac{b}{a}+9\right)y=-19+\frac{14}{a}
Add \frac{14}{a} to both sides of the equation.
y=\frac{14-19a}{9a+b}
Divide both sides by 9+\frac{b}{a}.
x=\left(-\frac{b}{2a}\right)\times \left(\frac{14-19a}{9a+b}\right)+\frac{7}{a}
Substitute \frac{14-19a}{9a+b} for y in x=\left(-\frac{b}{2a}\right)y+\frac{7}{a}. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{b\left(14-19a\right)}{2a\left(9a+b\right)}+\frac{7}{a}
Multiply -\frac{b}{2a} times \frac{14-19a}{9a+b}.
x=\frac{19b+126}{2\left(9a+b\right)}
Add \frac{7}{a} to -\frac{b\left(14-19a\right)}{2a\left(9a+b\right)}.
x=\frac{19b+126}{2\left(9a+b\right)},y=\frac{14-19a}{9a+b}
The system is now solved.
2ax+by=14,-2x+9y=-19
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}2a&b\\-2&9\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}14\\-19\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}2a&b\\-2&9\end{matrix}\right))\left(\begin{matrix}2a&b\\-2&9\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}2a&b\\-2&9\end{matrix}\right))\left(\begin{matrix}14\\-19\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}2a&b\\-2&9\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}2a&b\\-2&9\end{matrix}\right))\left(\begin{matrix}14\\-19\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}2a&b\\-2&9\end{matrix}\right))\left(\begin{matrix}14\\-19\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{9}{2a\times 9-b\left(-2\right)}&-\frac{b}{2a\times 9-b\left(-2\right)}\\-\frac{-2}{2a\times 9-b\left(-2\right)}&\frac{2a}{2a\times 9-b\left(-2\right)}\end{matrix}\right)\left(\begin{matrix}14\\-19\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{9}{2\left(9a+b\right)}&-\frac{b}{2\left(9a+b\right)}\\\frac{1}{9a+b}&\frac{a}{9a+b}\end{matrix}\right)\left(\begin{matrix}14\\-19\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{9}{2\left(9a+b\right)}\times 14+\left(-\frac{b}{2\left(9a+b\right)}\right)\left(-19\right)\\\frac{1}{9a+b}\times 14+\frac{a}{9a+b}\left(-19\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{19b+126}{2\left(9a+b\right)}\\\frac{14-19a}{9a+b}\end{matrix}\right)
Do the arithmetic.
x=\frac{19b+126}{2\left(9a+b\right)},y=\frac{14-19a}{9a+b}
Extract the matrix elements x and y.
2ax+by=14,-2x+9y=-19
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.
-2\times 2ax-2by=-2\times 14,2a\left(-2\right)x+2a\times 9y=2a\left(-19\right)
To make 2ax and -2x equal, multiply all terms on each side of the first equation by -2 and all terms on each side of the second by 2a.
\left(-4a\right)x+\left(-2b\right)y=-28,\left(-4a\right)x+18ay=-38a
Simplify.
\left(-4a\right)x+4ax+\left(-2b\right)y+\left(-18a\right)y=-28+38a
Subtract \left(-4a\right)x+18ay=-38a from \left(-4a\right)x+\left(-2b\right)y=-28 by subtracting like terms on each side of the equal sign.
\left(-2b\right)y+\left(-18a\right)y=-28+38a
Add -4ax to 4ax. Terms -4ax and 4ax cancel out, leaving an equation with only one variable that can be solved.
\left(-18a-2b\right)y=-28+38a
Add -2by to -18ay.
\left(-18a-2b\right)y=38a-28
Add -28 to 38a.
y=-\frac{19a-14}{9a+b}
Divide both sides by -2b-18a.
-2x+9\left(-\frac{19a-14}{9a+b}\right)=-19
Substitute -\frac{-14+19a}{b+9a} for y in -2x+9y=-19. Because the resulting equation contains only one variable, you can solve for x directly.
-2x-\frac{9\left(19a-14\right)}{9a+b}=-19
Multiply 9 times -\frac{-14+19a}{b+9a}.
-2x=-\frac{19b+126}{9a+b}
Add \frac{9\left(-14+19a\right)}{b+9a} to both sides of the equation.
x=\frac{19b+126}{2\left(9a+b\right)}
Divide both sides by -2.
x=\frac{19b+126}{2\left(9a+b\right)},y=-\frac{19a-14}{9a+b}
The system is now solved.