Difference of two squares

Difference of two squares

In mathematics, the difference of two squares, or the difference of perfect squares, is when a number is squared, or multiplied by itself, and is then subtracted from another squared number. It refers to the identity

a^2-b^2 = \left(a-b\right)\left(a+b\right)

from elementary algebra.

Contents

Proof

The proof is straightforward, starting from the RHS: apply the distributive law to get a sum of four terms, and set as an application of the commutative law. The resulting identity is one of the most commonly used in all of mathematics.

ba - ab = 0\,\!

The proof just given indicates the scope of the identity in abstract algebra: it will hold in any commutative ring R.

Also, 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, we apply the distributive law to the right-hand side of the original equation and get

a^2 - ab + ba - b^2\,\!

and if this is equal to a2b2, then we have

a^2 - ab + ba - b^2 - \left(a^2 - b^2\right) = 0\,\!

and by associativity and the rule that rr = 0, we can rewrite this as

ba - ab = 0.\,\!

If the original identity holds, then, we have baab = 0 for all pairs a, b of elements of R, so the ring R is commutative.

In geometry

Difference of two squares.png

The difference of two squares can also be illustrated geometrically as the difference of two square areas in a plane. In the diagram, the shaded part represents the difference between the areas of the two squares, i.e. a2b2. The area of the shaded part can be found by adding the areas of the two rectangles; a(ab) + b(ab), which can be factorized to (a + b)(ab). Therefore a2b2 = (a + b)(ab)


Another geometric proof proceeds as follows: We start with the figure shown in the first 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 a2b2. 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 a + b and whose height is ab. This rectangle's area is (a + b)(ab). Since this rectangle came from rearranging the original figure, it must have the same area as the original figure. Therefore, a2b2 = (a + b)(ab).Any odd number can be expressed as difference of two squares. Difference of two squares geometric proof.png

Uses

Complex number case: sum of two squares

The difference of two squares is used to find the linear factors of the sum of two squares, using complex number coefficients.

For example, the root of z^2 + 5\,\! can be found using difference of two squares:

z^2 + 5\,\!
 = z^2 - (\sqrt{-5})^2
 = z^2 - (i\sqrt5)^2
 = (z + i\sqrt5)(z - i\sqrt5)

Therefore the linear factors are (z + i\sqrt5) and (z - i\sqrt5).

Rationalising denominators

The difference of two squares can also be used in the rationalising of irrational denominators. This is a method for removing surds from expressions (or at least moving them), applying to division by some combinations involving square roots.

For example: The denominator of \dfrac{5}{\sqrt{3} + 4}\,\! can be rationalised as follows:


\dfrac{5}{\sqrt{3} + 4}\,\!


 = \dfrac{5}{\sqrt{3} + 4} \times \dfrac{\sqrt{3} - 4}{\sqrt{3} - 4}\,\!


 = \dfrac{5(\sqrt{3} - 4)}{(\sqrt{3} + 4)(\sqrt{3} - 4)}\,\!


 = \dfrac{5(\sqrt{3} - 4)}{\sqrt{3}^2 - 4^2}\,\!


 = \dfrac{5(\sqrt{3} - 4)}{3 - 16}\,\!


 = -\dfrac{5(\sqrt{3} - 4)}{13}\,\!


Here, the irrational denominator \sqrt{3} + 4\,\! has been rationalised to 13\,\!. Any odd number can be expressed as difference of two squares.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • difference of two squares — noun The identity that holds for all real numbers. The fraction can be simplified to using the difference of two squares …   Wiktionary

  • Mean difference — The mean difference is a measure of statistical dispersion equal to the average absolute difference of two independent values drawn from a probability distribution. A related statistic is the relative mean difference, which is the mean difference …   Wikipedia

  • Tabular difference — Tabular Tab u*lar, a. [L. tabularis, fr. tabula a board, table. See {Table}.] Having the form of, or pertaining to, a table (in any of the uses of the word). Specifically: [1913 Webster] (a) Having a flat surface; as, a tabular rock. [1913… …   The Collaborative International Dictionary of English

  • Ordinary least squares — This article is about the statistical properties of unweighted linear regression analysis. For more general regression analysis, see regression analysis. For linear regression on a single variable, see simple linear regression. For the… …   Wikipedia

  • Least squares — The method of least squares is a standard approach to the approximate solution of overdetermined systems, i.e., sets of equations in which there are more equations than unknowns. Least squares means that the overall solution minimizes the sum of… …   Wikipedia

  • Linear least squares/Proposed — Linear least squares is an important computational problem, that arises primarily in applications when it is desired to fit a linear mathematical model to observations obtained from experiments. Mathematically, it can be stated as the problem of… …   Wikipedia

  • Total least squares — The bivariate (Deming regression) case of Total Least Squares. The red lines show the error in both x and y. This is different from the traditional least squares method which measures error parallel to the y axis. The case shown, with deviations… …   Wikipedia

  • To be all squares — Square Square (skw[^a]r), n. [OF. esquarre, esquierre, F. [ e]querre a carpenter s square (cf. It. squadra), fr. (assumed) LL. exquadrare to make square; L. ex + quadrus a square, fr. quattuor four. See {Four}, and cf. {Quadrant}, {Squad},… …   The Collaborative International Dictionary of English

  • To break no squares — Square Square (skw[^a]r), n. [OF. esquarre, esquierre, F. [ e]querre a carpenter s square (cf. It. squadra), fr. (assumed) LL. exquadrare to make square; L. ex + quadrus a square, fr. quattuor four. See {Four}, and cf. {Quadrant}, {Squad},… …   The Collaborative International Dictionary of English

  • To break squares — Square Square (skw[^a]r), n. [OF. esquarre, esquierre, F. [ e]querre a carpenter s square (cf. It. squadra), fr. (assumed) LL. exquadrare to make square; L. ex + quadrus a square, fr. quattuor four. See {Four}, and cf. {Quadrant}, {Squad},… …   The Collaborative International Dictionary of English

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”