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

Algebraic proof

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

By the commutative law, the middle two 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 holds in any commutative ring.

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

.

For this to be equal to , we must have

for all pairs a, b, so R is commutative.

Geometric proof

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. . 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 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 . 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 figure, it must have the same area as the original figure. Therefore, .

Usage

Factorization of polynomials and simplification of expressions

The formula for the difference of two squares can be used for factoring polynomials that contain the square of a first quantity minus the square of a second quantity. For example, the polynomial can be factored as follows:

As a second example, the first two terms of can be factored as , so we have:

Moreover, this formula can also be used for simplifying expressions:

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 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.

For example: The denominator of can be rationalised as follows:

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 two numbers (whose average is a number which is easily squared) are multiplied, the difference of two squares can be used to give you the product of the original two numbers.

For example:

Using the difference of two squares, can be restated as

which is .

Difference of two consecutive 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.

Galileo's law of odd numbers

Galileo's law of odd numbers

A ramification of the difference of consecutive squares, Galileo's law of odd numbers states that the distance covered by an object falling without resistance in uniform gravity in successive equal time intervals is linearly proportional to the odd numbers. That is, if a body falling from rest covers a certain distance during an arbitrary time interval, it will cover 3, 5, 7, etc. times that distance in the subsequent time intervals of the same length.

From the equation for uniform linear acceleration, the distance covered for initial speed constant acceleration (acceleration due to gravity without air resistance), and time elapsed it follows that the distance is proportional to (in symbols, ), thus the distance from the starting point are consecutive squares for integer values of time elapsed.[3]

Factorization of integers

Several algorithms in number theory and cryptography use differences of squares to find factors of integers and detect composite numbers. A simple example is the Fermat factorization method, which considers the sequence of numbers , for . If one of the equals a perfect square , then is a (potentially non-trivial) factorization of .

This trick can be generalized as follows. If mod and mod , then is composite with non-trivial factors and . This forms the basis of several factorization algorithms (such as the quadratic sieve) and can be combined with the Fermat primality test to give the stronger Miller–Rabin primality test.

Generalizations

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

The identity also holds in inner product spaces over the field of real numbers, such as for dot product of Euclidean vectors:

The proof is identical. For the special case that a and b have equal norms (which means that their dot squares are equal), this demonstrates analytically the fact that two diagonals of a rhombus are perpendicular. This follows from the left side of the equation being equal to zero, requiring the right side to equal zero as well, and so the vector sum of a + b (the long diagonal of the rhombus) dotted with the vector difference a - b (the short diagonal of the rhombus) must equal zero, which indicates the diagonals are perpendicular.

Difference of two nth powers

Visual proof of the differences between two squares and two cubes

If a and b are two elements of a commutative ring, then

Note that the second factor looks similar to the binomial expansion of , except that it does not include the binomial coefficients .

History

Historically, the Babylonians used the difference of two squares to calculate multiplications.[4]

For example:

93 × 87 = 902 − 32 = 8091

64 × 56 = 602 − 42 = 3584

See also

Notes

  1. ^ Complex or imaginary numbers TheMathPage.com, retrieved 22 December 2011
  2. ^ Multiplying Radicals TheMathPage.com, retrieved 22 December 2011
  3. ^ RP Olenick et al., The Mechanical Universe: Introduction to Mechanics and Heat
  4. ^ "Babylonian mathematics".

References

Read other articles:

Cờ Thống đốc các khu định cư Eo biển (1867–1946) Thống đốc Các khu định cư Eo biển cai trị các khu định cư eo biển. Những người đàn ông giữ vị trí này cai quản Định cư Eo biển từ năm 1826 đến năm 1946, thay mặt cho Công ty Đông Ấn Anh (cho đến năm 1858), Văn phòng Ấn Độ (cho đến năm 1867) và Văn phòng Thuộc địa (cho đến năm 1946).[1] Khi không có thống đốc, thư ký trưởng nga...

 

4625 ЩедрінВідкриттяВідкривач Карачкіна Людмила ГеоргіївнаМісце відкриття КрАОДата відкриття 20 жовтня 1982ПозначенняНазвана на честь Щедрін Родіон КостянтиновичТимчасові позначення 1982 UG6 1975 BO 1982 XR4 1986 RC17Категорія малої планети Астероїд головного поясуОрбітальні характ...

 

