The formula for the difference of squares

🏆Practice square of difference

(XY)2=X22XY+Y2(X - Y)2=X2 - 2XY + Y2
This is one of the shortened multiplication formulas and it describes the square difference of two numbers.

That is, when we encounter two numbers with a minus sign between them, that is, the difference and they will be in parentheses and raised as a squared expression, we can use this formula.

Start practice

Test yourself on square of difference!

einstein

Choose the expression that has the same value as the following:

\( (x-7)^2 \)

Practice more now

Pay attention - The formula also works in non-algebraic expressions or combinations with numbers and unknowns.

Let's look at an example

(X7)2=(X-7)^2=
Here we identify two elements between which there is a minus sign and they are enclosed in parentheses and raised to the square as a single expression.
Therefore, we can use the formula for the difference of squares.
We will work according to the formula and pay attention to the minus and plus signs.
We will obtain: 
(X7)2=x214x+49(X-7)^2=x^2-14x+49
Indeed, we pronounce the same expression differently using the formula.


If you are interested in this article, you might also be interested in the following articles:

Square

The area of a square

Multiplication of the sum of two elements by the difference between them

The formula for the sum of squares

The formulas that refer to two expressions to the power of 3

In the blog of Tutorela you will find a variety of articles about mathematics.


Examples and exercises with solutions of the difference of squares formula

Exercise #1

Choose the expression that has the same value as the following:

(xy)2 (x-y)^2

Video Solution

Step-by-Step Solution

We use the abbreviated multiplication formula:

(xy)(xy)= (x-y)(x-y)=

x2xyyx+y2= x^2-xy-yx+y^2=

x22xy+y2 x^2-2xy+y^2

Answer

x22xy+y2 x^2-2xy+y^2

Exercise #2

x2+144=24x x^2+144=24x

Video Solution

Step-by-Step Solution

Let's solve the given equation:

x2+144=24x x^2+144=24x

First, let's arrange the equation by moving terms:

x2+144=24xx224x+144=0 x^2+144=24x \\ x^2-24x+144=0

Now let's notice that we can factor the expression on the left side using the perfect square trinomial formula:

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-2\textcolor{red}{a}\textcolor{blue}{b}+\textcolor{blue}{b}^2

We can do this using the fact that:

144=122 144=12^2

Therefore, we'll represent the rightmost term as a squared term:

x224x+144=0x224x+122=0 x^2-24x+144=0 \\ \downarrow\\ \textcolor{red}{x}^2-24x+\textcolor{blue}{12}^2=0

Now let's examine again the perfect square trinomial formula mentioned earlier:

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-\underline{2\textcolor{red}{a}\textcolor{blue}{b}}+\textcolor{blue}{b}^2

And the expression on the left side in the equation we got in the last step:

x224x+122=0 \textcolor{red}{x}^2-\underline{24x}+\textcolor{blue}{12}^2=0

Notice that the terms x2,122 \textcolor{red}{x}^2,\hspace{6pt}\textcolor{blue}{12}^2 indeed match the form of the first and third terms in the perfect square trinomial formula (which are highlighted in red and blue),

However, in order to factor this expression (which is on the left side of the equation) using the perfect square trinomial formula mentioned, the remaining term must also match the formula, meaning the middle term in the expression (underlined):

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-\underline{2\textcolor{red}{a}\textcolor{blue}{b}}+\textcolor{blue}{b}^2

In other words - we'll ask if we can represent the expression on the left side of the equation as:

x224x+122=0?x22x12+122=0 \textcolor{red}{x}^2-\underline{24x}+\textcolor{blue}{12}^2=0\\ \updownarrow\text{?}\\ \textcolor{red}{x}^2-\underline{2\cdot\textcolor{red}{x}\cdot\textcolor{blue}{12}}+\textcolor{blue}{12}^2=0

And indeed it is true that:

2x12=24x 2\cdot x\cdot12=24x

Therefore we can represent the expression on the left side of the equation as a perfect square trinomial:

x22x12+122=0(x12)2=0 \textcolor{red}{x}^2-\underline{2\cdot\textcolor{red}{x}\cdot\textcolor{blue}{12}}+\textcolor{blue}{12}^2=0 \\ \downarrow\\ (\textcolor{red}{x}-\textcolor{blue}{12})^2=0

