Curious Jr By PW

a² + b² Formula: Definition, Examples & Uses

Learn the a² + b² formula, its meaning, derivation and applications in algebra and geometry. Explore equivalent formulas, solved examples, common mistakes and practice questions to understand the sum of squares easily.
authorImageStudy Abroad25 Oct, 2026
a^2 + b^2 Formula | A Square Plus B Square Formula with Examples

The a² + b² formula represents the sum of the squares of two numbers or variables, a and b. It is useful in algebra, mathematical calculations and geometry. The two commonly used forms are:

a² + b² = (a + b)² − 2ab

a² + b² = (a − b)² + 2ab

These formulas help calculate the sum of two squares when the sum or difference of the variables and their product are known. Understanding the formula also helps students distinguish a² + b² from (a + b)² and a² − b².

What Is the a² + b² Formula?

The a² + b² formula is used to calculate the sum of the squares of two numbers. Here, a² means a multiplied by itself, and b² means b multiplied by itself.

For example, if a = 3 and b = 4:

a² + b² = 3² + 4²

= 9 + 16

= 25

The expression can also be calculated using these two identities:

  • a² + b² = (a + b)² − 2ab

  • a² + b² = (a − b)² + 2ab

Use the first form when the sum a + b and product ab are known. Use the second form when the difference a − b and product ab are known.

At CuriousJr, students can learn the a² + b² formula through simple explanations, solved examples, and practical applications to strengthen their algebra skills.

a Square Plus b Square Formula

The a square plus b square formula has two equivalent forms:

Formula 1:

a² + b² = (a + b)² − 2ab

Formula 2:

a² + b² = (a − b)² + 2ab

Both formulas give the same result. The choice depends on the information provided in the question.

Why Are There Two Forms?

The two forms come from the identities for the square of a sum and the square of a difference.

We know:

(a + b)² = a² + 2ab + b²

Rearranging the equation gives:

a² + b² = (a + b)² − 2ab

Similarly:

(a − b)² = a² − 2ab + b²

Rearranging gives:

a² + b² = (a − b)² + 2ab

Therefore, both forms are correct and can be used to find the sum of two squares.

Derivation of the a² + b² Formula

The a² + b² formula can be derived using the identities for the square of a sum and the square of a difference.

Derivation Using (a + b)²

Start with the square of a sum:

(a + b)² = a² + 2ab + b²

Subtract 2ab from both sides:

(a + b)² − 2ab = a² + b²

Therefore:

a² + b² = (a + b)² − 2ab

Derivation Using (a − b)²

Start with the square of a difference:

(a − b)² = a² − 2ab + b²

Add 2ab to both sides:

(a − b)² + 2ab = a² + b²

Therefore:

a² + b² = (a − b)² + 2ab

These derivations show why the two formulas are equivalent.

CuriousJr Mental Maths classes help students understand algebraic formulas like a² + b², practise calculations, and develop numerical accuracy, problem-solving skills, and mathematical confidence.

How to Find a² + b²

Follow these steps to calculate a² + b² using the formula.

  1. Check whether the sum a + b or difference a − b is given.

  2. Identify the product ab.

  3. Choose the appropriate formula.

  4. Substitute the known values.

  5. Simplify the expression to obtain the answer.

Example 1: If a + b = 10 and ab = 21

Given:

a + b = 10

ab = 21

Use the formula:

a² + b² = (a + b)² − 2ab

Substitute the values:

= 10² − 2(21)

= 100 − 42

= 58

Answer: a² + b² = 58

Example 2: Find 15² + 5²

Given:

a = 15, b = 5

Therefore:

a + b = 20

ab = 75

Using the formula:

a² + b² = (a + b)² − 2ab

= 20² − 2(75)

= 400 − 150

= 250

Answer: 15² + 5² = 250

Example 3: If a − b = 7 and ab = 6

Given:

a − b = 7

ab = 6

Use the difference form:

a² + b² = (a − b)² + 2ab

Substitute the values:

= 7² + 2(6)

= 49 + 12

= 61

Answer: a² + b² = 61

Also Read, what a mixed fraction is with its definition, formula, and examples. Understand how to convert improper fractions into mixed numbers and perform basic mathematical operations with easy, step-by-step explanat

a² + b² Formula Expansion

The expression a² + b² is already the sum of two squares. It is different from the expansion of (a + b)² because the latter contains an additional middle term, 2ab.

The expansion of the square of a sum is:

(a + b)² = a² + 2ab + b²

Therefore:

a² + b² = (a + b)² − 2ab

For example, if a = 2 and b = 3:

a² + b² = 2² + 3²

= 4 + 9

= 13

However:

(a + b)² = (2 + 3)²

= 5²

= 25

Thus, a² + b² is 13, whereas (a + b)² is 25. The two expressions are not equal in this example.

Also Read, how to write XXXI in numbers and understand its value in Roman numerals. Explore the rules, breakdown, and examples to convert Roman numerals into numbers easily.

Difference Between a² + b² and a² − b²

Although these expressions look similar, they represent different mathematical operations.

a² + b²

This expression represents the sum of two squares. Its equivalent forms are:

a² + b² = (a + b)² − 2ab

or

a² + b² = (a − b)² + 2ab

