Sei sulla pagina 1di 17

# Difference of two

squares

## In mathematics, the difference of two

squares is a squared (multiplied by itself)
number subtracted from another squared
number. Every difference of squares may
be factored according to the identity

in elementary algebra.

Proof
Proof
The proof of the factorization identity is
straightforward. Starting from the left-
hand side, apply the distributive law to
get

terms cancel:

leaving

## The resulting identity is one of the most

commonly used in mathematics. Among
many uses, it gives a simple proof of the
AM–GM inequality in two variables.
The proof just given indicates the scope
of the identity in abstract algebra: it will
hold in any commutative ring R.

## Conversely, if this identity holds in a ring

R for all pairs of elements a and b of the
ring, then R is commutative. To see this,
apply the distributive law to the right-
hand side of the original equation and
get

## and for this to be equal to , we

must have
for all pairs a, b of elements of R, so the
ring R is commutative.

Geometrical demonstrations
The difference of two
squares can also be
illustrated geometrically as
the difference of two square
areas in a plane. In the diagram, the
between the areas of the two squares,
i.e. . The area of the shaded part
can be found by adding the areas of the
two rectangles; ,
which can be factorized to
. Therefore

## Another geometric proof proceeds as

the ﬁrst diagram below, a large square
with a smaller square removed from it.
The side of the entire square is a, and the
side of the small removed square is b.
The area of the shaded region is
. A cut is made, splitting the region into
two rectangular pieces, as shown in the
second diagram. The larger piece, at the
top, has width a and height a-b. The
smaller piece, at the bottom, has width a-
b and height b. Now the smaller piece
can be detached, rotated, and placed to
the right of the larger piece. In this new
arrangement, shown in the last diagram
below, the two pieces together form a
rectangle, whose width is and
whose height is . This rectangle's
area is . Since this
rectangle came from rearranging the
original ﬁgure, it must have the same
area as the original ﬁgure. Therefore,
.

Uses
Factorization of polynomials
and simpliﬁcation of
expressions

## The formula for the difference of two

squares can be used for factoring
polynomials that contain the square of a
ﬁrst quantity minus the square of a
second quantity. For example, the
polynomial can be factored as
follows:

## As a second example, the ﬁrst two terms

of can be factored as
, so we have:
Moreover, this formula can also be used
for simplifying expressions:

of two squares

## The difference of two squares is used to

ﬁnd the linear factors of the sum of two
squares, using complex number
coefﬁcients.

## For example, the complex roots of

can be found using difference of
two squares:

(since )
Therefore the linear factors are
and .

## Since the two factors found by this

method are complex conjugates, we can
use this in reverse as a method of
multiplying a complex number to get a
real number. This is used to get real
denominators in complex fractions.[1]

Rationalising denominators

## The difference of two squares can also

be used in the rationalising of irrational
denominators.[2] This is a method for
removing surds from expressions (or at
least moving them), applying to division
by some combinations involving square
roots.

## Here, the irrational denominator

has been rationalised to   .

Mental arithmetic

## The difference of two squares can also

be used as an arithmetical short cut. If
you are multiplying two numbers whose
average is a number which is easily
squared the difference of two squares
can be used to give you the product of
the original two numbers.
For example:

## Which means using the difference of two

squares   can be restated as

which is   .

perfect squares

## The difference of two consecutive

perfect squares is the sum of the two
bases n and n+1. This can be seen as
follows:

Therefore the difference of two
consecutive perfect squares is an odd
number. Similarly, the difference of two
arbitrary perfect squares is calculated as
follows:

## Therefore the difference of two even

perfect squares is a multiple of 4 and the
difference of two odd perfect squares is
a multiple of 8.

Generalizations
Vectors a (purple), b (cyan) and a + b (blue) are
shown with arrows

## The identity also holds in inner product

spaces over the ﬁeld of real numbers,
such as for dot product of Euclidean
vectors:

## The proof is identical. By the way,

assuming that a and b have equal norms
(which means that their dot squares are
equal), it demonstrates analytically the
fact that two diagonals of a rhombus are
perpendicular.

## If a and b are two elements of a

commutative ring R, then
.

## Note that binomial coefﬁcients do not

appear in the second factor, and the
summation stops at n-1, not n.

Congruum, the shared difference of
three squares in arithmetic
progression
Conjugate (algebra)
Factorization

Notes
1. Complex or imaginary numbers
TheMathPage.com, retrieved 22
December 2011
TheMathPage.com, retrieved 22
December 2011

References
James Stuart Stanton: Encyclopedia of
Mathematics. Infobase Publishing,
2005, ISBN 9780816051243, p. 131
(online copy )
Alan S. Tussy, Roy David Gustafson:
Elementary Algebra, 5th ed.. Cengage
Learning, 2011, ISBN 9781111567668,
pp. 467 - 469 (online copy )

difference of two squares at
mathpages.com