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

Similar Problems from Web Search

Share

cx+y=69,2x+y=87
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.
cx+y=69
Choose one of the equations and solve it for x by isolating x on the left hand side of the equal sign.
cx=-y+69
Subtract y from both sides of the equation.
x=\frac{1}{c}\left(-y+69\right)
Divide both sides by c.
x=\left(-\frac{1}{c}\right)y+\frac{69}{c}
Multiply \frac{1}{c} times -y+69.
2\left(\left(-\frac{1}{c}\right)y+\frac{69}{c}\right)+y=87
Substitute \frac{69-y}{c} for x in the other equation, 2x+y=87.
\left(-\frac{2}{c}\right)y+\frac{138}{c}+y=87
Multiply 2 times \frac{69-y}{c}.
\frac{c-2}{c}y+\frac{138}{c}=87
Add -\frac{2y}{c} to y.
\frac{c-2}{c}y=87-\frac{138}{c}
Subtract \frac{138}{c} from both sides of the equation.
y=\frac{3\left(29c-46\right)}{c-2}
Divide both sides by \frac{-2+c}{c}.
x=\left(-\frac{1}{c}\right)\times \frac{3\left(29c-46\right)}{c-2}+\frac{69}{c}
Substitute \frac{3\left(-46+29c\right)}{-2+c} for y in x=\left(-\frac{1}{c}\right)y+\frac{69}{c}. Because the resulting equation contains only one variable, you can solve for x directly.
x=-\frac{3\left(29c-46\right)}{c\left(c-2\right)}+\frac{69}{c}
Multiply -\frac{1}{c} times \frac{3\left(-46+29c\right)}{-2+c}.
x=-\frac{18}{c-2}
Add \frac{69}{c} to -\frac{3\left(-46+29c\right)}{c\left(-2+c\right)}.
x=-\frac{18}{c-2},y=\frac{3\left(29c-46\right)}{c-2}
The system is now solved.
cx+y=69,2x+y=87
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}c&1\\2&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}69\\87\end{matrix}\right)
Write the equations in matrix form.
inverse(\left(\begin{matrix}c&1\\2&1\end{matrix}\right))\left(\begin{matrix}c&1\\2&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}c&1\\2&1\end{matrix}\right))\left(\begin{matrix}69\\87\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}c&1\\2&1\end{matrix}\right).
\left(\begin{matrix}1&0\\0&1\end{matrix}\right)\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}c&1\\2&1\end{matrix}\right))\left(\begin{matrix}69\\87\end{matrix}\right)
The product of a matrix and its inverse is the identity matrix.
\left(\begin{matrix}x\\y\end{matrix}\right)=inverse(\left(\begin{matrix}c&1\\2&1\end{matrix}\right))\left(\begin{matrix}69\\87\end{matrix}\right)
Multiply the matrices on the left hand side of the equal sign.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{1}{c-2}&-\frac{1}{c-2}\\-\frac{2}{c-2}&\frac{c}{c-2}\end{matrix}\right)\left(\begin{matrix}69\\87\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}x\\y\end{matrix}\right)=\left(\begin{matrix}\frac{1}{c-2}\times 69+\left(-\frac{1}{c-2}\right)\times 87\\\left(-\frac{2}{c-2}\right)\times 69+\frac{c}{c-2}\times 87\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}x\\y\end{matrix}\right)=\left(\begin{matrix}-\frac{18}{c-2}\\\frac{3\left(29c-46\right)}{c-2}\end{matrix}\right)
Do the arithmetic.
x=-\frac{18}{c-2},y=\frac{3\left(29c-46\right)}{c-2}
Extract the matrix elements x and y.
cx+y=69,2x+y=87
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.
cx-2x+y-y=69-87
Subtract 2x+y=87 from cx+y=69 by subtracting like terms on each side of the equal sign.
cx-2x=69-87
Add y to -y. Terms y and -y cancel out, leaving an equation with only one variable that can be solved.
\left(c-2\right)x=69-87
Add cx to -2x.
\left(c-2\right)x=-18
Add 69 to -87.
x=-\frac{18}{c-2}
Divide both sides by c-2.
2\left(-\frac{18}{c-2}\right)+y=87
Substitute -\frac{18}{c-2} for x in 2x+y=87. Because the resulting equation contains only one variable, you can solve for y directly.
-\frac{36}{c-2}+y=87
Multiply 2 times -\frac{18}{c-2}.
y=\frac{3\left(29c-46\right)}{c-2}
Add \frac{36}{c-2} to both sides of the equation.
x=-\frac{18}{c-2},y=\frac{3\left(29c-46\right)}{c-2}
The system is now solved.