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.