Solve for m, n
m=-4
n=-2
Share
Copied to clipboard
5m+6n=-32,10m+5n=-50
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.
5m+6n=-32
Choose one of the equations and solve it for m by isolating m on the left hand side of the equal sign.
5m=-6n-32
Subtract 6n from both sides of the equation.
m=\frac{1}{5}\left(-6n-32\right)
Divide both sides by 5.
m=-\frac{6}{5}n-\frac{32}{5}
Multiply \frac{1}{5} times -6n-32.
10\left(-\frac{6}{5}n-\frac{32}{5}\right)+5n=-50
Substitute \frac{-6n-32}{5} for m in the other equation, 10m+5n=-50.
-12n-64+5n=-50
Multiply 10 times \frac{-6n-32}{5}.
-7n-64=-50
Add -12n to 5n.
-7n=14
Add 64 to both sides of the equation.
n=-2
Divide both sides by -7.
m=-\frac{6}{5}\left(-2\right)-\frac{32}{5}
Substitute -2 for n in m=-\frac{6}{5}n-\frac{32}{5}. Because the resulting equation contains only one variable, you can solve for m directly.
m=\frac{12-32}{5}
Multiply -\frac{6}{5} times -2.
m=-4
Add -\frac{32}{5} to \frac{12}{5} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
m=-4,n=-2
The system is now solved.
5m+6n=-32,10m+5n=-50
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}5&6\\10&5\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}-32\\-50\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}5&6\\10&5\end{matrix}\right))\left(\begin{matrix}5&6\\10&5\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=inverse(\left(\begin{matrix}5&6\\10&5\end{matrix}\right))\left(\begin{matrix}-32\\-50\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}5&6\\10&5\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}5&6\\10&5\end{matrix}\right))\left(\begin{matrix}-32\\-50\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}5&6\\10&5\end{matrix}\right))\left(\begin{matrix}-32\\-50\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{5}{5\times 5-6\times 10}&-\frac{6}{5\times 5-6\times 10}\\-\frac{10}{5\times 5-6\times 10}&\frac{5}{5\times 5-6\times 10}\end{matrix}\right)\left(\begin{matrix}-32\\-50\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{1}{7}&\frac{6}{35}\\\frac{2}{7}&-\frac{1}{7}\end{matrix}\right)\left(\begin{matrix}-32\\-50\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}-\frac{1}{7}\left(-32\right)+\frac{6}{35}\left(-50\right)\\\frac{2}{7}\left(-32\right)-\frac{1}{7}\left(-50\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}-4\\-2\end{matrix}\right)
Do the arithmetic.
m=-4,n=-2
Extract the matrix elements m and n.
5m+6n=-32,10m+5n=-50
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.
10\times 5m+10\times 6n=10\left(-32\right),5\times 10m+5\times 5n=5\left(-50\right)
To make 5m and 10m equal, multiply all terms on each side of the first equation by 10 and all terms on each side of the second by 5.
50m+60n=-320,50m+25n=-250
Simplify.
50m-50m+60n-25n=-320+250
Subtract 50m+25n=-250 from 50m+60n=-320 by subtracting like terms on each side of the equal sign.
60n-25n=-320+250
Add 50m to -50m. Terms 50m and -50m cancel out, leaving an equation with only one variable that can be solved.
35n=-320+250
Add 60n to -25n.
35n=-70
Add -320 to 250.
n=-2
Divide both sides by 35.
10m+5\left(-2\right)=-50
Substitute -2 for n in 10m+5n=-50. Because the resulting equation contains only one variable, you can solve for m directly.
10m-10=-50
Multiply 5 times -2.
10m=-40
Add 10 to both sides of the equation.
m=-4
Divide both sides by 10.
m=-4,n=-2
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}