From here we can take the square root of both sides of the equation (and don't forget that there are two possibilities - positive and negative when taking an even root of both sides of an equation), then we'll easily solve by isolating the variable:

(x12)2=0/x12=±0x12=0x=12 (x-12)^2=0\hspace{8pt}\text{/}\sqrt{\hspace{6pt}}\\ x-12=\pm0\\ x-12=0\\ \boxed{x=12}

Let's summarize the solution of the equation:

x2+144=24xx224x+144=0x22x12+122=0(x12)2=0x12=0x=12 x^2+144=24x \\ x^2-24x+144=0 \\ \downarrow\\ \textcolor{red}{x}^2-2\cdot\textcolor{red}{x}\cdot\textcolor{blue}{12}+\textcolor{blue}{12}^2=0 \\ \downarrow\\ (\textcolor{red}{x}-\textcolor{blue}{12})^2=0 \\ \downarrow\\ x-12=0\\ \downarrow\\ \boxed{x=12}

Therefore the correct answer is answer C.

Answer

x=12 x=12

Exercise #3

x2=6x9 x^2=6x-9

Video Solution

Step-by-Step Solution

Let's solve the given equation:

x2=6x9 x^2=6x-9

First, let's arrange the equation by moving terms:

x2=6x9x26x+9=0 x^2=6x-9 \\ x^2-6x+9=0

Now let's notice that we can factor the expression on the left side using the perfect square trinomial formula for a binomial squared:

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-2\textcolor{red}{a}\textcolor{blue}{b}+\textcolor{blue}{b}^2

We'll do this using the fact that:

9=32 9=3^2 Therefore, we'll represent the rightmost term as a squared term:

x26x+9=0x26x+32=0 x^2-6x+9=0 \\ \downarrow\\ \textcolor{red}{x}^2-6x+\textcolor{blue}{3}^2=0

Now let's examine again the perfect square trinomial formula mentioned earlier:

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-\underline{2\textcolor{red}{a}\textcolor{blue}{b}}+\textcolor{blue}{b}^2

And the expression on the left side in the equation we got in the last step:

x26x+32=0 \textcolor{red}{x}^2-\underline{6x}+\textcolor{blue}{3}^2=0

Notice that the terms x2,32 \textcolor{red}{x}^2,\hspace{6pt}\textcolor{blue}{3}^2 indeed match the form of the first and third terms in the perfect square trinomial formula (which are highlighted in red and blue),

However, in order to factor the expression in question (which is on the left side of the equation) using the perfect square trinomial formula mentioned, the remaining term must also match the formula, meaning the middle term in the expression (underlined with a single line):

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-\underline{2\textcolor{red}{a}\textcolor{blue}{b}}+\textcolor{blue}{b}^2

In other words - we'll ask if we can represent the expression on the left side of the equation as:

x26x+32=0?x22x3+32=0 \textcolor{red}{x}^2-\underline{6x}+\textcolor{blue}{3}^2=0\\ \updownarrow\text{?}\\ \textcolor{red}{x}^2-\underline{2\cdot\textcolor{red}{x}\cdot\textcolor{blue}{3}}+\textcolor{blue}{3}^2=0

And indeed it is true that:

2x3=6x 2\cdot x\cdot3=6x

Therefore we can represent the expression on the left side of the equation as a perfect square binomial:

x22x3+32=0(x3)2=0 \textcolor{red}{x}^2-\underline{2\cdot\textcolor{red}{x}\cdot\textcolor{blue}{3}}+\textcolor{blue}{3}^2=0 \\ \downarrow\\ (\textcolor{red}{x}-\textcolor{blue}{3})^2=0

From here we can take the square root of both sides of the equation (and don't forget that there are two possibilities - positive and negative when taking an even root of both sides of an equation), then we'll easily solve by isolating the variable:

(x3)2=0/x3=±0x3=0x=3 (x-3)^2=0\hspace{8pt}\text{/}\sqrt{\hspace{6pt}}\\ x-3=\pm0\\ x-3=0\\ \boxed{x=3}

Let's summarize the solution of the equation:

x2=6x9x26x+9=0x22x3+32=0(x3)2=0x3=0x=3 x^2=6x-9 \\ x^2-6x+9=0 \\ \downarrow\\ \textcolor{red}{x}^2-2\cdot\textcolor{red}{x}\cdot\textcolor{blue}{3}+\textcolor{blue}{3}^2=0 \\ \downarrow\\ (\textcolor{red}{x}-\textcolor{blue}{3})^2=0 \\ \downarrow\\ x-3=0\\ \downarrow\\ \boxed{x=3}

Therefore the correct answer is answer C.

Answer

x=3 x=3

Exercise #4

Solve for x:

(x4)2=(x+2)(x1) (x-4)^2=(x+2)(x-1)

Video Solution

Step-by-Step Solution

Let's solve the equation, first we'll simplify the algebraic expressions using the extended distribution law:

(a+b)(c+d)=ac+ad+bc+bd (a+b)(c+d)=ac+ad+bc+bd We'll use the shortened multiplication formula for a squared binomial:

(a±b)2=a2±2ab+b2 (a\pm b)^2=a^2\pm2ab+b^2 We'll therefore apply the law and formula mentioned and open the parentheses in the expressions in the equation:

(x4)2=(x+2)(x1)x22x4+42=x2x+2x2x28x+16=x2+x2 (x-4)^2=(x+2)(x-1) \\ x^2-2\cdot x\cdot4+4^2=x^2-x+2x-2 \\ x^2-8x+16=x^2+x-2 We'll continue and combine like terms, by moving terms between sides - we can notice that the squared term cancels out and therefore it's a first-degree equation, which we'll solve by isolating the variable term on one side and dividing both sides of the equation by its coefficient:

x28x+16=x2+x29x=18/:(9)x=2 x^2-8x+16=x^2+x-2\\ -9x=-18\hspace{8pt}\text{/}:(-9)\\ \boxed{x=2} Therefore the correct answer is answer A.

Answer

x=2 x=2

Exercise #5

6016y+y2=4 60-16y+y^2=-4

Video Solution

Step-by-Step Solution

Let's solve the given equation:

6016y+y2=4 60-16y+y^2=-4 First, let's arrange the equation by moving terms:

6016y+y2=46016y+y2+4=0y216y+64=0 60-16y+y^2=-4 \\ 60-16y+y^2+4=0 \\ y^2-16y+64=0 Now, let's note that we can break down the expression on the left side using the short quadratic factoring formula:

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-2\textcolor{red}{a}\textcolor{blue}{b}+\textcolor{blue}{b}^2 This is done using the fact that:

64=82 64=8^2 So let's present the outer term on the right as a square:

y216y+64=0y216y+82=0 y^2-16y+64=0 \\ \downarrow\\ \textcolor{red}{y}^2-16y+\textcolor{blue}{8}^2=0 Now let's examine again the short factoring formula we mentioned earlier:

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-\underline{2\textcolor{red}{a}\textcolor{blue}{b}}+\textcolor{blue}{b}^2 And the expression on the left side of the equation we got in the last step:

y216y+82=0 \textcolor{red}{y}^2-\underline{16y}+\textcolor{blue}{8}^2=0 Let's note that the terms y2,82 \textcolor{red}{y}^2,\hspace{6pt}\textcolor{blue}{8}^2 indeed match the form of the first and third terms in the short multiplication formula (which are highlighted in red and blue),

But in order for us to break down the relevant expression (which is on the left side of the equation) using the short formula we mentioned, the match to the short formula must also apply to the remaining term, meaning the middle term in the expression (underlined):

(ab)2=a22ab+b2 (\textcolor{red}{a}-\textcolor{blue}{b})^2=\textcolor{red}{a}^2-\underline{2\textcolor{red}{a}\textcolor{blue}{b}}+\textcolor{blue}{b}^2 In other words - we'll ask if it's possible to present the expression on the left side of the equation as:

y216y+82=0?y22y8+82=0 \textcolor{red}{y}^2-\underline{16y}+\textcolor{blue}{8}^2 =0 \\ \updownarrow\text{?}\\ \textcolor{red}{y}^2-\underline{2\cdot\textcolor{red}{y}\cdot\textcolor{blue}{8}}+\textcolor{blue}{8}^2 =0 And indeed it holds that:

2y8=16y 2\cdot y\cdot8=16y So we can present the expression on the left side of the given equation as a difference of two squares:

y22y8+82=0(y8)2=0 \textcolor{red}{y}^2-2\cdot\textcolor{red}{y}\cdot\textcolor{blue}{8}+\textcolor{blue}{8}^2=0 \\ \downarrow\\ (\textcolor{red}{y}-\textcolor{blue}{8})^2=0 From here we can take out square roots for the two sides of the equation (remember that there are two possibilities - positive and negative when taking out square roots), we'll solve it easily by isolating the variable on one side:

(y8)2=0/y8=±0y8=0y=8 (y-8)^2=0\hspace{8pt}\text{/}\sqrt{\hspace{6pt}}\\ y-8=\pm0\\ y-8=0\\ \boxed{y=8}

Let's summarize then the solution of the equation:

6016y+y2=4y216y+64=0y22y8+82=0(y8)2=0y8=0y=8 60-16y+y^2=-4 \\ y^2-16y+64=0 \\ \downarrow\\ \textcolor{red}{y}^2-2\cdot\textcolor{red}{y}\cdot\textcolor{blue}{8}+\textcolor{blue}{8}^2=0 \\ \downarrow\\ (\textcolor{red}{y}-\textcolor{blue}{8})^2=0 \\ \downarrow\\ y-8=0\\ \downarrow\\ \boxed{y=8}

So the correct answer is answer a.

Answer

y=8 y=8

Join Over 30,000 Students Excelling in Math!
Endless Practice, Expert Guidance - Elevate Your Math Skills Today
Test your knowledge
Start practice