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

Similar Problems from Web Search

Share

y^{2}+4y+4=y^{2}+x
Consider the first equation. Use binomial theorem \left(a+b\right)^{2}=a^{2}+2ab+b^{2} to expand \left(y+2\right)^{2}.
y^{2}+4y+4-y^{2}=x
Subtract y^{2} from both sides.
4y+4=x
Combine y^{2} and -y^{2} to get 0.
4y+4-x=0
Subtract x from both sides.
4y-x=-4
Subtract 4 from both sides. Anything subtracted from zero gives its negation.
4x^{2}-4x+1=4x^{2}-y
Consider the second equation. Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(2x-1\right)^{2}.
4x^{2}-4x+1-4x^{2}=-y
Subtract 4x^{2} from both sides.
-4x+1=-y
Combine 4x^{2} and -4x^{2} to get 0.
-4x+1+y=0
Add y to both sides.
-4x+y=-1
Subtract 1 from both sides. Anything subtracted from zero gives its negation.
4y-x=-4,y-4x=-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.
4y-x=-4
Choose one of the equations and solve it for y by isolating y on the left hand side of the equal sign.
4y=x-4
Add x to both sides of the equation.
y=\frac{1}{4}\left(x-4\right)
Divide both sides by 4.
y=\frac{1}{4}x-1
Multiply \frac{1}{4} times x-4.
\frac{1}{4}x-1-4x=-1
Substitute \frac{x}{4}-1 for y in the other equation, y-4x=-1.
-\frac{15}{4}x-1=-1
Add \frac{x}{4} to -4x.
-\frac{15}{4}x=0
Add 1 to both sides of the equation.
x=0
Divide both sides of the equation by -\frac{15}{4}, which is the same as multiplying both sides by the reciprocal of the fraction.
y=-1
Substitute 0 for x in y=\frac{1}{4}x-1. Because the resulting equation contains only one variable, you can solve for y directly.
y=-1,x=0
The system is now solved.
y^{2}+4y+4=y^{2}+x
Consider the first equation. Use binomial theorem \left(a+b\right)^{2}=a^{2}+2ab+b^{2} to expand \left(y+2\right)^{2}.
y^{2}+4y+4-y^{2}=x
Subtract y^{2} from both sides.
4y+4=x
Combine y^{2} and -y^{2} to get 0.
4y+4-x=0
Subtract x from both sides.
4y-x=-4
Subtract 4 from both sides. Anything subtracted from zero gives its negation.
4x^{2}-4x+1=4x^{2}-y
Consider the second equation. Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(2x-1\right)^{2}.
4x^{2}-4x+1-4x^{2}=-y
Subtract 4x^{2} from both sides.
-4x+1=-y
Combine 4x^{2} and -4x^{2} to get 0.
-4x+1+y=0
Add y to both sides.
-4x+y=-1
Subtract 1 from both sides. Anything subtracted from zero gives its negation.
4y-x=-4,y-4x=-1
Put the equations in standard form and then use matrices to solve the system of equations.
\left(\begin{matrix}4&-1\\1&-4\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}4&-1\\1&-4\end{matrix}\right))\left(\begin{matrix}4&-1\\1&-4\end{matrix}\right)\left(\begin{matrix}y\\x\end{matrix}\right)=inverse(\left(\begin{matrix}4&-1\\1&-4\end{matrix}\right))\left(\begin{matrix}-4\\-1\end{matrix}\right)
Left multiply the equation by the inverse matrix of \left(\begin{matrix}4&-1\\1&-4\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}4&-1\\1&-4\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}4&-1\\1&-4\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{4}{4\left(-4\right)-\left(-1\right)}&-\frac{-1}{4\left(-4\right)-\left(-1\right)}\\-\frac{1}{4\left(-4\right)-\left(-1\right)}&\frac{4}{4\left(-4\right)-\left(-1\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{4}{15}&-\frac{1}{15}\\\frac{1}{15}&-\frac{4}{15}\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{4}{15}\left(-4\right)-\frac{1}{15}\left(-1\right)\\\frac{1}{15}\left(-4\right)-\frac{4}{15}\left(-1\right)\end{matrix}\right)
Multiply the matrices.
\left(\begin{matrix}y\\x\end{matrix}\right)=\left(\begin{matrix}-1\\0\end{matrix}\right)
Do the arithmetic.
y=-1,x=0
Extract the matrix elements y and x.
y^{2}+4y+4=y^{2}+x
Consider the first equation. Use binomial theorem \left(a+b\right)^{2}=a^{2}+2ab+b^{2} to expand \left(y+2\right)^{2}.
y^{2}+4y+4-y^{2}=x
Subtract y^{2} from both sides.
4y+4=x
Combine y^{2} and -y^{2} to get 0.
4y+4-x=0
Subtract x from both sides.
4y-x=-4
Subtract 4 from both sides. Anything subtracted from zero gives its negation.
4x^{2}-4x+1=4x^{2}-y
Consider the second equation. Use binomial theorem \left(a-b\right)^{2}=a^{2}-2ab+b^{2} to expand \left(2x-1\right)^{2}.
4x^{2}-4x+1-4x^{2}=-y
Subtract 4x^{2} from both sides.
-4x+1=-y
Combine 4x^{2} and -4x^{2} to get 0.
-4x+1+y=0
Add y to both sides.
-4x+y=-1
Subtract 1 from both sides. Anything subtracted from zero gives its negation.
4y-x=-4,y-4x=-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.
4y-x=-4,4y+4\left(-4\right)x=4\left(-1\right)
To make 4y and y equal, multiply all terms on each side of the first equation by 1 and all terms on each side of the second by 4.
4y-x=-4,4y-16x=-4
Simplify.
4y-4y-x+16x=-4+4
Subtract 4y-16x=-4 from 4y-x=-4 by subtracting like terms on each side of the equal sign.
-x+16x=-4+4
Add 4y to -4y. Terms 4y and -4y cancel out, leaving an equation with only one variable that can be solved.
15x=-4+4
Add -x to 16x.
15x=0
Add -4 to 4.
x=0
Divide both sides by 15.
y=-1
Substitute 0 for x in y-4x=-1. Because the resulting equation contains only one variable, you can solve for y directly.
y=-1,x=0
The system is now solved.