Solve for x, y
\left\{\begin{matrix}x=\frac{72-13b}{9-ab}\text{, }y=-\frac{3\left(8a-13\right)}{9-ab}\text{, }&a=0\text{ or }b\neq \frac{9}{a}\\x=\frac{8\left(13-3y\right)}{13}\text{, }y\in \mathrm{R}\text{, }&b=\frac{72}{13}\text{ and }a=\frac{13}{8}\end{matrix}\right.
Graph
Share
Copied to clipboard
3x+by=24,ax+3y=13
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.
3x+by=24
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
3x=\left(-b\right)y+24
Subtract by from both sides of the equation.
x=\frac{1}{3}\left(\left(-b\right)y+24\right)
Divide both sides by 3.
x=\left(-\frac{b}{3}\right)y+8
Multiply \frac{1}{3} times -by+24.
a\left(\left(-\frac{b}{3}\right)y+8\right)+3y=13
Substitute -\frac{by}{3}+8 for x in the other equation, ax+3y=13.
\left(-\frac{ab}{3}\right)y+8a+3y=13
Multiply a times -\frac{by}{3}+8.
\left(-\frac{ab}{3}+3\right)y+8a=13
Add -\frac{aby}{3} to 3y.
\left(-\frac{ab}{3}+3\right)y=13-8a
Subtract 8a from both sides of the equation.
y=\frac{3\left(13-8a\right)}{9-ab}
Divide both sides by -\frac{ab}{3}+3.
x=\left(-\frac{b}{3}\right)\times \frac{3\left(13-8a\right)}{9-ab}+8
Substitute \frac{3\left(13-8a\right)}{-ab+9} for y in x=\left(-\frac{b}{3}\right)y+8. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{b\left(13-8a\right)}{9-ab}+8
Multiply -\frac{b}{3} times \frac{3\left(13-8a\right)}{-ab+9}.
x=\frac{72-13b}{9-ab}
Add 8 to -\frac{b\left(13-8a\right)}{-ab+9}.
x=\frac{72-13b}{9-ab},y=\frac{3\left(13-8a\right)}{9-ab}
The system is now solved.
3x+by=24,ax+3y=13
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}3&b\\a&3\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}24\\13\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}3&b\\a&3\end{matrix}\right))\left(\begin{matrix}3&b\\a&3\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}3&b\\a&3\end{matrix}\right))\left(\begin{matrix}24\\13\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}3&b\\a&3\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}3&b\\a&3\end{matrix}\right))\left(\begin{matrix}24\\13\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}3&b\\a&3\end{matrix}\right))\left(\begin{matrix}24\\13\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{3}{3\times 3-ba}&-\frac{b}{3\times 3-ba}\\-\frac{a}{3\times 3-ba}&\frac{3}{3\times 3-ba}\end{matrix}\right)\left(\begin{matrix}24\\13\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{3}{9-ab}&-\frac{b}{9-ab}\\-\frac{a}{9-ab}&\frac{3}{9-ab}\end{matrix}\right)\left(\begin{matrix}24\\13\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{3}{9-ab}\times 24+\left(-\frac{b}{9-ab}\right)\times 13\\\left(-\frac{a}{9-ab}\right)\times 24+\frac{3}{9-ab}\times 13\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{13b-72}{ab-9}\\\frac{3\left(8a-13\right)}{ab-9}\end{matrix}\right)
Do the arithmetic.
x=\frac{13b-72}{ab-9},y=\frac{3\left(8a-13\right)}{ab-9}
Extract the matrix elements x and y.
3x+by=24,ax+3y=13
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.
a\times 3x+aby=a\times 24,3ax+3\times 3y=3\times 13
To make 3x and ax equal, multiply all terms on each side of the first equation by a and all terms on each side of the second by 3.
3ax+aby=24a,3ax+9y=39
Simplify.
3ax+\left(-3a\right)x+aby-9y=24a-39
Subtract 3ax+9y=39 from 3ax+aby=24a by subtracting like terms on each side of the equal sign.
aby-9y=24a-39
Add 3ax to -3ax. Terms 3ax and -3ax cancel out, leaving an equation with only one variable that can be solved.
\left(ab-9\right)y=24a-39
Add aby to -9y.
y=\frac{3\left(8a-13\right)}{ab-9}
Divide both sides by ab-9.
ax+3\times \frac{3\left(8a-13\right)}{ab-9}=13
Substitute \frac{3\left(8a-13\right)}{ab-9} for y in ax+3y=13. Because the resulting equation contains only one variable, you can solve for x directly.
ax+\frac{9\left(8a-13\right)}{ab-9}=13
Multiply 3 times \frac{3\left(8a-13\right)}{ab-9}.
ax=\frac{a\left(13b-72\right)}{ab-9}
Subtract \frac{9\left(8a-13\right)}{ab-9} from both sides of the equation.
x=\frac{13b-72}{ab-9}
Divide both sides by a.
x=\frac{13b-72}{ab-9},y=\frac{3\left(8a-13\right)}{ab-9}
The system is now solved.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}