a² − b²

This expression represents the difference between two squares. It can be factorised using the identity:

a² − b² = (a + b)(a − b)

For example:

5² − 3² = 25 − 9 = 16

Using the identity:

(5 + 3)(5 − 3) = 8 × 2 = 16

Both methods give the same result.

Remember that a² + b² and a² − b² are different expressions. The plus sign represents addition, while the minus sign represents subtraction.

a² + b² and (a + b)²

Students often confuse a² + b² with (a + b)². However, the two expressions are not generally equal.

The correct expansion is:

(a + b)² = a² + 2ab + b²

The additional term 2ab makes the difference between the expressions.

For example, let a = 3 and b = 2.

First, calculate the sum of squares:

a² + b² = 3² + 2²

= 9 + 4

= 13

Now calculate the square of the sum:

(a + b)² = (3 + 2)²

= 5²

= 25

The difference is:

25 − 13 = 12

Also, 2ab = 2 × 3 × 2 = 12.

This confirms that (a + b)² contains the additional term 2ab.

Also Read, Rounding numbers with simple definitions, rules, steps, and examples. Learn how to round numbers to the nearest ten, hundred, and thousand to simplify calculations and solve maths problems easily.

Uses of the a² + b² Formula

The a² + b² formula is useful in several mathematical situations.

  • Algebra: It helps simplify expressions and calculate the sum of squares.

  • Solving problems: It can be used when the sum or difference of two variables and their product are known.

  • Mathematical identities: It helps students understand the relationship between squares, sums and differences.

  • Geometry: The sum of squares appears in the Pythagorean theorem for right-angled triangles.

In a right-angled triangle, the Pythagorean theorem states:

a² + b² = c²

Here, a and b represent the lengths of the two perpendicular sides, and c represents the hypotenuse, the longest side opposite the right angle.

For example, if a = 3 and b = 4:

c² = 3² + 4²

c² = 9 + 16 = 25

Therefore, c = 5, taking the positive value because side lengths are positive.

Common Mistakes in the a² + b² Formula

Students can avoid errors by remembering the following points.

1. Confusing a² + b² with (a + b)²

Incorrect:

a² + b² = (a + b)²

Correct:

a² + b² = (a + b)² − 2ab

2. Forgetting the 2ab Term

When using the sum form, subtract 2ab from the square of the sum.

a² + b² = (a + b)² − 2ab

3. Using the Wrong Sign

The signs differ between the two equivalent forms.

  • Sum form: a² + b² = (a + b)² − 2ab

  • Difference form: a² + b² = (a − b)² + 2ab

4. Confusing the Sum and Difference of Squares

Remember:

  • a² + b² represents the sum of two squares.

  • a² − b² represents the difference of two squares.

  • a² − b² = (a + b)(a − b).

Checking the signs and expanding the brackets carefully can help prevent these mistakes.

Quick Revision: a² + b² Formula

Concept

Formula

Sum of squares

a² + b²

Using the sum

a² + b² = (a + b)² − 2ab

Using the difference

a² + b² = (a − b)² + 2ab

Square of a sum

(a + b)² = a² + 2ab + b²

Square of a difference

(a − b)² = a² − 2ab + b²

Difference of squares

a² − b² = (a + b)(a − b)

a² + b² Formula Practice Questions

Try solving these questions using the formulas explained above.

  1. Find a² + b² if a + b = 8 and ab = 12.

  2. Find a² + b² if a − b = 5 and ab = 4.

  3. Calculate 6² + 8².

  4. Expand (a + b)².

  5. Factorise a² − b².

Answers:

  1. a² + b² = 8² − 2(12) = 64 − 24 = 40.

  2. a² + b² = 5² + 2(4) = 25 + 8 = 33.

  3. 6² + 8² = 36 + 64 = 100.

  4. (a + b)² = a² + 2ab + b².

  5. a² − b² = (a + b)(a − b).

a^2 + b^2 Formula FAQs

What is the formula of a^2+ b^2 ?

The two equivalent forms are a² + b² = (a + b)² − 2ab and a² + b² = (a − b)² + 2ab.

What is a^2+ b^2 equal to?

It is the sum of the squares of a and b. Its value depends on the values of the variables or the information provided.

Is a^2+ b^2 the same as (a + b)^2?

No. (a + b)² = a² + 2ab + b², so it contains the additional term 2ab.

What is the difference between a^2+ b^2 and a^2- b^2?

a² + b² is the sum of two squares, whereas a² − b² is their difference and can be factorised as (a + b)(a − b).

How do I choose the correct a^2+ b^2 formula?

Use (a + b)² − 2ab when the sum and product are known. Use (a − b)² + 2ab when the difference and product are known.
avatar

Get Free Counselling Today

and Clear up all your Doubts

Talk to Our Counsellor just by filling out the form.
Student Name
Phone Number
IN
+91
OTP
Join 15 Million students on the app today!
Point IconLive & recorded classes available at ease
Point IconDashboard for progress tracking
Point IconLakhs of practice questions
Download ButtonDownload Button
Banner Image
Banner Image
Curious Jr By PW
Curious Jr By PW

We understand that every student has different needs and capabilities, which is why we create such a wonderful and unique curriculum that is the best fit for every student.