Skip to main content
Solve for y, x
Tick mark Image
Graph

Similar Problems from Web Search

Share

21y-8x=4,101y+8x=1
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.
21y-8x=4
Choose one of the equations and solve it for y by isolating y on the left hand side of the equal sign.
21y=8x+4
Add 8x to both sides of the equation.
y=\frac{1}{21}\left(8x+4\right)
Divide both sides by 21.
y=\frac{8}{21}x+\frac{4}{21}
Multiply \frac{1}{21} times 8x+4.
101\left(\frac{8}{21}x+\frac{4}{21}\right)+8x=1
Substitute \frac{8x+4}{21} for y in the other equation, 101y+8x=1.
\frac{808}{21}x+\frac{404}{21}+8x=1
Multiply 101 times \frac{8x+4}{21}.
\frac{976}{21}x+\frac{404}{21}=1
Add \frac{808x}{21} to 8x.
\frac{976}{21}x=-\frac{383}{21}
Subtract \frac{404}{21} from both sides of the equation.
x=-\frac{383}{976}
Divide both sides of the equation by \frac{976}{21}, which is the same as multiplying both sides by the reciprocal of the fraction.
y=\frac{8}{21}\left(-\frac{383}{976}\right)+\frac{4}{21}
Substitute -\frac{383}{976} for x in y=\frac{8}{21}x+\frac{4}{21}. Because the resulting equation contains only one variable, you can solve for y directly.
y=-\frac{383}{2562}+\frac{4}{21}
Multiply \frac{8}{21} times -\frac{383}{976} by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.
y=\frac{5}{122}
Add \frac{4}{21} to -\frac{383}{2562} by finding a common denominator and adding the numerators. Then reduce the fraction to lowest terms if possible.
y=\frac{5}{122},x=-\frac{383}{976}
The system is now solved.
21y-8x=4,101y+8x=1
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}21&-8\\101&8\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}4\\1\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}21&-8\\101&8\end{matrix}\right))\left(\begin{matrix}21&-8\\101&8\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}21&-8\\101&8\end{matrix}\right))\left(\begin{matrix}4\\1\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}21&-8\\101&8\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}21&-8\\101&8\end{matrix}\right))\left(\begin{matrix}4\\1\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}21&-8\\101&8\end{matrix}\right))\left(\begin{matrix}4\\1\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}\frac{8}{21\times 8-\left(-8\times 101\right)}&-\frac{-8}{21\times 8-\left(-8\times 101\right)}\\-\frac{101}{21\times 8-\left(-8\times 101\right)}&\frac{21}{21\times 8-\left(-8\times 101\right)}\end{matrix}\right)\left(\begin{matrix}4\\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}y\\x\end{matrix}\right)=\left(\begin{matrix}\frac{1}{122}&\frac{1}{122}\\-\frac{101}{976}&\frac{21}{976}\end{matrix}\right)\left(\begin{matrix}4\\1\end{matrix}\right)
Do the arithmetic.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}\frac{1}{122}\times 4+\frac{1}{122}\\-\frac{101}{976}\times 4+\frac{21}{976}\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}\frac{5}{122}\\-\frac{383}{976}\end{matrix}\right)
Do the arithmetic.
y=\frac{5}{122},x=-\frac{383}{976}
Extract the matrix elements y and x.
21y-8x=4,101y+8x=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.
101\times 21y+101\left(-8\right)x=101\times 4,21\times 101y+21\times 8x=21
To make 21y and 101y equal, multiply all terms on each side of the first equation by 101 and all terms on each side of the second by 21.
2121y-808x=404,2121y+168x=21
Simplify.
2121y-2121y-808x-168x=404-21
Subtract 2121y+168x=21 from 2121y-808x=404 by subtracting like terms on each side of the equal sign.
-808x-168x=404-21
Add 2121y to -2121y. Terms 2121y and -2121y cancel out, leaving an equation with only one variable that can be solved.
-976x=404-21
Add -808x to -168x.
-976x=383
Add 404 to -21.
x=-\frac{383}{976}
Divide both sides by -976.
101y+8\left(-\frac{383}{976}\right)=1
Substitute -\frac{383}{976} for x in 101y+8x=1. Because the resulting equation contains only one variable, you can solve for y directly.
101y-\frac{383}{122}=1
Multiply 8 times -\frac{383}{976}.
101y=\frac{505}{122}
Add \frac{383}{122} to both sides of the equation.
y=\frac{5}{122}
Divide both sides by 101.
y=\frac{5}{122},x=-\frac{383}{976}
The system is now solved.