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

Similar Problems from Web Search

Share

3m=-\left(n-3\right)
Consider the first equation. Variable n cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by n-3.
3m=-n+3
To find the opposite of n-3, find the opposite of each term.
m=\frac{1}{3}\left(-n+3\right)
Divide both sides by 3.
m=-\frac{1}{3}n+1
Multiply \frac{1}{3} times -n+3.
2\left(-\frac{1}{3}n+1\right)+n=1
Substitute -\frac{n}{3}+1 for m in the other equation, 2m+n=1.
-\frac{2}{3}n+2+n=1
Multiply 2 times -\frac{n}{3}+1.
\frac{1}{3}n+2=1
Add -\frac{2n}{3} to n.
\frac{1}{3}n=-1
Subtract 2 from both sides of the equation.
n=-3
Multiply both sides by 3.
m=-\frac{1}{3}\left(-3\right)+1
Substitute -3 for n in m=-\frac{1}{3}n+1. Because the resulting equation contains only one variable, you can solve for m directly.
m=1+1
Multiply -\frac{1}{3} times -3.
m=2
Add 1 to 1.
m=2,n=-3
The system is now solved.
3m=-\left(n-3\right)
Consider the first equation. Variable n cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by n-3.
3m=-n+3
To find the opposite of n-3, find the opposite of each term.
3m+n=3
Add n to both sides.
n+1=-2\left(m-1\right)
Consider the second equation. Variable m cannot be equal to 1 since division by zero is not defined. Multiply both sides of the equation by m-1.
n+1=-2m+2
Use the distributive property to multiply -2 by m-1.
n+1+2m=2
Add 2m to both sides.
n+2m=2-1
Subtract 1 from both sides.
n+2m=1
Subtract 1 from 2 to get 1.
3m+n=3,2m+n=1
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}3&1\\2&1\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}3\\1\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}3&1\\2&1\end{matrix}\right))\left(\begin{matrix}3&1\\2&1\end{matrix}\right)\left(\begin{matrix}m\\n\end{matrix}\right)=inverse(\left(\begin{matrix}3&1\\2&1\end{matrix}\right))\left(\begin{matrix}3\\1\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}3&1\\2&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}3&1\\2&1\end{matrix}\right))\left(\begin{matrix}3\\1\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}3&1\\2&1\end{matrix}\right))\left(\begin{matrix}3\\1\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}{3-2}&-\frac{1}{3-2}\\-\frac{2}{3-2}&\frac{3}{3-2}\end{matrix}\right)\left(\begin{matrix}3\\1\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}1&-1\\-2&3\end{matrix}\right)\left(\begin{matrix}3\\1\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}3-1\\-2\times 3+3\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}m\\n\end{matrix}\right)=\left(\begin{matrix}2\\-3\end{matrix}\right)
Do the arithmetic.
m=2,n=-3
Extract the matrix elements m and n.
3m=-\left(n-3\right)
Consider the first equation. Variable n cannot be equal to 3 since division by zero is not defined. Multiply both sides of the equation by n-3.
3m=-n+3
To find the opposite of n-3, find the opposite of each term.
3m+n=3
Add n to both sides.
n+1=-2\left(m-1\right)
Consider the second equation. Variable m cannot be equal to 1 since division by zero is not defined. Multiply both sides of the equation by m-1.
n+1=-2m+2
Use the distributive property to multiply -2 by m-1.
n+1+2m=2
Add 2m to both sides.
n+2m=2-1
Subtract 1 from both sides.
n+2m=1
Subtract 1 from 2 to get 1.
3m+n=3,2m+n=1
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.
3m-2m+n-n=3-1
Subtract 2m+n=1 from 3m+n=3 by subtracting like terms on each side of the equal sign.
3m-2m=3-1
Add n to -n. Terms n and -n cancel out, leaving an equation with only one variable that can be solved.
m=3-1
Add 3m to -2m.
m=2
Add 3 to -1.
2\times 2+n=1
Substitute 2 for m in 2m+n=1. Because the resulting equation contains only one variable, you can solve for n directly.
4+n=1
Multiply 2 times 2.
n=-3
Subtract 4 from both sides of the equation.
m=2,n=-3
The system is now solved.