Skip to main content
Solve for m, n
Tick mark Image

Similar Problems from Web Search

Share

4m+9n=35,3m-8n=18
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.
4m+9n=35
Choose one of the equations and solve it for m by isolating m on the left hand side of the equal sign.
4m=-9n+35
Subtract 9n from both sides of the equation.
m=\frac{1}{4}\left(-9n+35\right)
Divide both sides by 4.
m=-\frac{9}{4}n+\frac{35}{4}
Multiply \frac{1}{4} times -9n+35.
3\left(-\frac{9}{4}n+\frac{35}{4}\right)-8n=18
Substitute \frac{-9n+35}{4} for m in the other equation, 3m-8n=18.
-\frac{27}{4}n+\frac{105}{4}-8n=18
Multiply 3 times \frac{-9n+35}{4}.
-\frac{59}{4}n+\frac{105}{4}=18
Add -\frac{27n}{4} to -8n.
-\frac{59}{4}n=-\frac{33}{4}
Subtract \frac{105}{4} from both sides of the equation.
n=\frac{33}{59}
Divide both sides of the equation by -\frac{59}{4}, which is the same as multiplying both sides by the reciprocal of the fraction.
m=-\frac{9}{4}\times \frac{33}{59}+\frac{35}{4}
Substitute \frac{33}{59} for n in m=-\frac{9}{4}n+\frac{35}{4}. Because the resulting equation contains only one variable, you can solve for m directly.
m=-\frac{297}{236}+\frac{35}{4}
Multiply -\frac{9}{4} times \frac{33}{59} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
m=\frac{442}{59}
Add \frac{35}{4} to -\frac{297}{236} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
m=\frac{442}{59},n=\frac{33}{59}
The system is now solved.
4m+9n=35,3m-8n=18
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}4&9\\3&-8\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}35\\18\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}4&9\\3&-8\end{matrix}\right))\left(\begin{matrix}4&9\\3&-8\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=inverse(\left(\begin{matrix}4&9\\3&-8\end{matrix}\right))\left(\begin{matrix}35\\18\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}4&9\\3&-8\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=inverse(\left(\begin{matrix}4&9\\3&-8\end{matrix}\right))\left(\begin{matrix}35\\18\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}m\\n\end{matrix}\right)=inverse(\left(\begin{matrix}4&9\\3&-8\end{matrix}\right))\left(\begin{matrix}35\\18\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}-\frac{8}{4\left(-8\right)-9\times 3}&-\frac{9}{4\left(-8\right)-9\times 3}\\-\frac{3}{4\left(-8\right)-9\times 3}&\frac{4}{4\left(-8\right)-9\times 3}\end{matrix}\right)\left(\begin{matrix}35\\18\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}m\\n\end{matrix}\right)=\left(\begin{matrix}\frac{8}{59}&\frac{9}{59}\\\frac{3}{59}&-\frac{4}{59}\end{matrix}\right)\left(\begin{matrix}35\\18\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}\frac{8}{59}\times 35+\frac{9}{59}\times 18\\\frac{3}{59}\times 35-\frac{4}{59}\times 18\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}\frac{442}{59}\\\frac{33}{59}\end{matrix}\right)
Do the arithmetic.
m=\frac{442}{59},n=\frac{33}{59}
Extract the matrix elements m and n.
4m+9n=35,3m-8n=18
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.
3\times 4m+3\times 9n=3\times 35,4\times 3m+4\left(-8\right)n=4\times 18
To make 4m and 3m equal, multiply all terms on each side of the first equation by 3 and all terms on each side of the second by 4.
12m+27n=105,12m-32n=72
Simplify.
12m-12m+27n+32n=105-72
Subtract 12m-32n=72 from 12m+27n=105 by subtracting like terms on each side of the equal sign.
27n+32n=105-72
Add 12m to -12m. Terms 12m and -12m cancel out, leaving an equation with only one variable that can be solved.
59n=105-72
Add 27n to 32n.
59n=33
Add 105 to -72.
n=\frac{33}{59}
Divide both sides by 59.
3m-8\times \frac{33}{59}=18
Substitute \frac{33}{59} for n in 3m-8n=18. Because the resulting equation contains only one variable, you can solve for m directly.
3m-\frac{264}{59}=18
Multiply -8 times \frac{33}{59}.
3m=\frac{1326}{59}
Add \frac{264}{59} to both sides of the equation.
m=\frac{442}{59}
Divide both sides by 3.
m=\frac{442}{59},n=\frac{33}{59}
The system is now solved.