Ла Крещенте порт. La Creciente Континент Південна АмерикаКраїна  КолумбіяРегіон Lower Magdalena ProvincedВідкрито листопад 2006[1]Розробка 28 грудня 2007[1]Дотично petroleum industry in Colombiad Література Oil & Gas Journal Корисні копалини Південної Америки Геологія Південної Америки Гірнича промис

American aerospace engineer and executive (1887–1956) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Frederick Rentschler – news · newspapers · books · scholar · JSTOR (August 2010) (Learn how and when to remove this template message) Frederick RentschlerRentschler in 1929Born(1887-11-08)November 8, 1887H...

 

شجيرة حناء وقمرمعلومات عامةالمؤلف أحمد التوفيقاللغة عربيةالبلد  المغربالنوع الأدبي روايةالناشر القبة الزرقاء للنشرتاريخ الإصدار 1998التقديمعدد الأجزاء واحدتعديل - تعديل مصدري - تعديل ويكي بيانات شجيرة، حناء وقمر هي رواية للكاتب والمؤرخ المغربي أحمد التوفيق.[1][2&#...

 

Lighthouse in South Carolina, US LighthouseMorris Island Light Morris Island LighthouseLocationMorris Island, South Carolina (Charleston harbor entrance)Coordinates32°41′43″N 79°53′1″W / 32.69528°N 79.88361°W / 32.69528; -79.88361TowerConstructed1767 FoundationTimber piling, concrete baseConstructionDressed stoneAutomated1938Height161 feet (49 m)ShapeConicalHeritageNational Register of Historic Places listed place LightFirst lit1876Deacti...

6th episode of the 3rd season of Game of Thrones The ClimbGame of Thrones episodeEpisode no.Season 3Episode 6Directed byAlik SakharovWritten byDavid BenioffD. B. WeissFeatured musicRamin DjawadiCinematography byDavid KatznelsonEditing byOral Norrie OtteyOriginal air dateMay 5, 2013 (2013-05-05)Running time53 minutesGuest appearances Diana Rigg as Olenna Tyrell Gwendoline Christie as Brienne of Tarth Michael McElhatton as Roose Bolton Paul Kaye as Thoros of Myr Richard Dorm...

 

Motor vehicle Volkswagen ConstellationOverviewManufacturerVolkswagen Truck & BusProduction2005–presentAssemblyResende, Brazil[1]Quezon City, Philippines (MACC)Body and chassisClassCommercial vehicle - truckBody styleTractor unit, Chassis cab, Flatbed - all cab-over-engine Volkswagen Constellation 19.320 Titan tractor unit, at the 2006 IAA Nutzfahrzeuge (Commercial Vehicles show) in Hannover Right-hand drive Volkswagen Constellation 19.320 Titan in South Africa, January 2016...

 

Otomegē Sekai wa Mobu ni Kibishii Sekai DesuGambar sampul volume pertama menampilkan Olivia (kiri) dan Leon Fou Bartfort (kanan).乙女ゲー世界はモブに厳しい世界です(Otomegē Sekai wa Mobu ni Kibishii Sekai Desu)GenreKomedi, Isekai, Fiksi Ilmiah[1] Seri novelPengarangYomu MishimaPenerbitShōsetsuka ni NarōTerbit1 Oktober 2017 (2017-10-01) – 15 Oktober 2019 (2019-10-15) Novel ringanPengarangYomu MishimaIlustratorMondaPenerbitMicro MagazinePenerbit bahasa In...

American whiskey liqueur beverage For other uses, see Southern Comfort (disambiguation). Southern ComfortSouthern ComfortTypeLiqueurManufacturerSazerac CompanyCountry of origin United StatesIntroduced1874Proof (US)100, 80, 70, 60, 42Websitesoutherncomfort.com Southern Comfort (often abbreviated SoCo) is an American, naturally fruit-flavored, whiskey liqueur[1] with fruit and spice accents.[2][3][4][5] The brand was created by bartender Martin Wilke...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: American Girl video game series – news · newspapers · books · scholar · JSTOR (October 2017) (Learn how and when to remove this template message) Video game seriesAmerican GirlGenre(s)Edutainment, AdventureDeveloper(s) Various, including The Learning Compa...

 

Naval forces of the Kingdom of Sardinia, from 1720 to 1861 Royal Sardinian NavyEnsign of the Royal Sardinian Navy from 1816 to 1848Founded1720Disbanded1861Country Kingdom of SardiniaTypeNavyRoleNaval warfareEngagements Battle of Tripoli First Italian War of Independence Second Italian War of Independence Military unit The Royal Sardinian Navy was the naval force of the Kingdom of Sardinia. The fleet was created in 1720 when the Duke of Savoy, Victor Amadeus II, became the King of Sardini...

Katedral SilayPro-Katedral San Diego, SilaySpanyol: Procatedral de San DiegoKatedral Silay10°48′01″N 122°58′33″E / 10.800153°N 122.975839°E / 10.800153; 122.975839Koordinat: 10°48′01″N 122°58′33″E / 10.800153°N 122.975839°E / 10.800153; 122.975839LokasiSilay, Negros OccidentalNegara FilipinaDenominasiGereja Katolik RomaSejarahTanggal konsekrasi1776ArsitekturStatusProkatedralStatus fungsionalaktifArsitekLucio Bern...

 

Enfermedad de Carrión Hombre con la enfermedad de Carrión, 1898.Especialidad infectología[editar datos en Wikidata] La enfermedad de Carrión, fiebre de La Oroya o verruga peruana es una enfermedad infecciosa endémica de América del Sur, encuadrada dentro de las bartonelosis, cuyo agente etiológico es la bacteria Bartonella bacilliformis. Se debe su nombre al mártir de la medicina peruana, Daniel Alcides Carrión.[1]​ Historia Verruga peruana Huaco de Áncash, que repre...

 

Prison centre in Delhi, India For other uses, see Tihar (disambiguation). Tihar JailLocation in DelhiShow map of DelhiLocation in IndiaShow map of IndiaLocationTihar Village, New Delhi, IndiaCoordinates28°37′03″N 77°06′02″E / 28.61750°N 77.10056°E / 28.61750; 77.10056StatusOperatingSecurity classMaximumCapacity10,026Population19,500 [1] (as of 31 December 2022)Opened1957Managed byDepartment of Delhi Prisons, Government of DelhiWebsitetiharprison...

Bell X-22 adalah V/STOL X-plane Amerika Serikat dengan empat kipas miring. X-22 adalah untuk memberikan wawasan yang lebih dalam aplikasi taktis vertikal take-off transporter pasukan seperti pengganti sebelumnya Hiller X-18 dan X-22, Bell XV-15. Persyaratan Program lain adalah kecepatan udara benar di tingkat penerbangan minimal 525 km / h (326 mph, 283 knot). Referensi Apostolo, Giorgio. The Illustrated Encyclopedia of Helicopters. New York: Bonanza Books, 1984. ISBN 0-517-43935-2. Bell-X22A...

 

Chinese film Soul SnatcherTheatrical release posterTraditional Chinese赤狐書生Simplified Chinese赤狐书生Hanyu PinyinChì hú shūshēng Directed bySong HaolinYi LiqiScreenplay byRan JiananLi HuiyanYang WeiweiBased onChun Jiang Hua Yue Yeby Duo DuoProduced byJiang ZhiqiangJayce ShiFan Kim HungSammi ChanRaman Hui[1]StarringChen LinongLi XianHanikeziJiang ChaoPei KuishanChang Chen-kuangLi XiaochuanCinematographyChan Chi YingEdited byZhang QiMusic byJoe Hisaishi[2]Pro...

 

1997-2001 Government the United Kingdom This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (June 2017) (Learn how and when to remove this template message) First Blair ministryCabinet of the United Kingdom1997–2001Blair in 1997Date formed2 May 1997 (1997-05-02)Date dissolved8 June 2001 (2001-06-08)People and organisationsMonarchEli...

2014 studio album by LordiScare Force OneStudio album by LordiReleased31 October 2014 (2014-10-31)Genre Hard rock heavy metal shock rock Length48:08LabelAFM RecordsProducerMikko KarmilaLordi chronology To Beast or Not to Beast(2013) Scare Force One(2014) Monstereophonic (Theaterror vs. Demonarchy)(2016) Singles from Scare Force One Nailed by the Hammer of FrankensteinReleased: 19 September 2014 Scare Force One is the seventh studio album by Finnish rock band Lordi. It w...

 

Come leggere il tassoboxCorydoras imitator Stato di conservazione Specie non valutata Classificazione scientifica Dominio Eukaryota Regno Animalia Sottoregno Eumetazoa Superphylum Deuterostomia Phylum Chordata Subphylum Vertebrata Classe Actinopterygii Sottoclasse Neopterygii Infraclasse Teleostei Superordine Ostariophysi Famiglia Callichthyidae Genere Corydoras Specie C. imitator Nomenclatura binomiale Corydoras imitatorNijssen & Isbrücker, 1983 Corydoras imitator Nijssen & Isbrück...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!