Square and cube formulas are basic algebraic identities that make many mathematical calculations easier and faster. They are especially useful when expanding brackets, simplifying algebraic expressions, solving equations, and finding the values of expressions without performing lengthy multiplication. The square of a number means multiplying it by itself, while the cube of a number means multiplying it by itself three times. For example, the square of 5 is 5² = 25, and the cube of 5 is 5³ = 125.
In algebra, square and cube formulas provide standard patterns that can be applied to expressions containing variables and numbers. Understanding these formulas is more useful than simply memorizing them because the same patterns appear repeatedly in algebra, geometry, coordinate mathematics, and higher-level mathematics. In this article, we will learn the important square and cube formulas, understand how they are derived, and see how they can be used in mathematical problems.
What Is a Square in Mathematics?
The square of a number or algebraic expression is obtained by multiplying it by itself.
For any number or expression a:
a² = a × a
For example:
7² = 7 × 7 = 49
Similarly, if the expression is x:
x² = x × x
A square can also be represented geometrically. If a square has a side of length a, its area is:
Area = a × a = a²
This is one reason the term “square” is commonly used in mathematics.
What Is a Cube in Mathematics?
The cube of a number or expression is obtained by multiplying it by itself three times.
For any number or expression a:
a³ = a × a × a
For example:
4³ = 4 × 4 × 4 = 64
A cube also has a geometric meaning. If each edge of a cube has length a, its volume is:
Volume = a × a × a = a³
Thus, squares are associated with two-dimensional area, while cubes are associated with three-dimensional volume.
Square of a Binomial Formula
One of the most commonly used square formulas is the square of the sum of two terms.
The formula is:
(a + b)² = a² + 2ab + b²
This formula can be derived by multiplying the two brackets:
(a + b)² = (a + b)(a + b)
Multiplying each term:
= a² + ab + ab + b²
Combining the two ab terms:
= a² + 2ab + b²
Therefore:
(a + b)² = a² + 2ab + b²
Example
Expand:
(x + 5)²
Using the formula:
(a + b)² = a² + 2ab + b²
Here, a = x and b = 5.
Therefore:
(x + 5)² = x² + 2(x)(5) + 5²
= x² + 10x + 25
So:
(x + 5)² = x² + 10x + 25
Square of a Difference Formula
Another important square formula is the square of the difference between two terms.
The formula is:
(a − b)² = a² − 2ab + b²
To understand why this works:
(a − b)² = (a − b)(a − b)
Multiplying the terms:
= a² − ab − ab + b²
Combining the middle terms:
= a² − 2ab + b²
Therefore:
(a − b)² = a² − 2ab + b²
Example
Expand:
(x − 4)²
Using the formula:
(x − 4)² = x² − 2(x)(4) + 4²
= x² − 8x + 16
Therefore:
(x − 4)² = x² − 8x + 16
Difference of Two Squares Formula
The difference of two squares is another important algebraic identity.
The formula is:
a² − b² = (a + b)(a − b)
This identity is useful for factorization as well as simplifying expressions.
It can be verified by multiplying:
(a + b)(a − b)
= a² − ab + ab − b²
The middle terms cancel:
= a² − b²
Therefore:
a² − b² = (a + b)(a − b)
Example
Factorize:
x² − 25
Since:
25 = 5²
we can write:
x² − 25 = x² − 5²
Using the difference of squares formula:
x² − 5² = (x + 5)(x − 5)
Therefore:
x² − 25 = (x + 5)(x − 5)
Square Formula for Three Terms
A useful extension of the square formulas is the square of the sum of three terms.
The formula is:
(a + b + c)² = a² + b² + c² + 2ab + 2bc + 2ca
This can be understood by multiplying:
(a + b + c)(a + b + c)
Each term is multiplied by every term in the second bracket. The squared terms are a², b², and c², while each pair of different terms appears twice.
Thus:
(a + b + c)² = a² + b² + c² + 2ab + 2bc + 2ca
Example
Expand:
(x + y + 2)²
Here:
a = x, b = y, and c = 2.
Therefore:
(x + y + 2)² = x² + y² + 2² + 2xy + 2(y)(2) + 2(2)(x)
= x² + y² + 4 + 2xy + 4y + 4x
So:
(x + y + 2)² = x² + y² + 2xy + 4x + 4y + 4
Cube of the Sum of Two Terms
The cube of the sum of two terms follows another important algebraic identity.
The formula is:
(a + b)³ = a³ + 3a²b + 3ab² + b³
This formula can be derived by writing:
(a + b)³ = (a + b)(a + b)²
First use the square formula:
(a + b)² = a² + 2ab + b²
Therefore:
(a + b)³ = (a + b)(a² + 2ab + b²)
Multiplying:
= a³ + 2a²b + ab² + a²b + 2ab² + b³
Combining like terms:
= a³ + 3a²b + 3ab² + b³
Therefore:
(a + b)³ = a³ + 3a²b + 3ab² + b³
Example
Expand:
(x + 2)³
Using the formula:
(x + 2)³ = x³ + 3(x²)(2) + 3(x)(2²) + 2³
= x³ + 6x² + 12x + 8
Therefore:
(x + 2)³ = x³ + 6x² + 12x + 8
Cube of the Difference of Two Terms
The cube of the difference of two terms is given by:
(a − b)³ = a³ − 3a²b + 3ab² − b³
Notice the alternating signs in this formula.
It can be derived by multiplying:
(a − b)(a − b)²
Since:
(a − b)² = a² − 2ab + b²
we get:
(a − b)³ = (a − b)(a² − 2ab + b²)
After multiplication and simplification:
(a − b)³ = a³ − 3a²b + 3ab² − b³
Example
Expand:
(x − 3)³
Using the formula:
(x − 3)³ = x³ − 3(x²)(3) + 3(x)(3²) − 3³
= x³ − 9x² + 27x − 27
Therefore:
(x − 3)³ = x³ − 9x² + 27x − 27
Sum of Two Cubes Formula
The sum of two cubes can be factorized using:
a³ + b³ = (a + b)(a² − ab + b²)
This formula is especially useful when solving algebraic factorization problems.
Example
Factorize:
x³ + 8
Since:
8 = 2³
we have:
x³ + 8 = x³ + 2³
Using the formula:
a³ + b³ = (a + b)(a² − ab + b²)
Therefore:
x³ + 2³ = (x + 2)(x² − 2x + 4)
So:
x³ + 8 = (x + 2)(x² − 2x + 4)
Difference of Two Cubes Formula
The difference of two cubes is given by:
a³ − b³ = (a − b)(a² + ab + b²)
Example
Factorize:
x³ − 27
Since:
27 = 3³
we can write:
x³ − 27 = x³ − 3³
Using the formula:
a³ − b³ = (a − b)(a² + ab + b²)
Therefore:
x³ − 3³ = (x − 3)(x² + 3x + 9)
So:
x³ − 27 = (x − 3)(x² + 3x + 9)
Important Square and Cube Formulas
The most useful formulas can be summarized as follows:
(a + b)² = a² + 2ab + b²
(a − b)² = a² − 2ab + b²
a² − b² = (a + b)(a − b)
(a + b + c)² = a² + b² + c² + 2ab + 2bc + 2ca
(a + b)³ = a³ + 3a²b + 3ab² + b³
(a − b)³ = a³ − 3a²b + 3ab² − b³
a³ + b³ = (a + b)(a² − ab + b²)
a³ − b³ = (a − b)(a² + ab + b²)
These identities form an important part of elementary algebra and are used repeatedly in mathematical calculations.
How Square and Cube Formulas Help in Calculations
Square and cube formulas are not limited to algebraic expansion. They can also make numerical calculations faster.
For example, consider:
102²
Instead of multiplying 102 by 102 directly, write:
102² = (100 + 2)²
Using:
(a + b)² = a² + 2ab + b²
we get:
= 100² + 2(100)(2) + 2²
= 10000 + 400 + 4
= 10404
Similarly, consider:
98²
Write:
98² = (100 − 2)²
Therefore:
98² = 100² − 2(100)(2) + 2²
= 10000 − 400 + 4
= 9604
The same idea can be used for cubes.
For example:
101³ = (100 + 1)³
Using the cube formula:
(a + b)³ = a³ + 3a²b + 3ab² + b³
we get:
101³ = 100³ + 3(100²)(1) + 3(100)(1²) + 1³
= 1000000 + 30000 + 300 + 1
= 1030301
Thus, algebraic identities can also provide convenient methods for mental and written calculations.
Common Mistakes in Square and Cube Formulas
Students and beginners often make mistakes when applying these identities. One common error is writing:
(a + b)² = a² + b²
This is incorrect because the middle term 2ab is missing. The correct formula is:
(a + b)² = a² + 2ab + b²
Another common mistake occurs with the square of a difference. The correct expression is:
(a − b)² = a² − 2ab + b²
The final term is positive because (-b) × (-b) = b².
The cube formulas also require careful attention to signs. In:
(a − b)³ = a³ − 3a²b + 3ab² − b³
the signs follow the pattern positive, negative, positive, negative.
A good way to avoid these mistakes is to understand how each formula is obtained rather than memorizing it without understanding.
Applications of Square and Cube Formulas
Square and cube formulas are used in many areas of mathematics. In algebra, they help expand and factorize expressions. In arithmetic, they provide faster ways to calculate squares and cubes of numbers. In geometry, squares are used when finding areas, while cubes are used when calculating volumes.
These formulas also appear in coordinate geometry, equations, polynomial manipulation, sequences, and higher algebra. As mathematical expressions become more complicated, algebraic identities provide shorter and more organized ways to perform calculations.
Learning these formulas therefore creates a strong foundation for more advanced mathematical topics.
Conclusion
Square and cube formulas are fundamental algebraic identities that simplify mathematical calculations and expressions. The square formulas help expand expressions such as (a + b)² and (a − b)², while cube formulas help expand and factorize expressions involving powers of three. Important identities such as the difference of two squares, the sum of two cubes, and the difference of two cubes are especially useful in algebraic manipulation.
Understanding the structure behind these formulas is more effective than memorizing them alone. Once their patterns become familiar, they can be applied quickly to both algebraic expressions and numerical calculations. Regular practice with expansion, factorization, and numerical examples can make these formulas easier to recognize and use correctly.
FAQs
1. What is the square of a number in mathematics?
The square of a number is the result obtained when the number is multiplied by itself. It is represented by putting the power 2 after the number. For example, the square of 6 is written as 6² and calculated as 6 × 6 = 36. In algebra, the square of a variable such as x is written as x², meaning x × x. Square values are commonly used in algebra, geometry, equations, and mathematical calculations. The square of a quantity can also represent the area of a square when its side length is given. Understanding squares is an important foundation for learning algebraic identities.
2. What is the cube of a number in mathematics?
The cube of a number is obtained by multiplying the number by itself three times. It is represented using the power 3. For example, the cube of 4 is 4³, which means 4 × 4 × 4 = 64. Similarly, the cube of a variable x is written as x³. Cubes have an important geometric meaning because the volume of a cube with side length a is a³. Cube calculations are also used in algebra, factorization, geometry, and higher mathematics. Understanding how cubes work makes it easier to apply important identities such as the sum and difference of two cubes.
3. What is the formula for the square of a sum?
The formula for the square of a sum of two terms is (a + b)² = a² + 2ab + b². It is used to expand an expression containing the square of a bracket. For example, (x + 3)² can be expanded as x² + 2(x)(3) + 3², giving x² + 6x + 9. The middle term, 2ab, is important and should not be omitted. This identity can be derived by multiplying (a + b) by itself. It is one of the most frequently used algebraic formulas for simplifying expressions and solving mathematical problems.
4. What is the formula for the square of a difference?
The square of a difference is given by (a − b)² = a² − 2ab + b². This identity is used to expand expressions where one term is subtracted from another and the entire expression is squared. For example, (x − 5)² becomes x² − 10x + 25. Although the expression contains a minus sign, the last term is positive because b is multiplied by itself. The middle term is negative because it comes from two products involving the negative term. Understanding this formula helps simplify algebraic expressions and prevents common mistakes when working with squared brackets.
5. What is the difference of two squares formula?
The difference of two squares formula is a² − b² = (a + b)(a − b). It is mainly used for factorizing algebraic expressions. For example, x² − 16 can be written as x² − 4². Applying the formula gives (x + 4)(x − 4). This identity works because multiplying (a + b) by (a − b) produces a² − b²; the middle terms cancel each other. Recognizing a difference of two squares can make factorization much faster. It is widely used in algebra and is an important identity to understand before working with more complex polynomial expressions.
6. What is the formula for the cube of a sum?
The cube of a sum is given by (a + b)³ = a³ + 3a²b + 3ab² + b³. This formula is used to expand the cube of an expression containing two added terms. For example, (x + 2)³ becomes x³ + 3x²(2) + 3x(2²) + 2³, which simplifies to x³ + 6x² + 12x + 8. The formula can be derived by multiplying (a + b) by (a + b)². It is useful for algebraic expansion and can also make numerical cube calculations easier when a number is close to a convenient value.
7. What is the formula for the cube of a difference?
The cube of a difference is represented by (a − b)³ = a³ − 3a²b + 3ab² − b³. This identity helps expand algebraic expressions involving the cube of a subtraction. For example, (x − 2)³ becomes x³ − 6x² + 12x − 8. The signs in this formula alternate between positive and negative. Remembering the signs is important because incorrect signs can change the final answer. The formula can be obtained by multiplying (a − b) by (a − b)². It is useful in algebraic expansion, simplification, factorization, and many mathematical calculations involving cubic expressions.
8. What is the formula for the sum of two cubes?
The sum of two cubes can be factorized using the formula a³ + b³ = (a + b)(a² − ab + b²). This identity is useful when an algebraic expression contains two perfect cubes connected by addition. For example, x³ + 8 can be written as x³ + 2³. Applying the formula gives (x + 2)(x² − 2x + 4). The first factor contains the sum of the cube roots, while the second factor follows the pattern shown in the formula. Recognizing perfect cubes makes this type of factorization easier and is useful in algebra and polynomial simplification.
9. What is the formula for the difference of two cubes?
The difference of two cubes is factorized using a³ − b³ = (a − b)(a² + ab + b²). For example, x³ − 27 can be written as x³ − 3³. Applying the formula gives (x − 3)(x² + 3x + 9). This identity is useful when an expression consists of two perfect cubes separated by a subtraction sign. The first factor is the difference of their cube roots, while the second factor contains the squares of the terms and their product. Learning to identify perfect cubes helps make polynomial factorization faster and more systematic.
10. Why are square and cube formulas important in mathematics?
Square and cube formulas are important because they provide efficient ways to expand, simplify, and factorize mathematical expressions. Instead of multiplying long expressions directly, these identities provide standard patterns that can be applied quickly. They are useful in algebra, arithmetic, geometry, equations, and higher mathematics. For example, formulas such as (a + b)², (a − b)², a² − b², (a + b)³, a³ + b³, and a³ − b³ appear frequently in mathematical problems. Understanding these formulas also helps with mental calculations, especially when numbers are close to convenient values such as 10, 100, or 1000.

















