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

Similar Problems from Web Search

Share

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