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

Similar Problems from Web Search

Share

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