Evaluate
\left(x+y\right)^{2}-4
Expand
x^{2}+2xy+y^{2}-4
Share
Copied to clipboard
\left(-x\right)^{2}-2\left(-x\right)-\left(-x\right)y+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Apply the distributive property by multiplying each term of -x+2-y by each term of -x-2-y.
x^{2}-2\left(-x\right)-\left(-x\right)y+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Calculate -x to the power of 2 and get x^{2}.
x^{2}+2x-\left(-x\right)y+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Multiply -2 and -1 to get 2.
x^{2}+2x+xy+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Multiply -1 and -1 to get 1.
x^{2}+2x+xy+2\left(-x\right)-4-2y+yx+2y+y^{2}
Multiply -1 and -1 to get 1.
x^{2}+2x+2xy+2\left(-x\right)-4-2y+2y+y^{2}
Combine xy and yx to get 2xy.
x^{2}+2x+2xy+2\left(-x\right)-4+y^{2}
Combine -2y and 2y to get 0.
x^{2}+2x+2xy-2x-4+y^{2}
Multiply 2 and -1 to get -2.
x^{2}+2xy-4+y^{2}
Combine 2x and -2x to get 0.
\left(-x\right)^{2}-2\left(-x\right)-\left(-x\right)y+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Apply the distributive property by multiplying each term of -x+2-y by each term of -x-2-y.
x^{2}-2\left(-x\right)-\left(-x\right)y+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Calculate -x to the power of 2 and get x^{2}.
x^{2}+2x-\left(-x\right)y+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Multiply -2 and -1 to get 2.
x^{2}+2x+xy+2\left(-x\right)-4-2y-y\left(-x\right)+2y+y^{2}
Multiply -1 and -1 to get 1.
x^{2}+2x+xy+2\left(-x\right)-4-2y+yx+2y+y^{2}
Multiply -1 and -1 to get 1.
x^{2}+2x+2xy+2\left(-x\right)-4-2y+2y+y^{2}
Combine xy and yx to get 2xy.
x^{2}+2x+2xy+2\left(-x\right)-4+y^{2}
Combine -2y and 2y to get 0.
x^{2}+2x+2xy-2x-4+y^{2}
Multiply 2 and -1 to get -2.
x^{2}+2xy-4+y^{2}
Combine 2x and -2x to get 0.
Examples
Quadratic equation
{ x } ^ { 2 } - 4 x - 5 = 0
Trigonometry
4 \sin \theta \cos \theta = 2 \sin \theta
Linear equation
y = 3x + 4
Arithmetic
699 * 533
Matrix
\left[ \begin{array} { l l } { 2 } & { 3 } \\ { 5 } & { 4 } \end{array} \right] \left[ \begin{array} { l l l } { 2 } & { 0 } & { 3 } \\ { -1 } & { 1 } & { 5 } \end{array} \right]
Simultaneous equation
\left. \begin{cases} { 8x+2y = 46 } \\ { 7x+3y = 47 } \end{cases} \right.
Differentiation
\frac { d } { d x } \frac { ( 3 x ^ { 2 } - 2 ) } { ( x - 5 ) }
Integration
\int _ { 0 } ^ { 1 } x e ^ { - x ^ { 2 } } d x
Limits
\lim _{x \rightarrow-3} \frac{x^{2}-9}{x^{2}+2 x-3}