Skip to content

Algebra Formula List: Identities, Exponents and Logarithms

12 formulasUpdated 22 Oct 2026

An algebra formula is an identity that stays true for every value of its letters, such as (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2. Learn about a dozen algebra formulas like this and most simplification, factorisation and "find the value" questions become two line answers.

Below you get the full chart of every algebraic formula (identity) for squares and cubes, the special result for a3+b3+c3−3abca^3 + b^3 + c^3 - 3abc, the laws of exponents and logarithms, and solved examples for each group. The classes where each formula is taught are marked so you can revise only what your syllabus needs. These identities feed straight into the quadratic formula, which is built by completing a square.

Algebra identities

Key formulas

  • (a+b)² formula, a plus b whole square

    (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
  • (a-b)² formula, a minus b whole square

    (a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2
  • a²-b² formula

    a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b)
  • a²+b² formula

    a2+b2=(a+b)2−2ab=(a−b)2+2aba^2 + b^2 = (a + b)^2 - 2ab = (a - b)^2 + 2ab
  • (a+b)³ formula, a plus b whole cube

    (a+b)3=a3+b3+3ab(a+b)(a + b)^3 = a^3 + b^3 + 3ab(a + b)
  • (a-b)³ formula, a minus b whole cube

    (a−b)3=a3−b3−3ab(a−b)(a - b)^3 = a^3 - b^3 - 3ab(a - b)
  • a³+b³ formula

    a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)
  • a³-b³ formula

    a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)
  • (a+b+c)² formula

    (a+b+c)2=a2+b2+c2+2ab+2bc+2ca(a + b + c)^2 = a^2 + b^2 + c^2 + 2ab + 2bc + 2ca
  • a³+b³+c³-3abc formula

    a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca)a^3 + b^3 + c^3 - 3abc = (a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca)
  • Laws of exponents

    aman=am+n,(am)n=amna^m a^n = a^{m+n},\quad (a^m)^n = a^{mn}

    a > 0, or m and n whole numbers

  • Laws of logarithms

    log⁡(mn)=log⁡m+log⁡n\log(mn) = \log m + \log n

    m, n > 0; same base on both sides

What is algebra in maths

Algebra is the part of maths where letters stand for numbers. Instead of saying "some number plus five", you write x+5x + 5. That one step lets you state rules that work for every number at once, solve for unknowns and spot patterns. The meaning of algebra in English is close to "the arithmetic of letters"; the word comes from an Arabic title for a book on restoring and balancing equations.

A few words you will see on this page:

  • Variable: a letter whose value can change, like x or a.
  • Constant: a fixed number, like 7 or π\pi.
  • Term: a product of numbers and letters, such as 3ab3ab or −5x2-5x^2.
  • Factor: anything that multiplies to make a term or expression. In 3ab3ab the factors are 3, a and b; in (x+2)(x−2)(x + 2)(x - 2) the factors are the two brackets.
  • Identity: an equation true for all values of the letters. An ordinary equation, like 2x+1=72x + 1 = 7, is true only for one value (here x=3x = 3).

School algebra builds up through middle school, the standard identities are collected in the class 9 chapter on polynomials, and quadratic equations and arithmetic progressions come in class 10. College courses add linear algebra and abstract algebra, but the identities below are the base for all of it.

Algebra formula chart for squares

NameIdentityFirst met in
a plus b whole square(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2Class 8 or 9
a minus b whole square(a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2Class 8 or 9
Difference of squaresa2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b)Class 8 or 9
Product of two binomials(x+a)(x+b)=x2+(a+b)x+ab(x + a)(x + b) = x^2 + (a + b)x + abClass 8 or 9
Square of a trinomial(a+b+c)2(a + b + c)^2Class 9

The (a+b)2 formula and (a-b)2 formula

Squaring a sum is not the same as adding squares. (a+b)2(a + b)^2 means (a+b)(a+b)(a + b)(a + b); multiply out and you get a2+ab+ab+b2a^2 + ab + ab + b^2, so the middle term is 2ab2ab. For (a−b)2(a - b)^2 only that middle sign flips. Use them for quick mental squares: 1032=(100+3)2=10000+600+9=10609103^2 = (100 + 3)^2 = 10000 + 600 + 9 = 10609, and 9992=(1000−1)2=1000000−2000+1=998001999^2 = (1000 - 1)^2 = 1000000 - 2000 + 1 = 998001.

The a2-b2 formula

The difference of two squares factorises as (a+b)(a−b)(a + b)(a - b). It turns hard subtraction into easy multiplication: 512−492=(51+49)(51−49)=100×2=20051^2 - 49^2 = (51 + 49)(51 - 49) = 100 \times 2 = 200. It also splits x4−16x^4 - 16 into (x2+4)(x+2)(x−2)(x^2 + 4)(x + 2)(x - 2) when you apply it twice.

The a2+b2 formula (a^2+b^2)

There is no factor form of a2+b2a^2 + b^2 using real numbers, so the a^2+b^2 formula is written through the other squares: a2+b2=(a+b)2−2aba^2 + b^2 = (a + b)^2 - 2ab or (a−b)2+2ab(a - b)^2 + 2ab. Use whichever matches the data the question gives you.

The (a+b+c)2 formula

Square each letter and add twice every pair: a2+b2+c2+2ab+2bc+2caa^2 + b^2 + c^2 + 2ab + 2bc + 2ca. Rearranged, it gives the a2+b2+c2 formula: a2+b2+c2=(a+b+c)2−2(ab+bc+ca)a^2 + b^2 + c^2 = (a + b + c)^2 - 2(ab + bc + ca).

Cube identities: a plus b whole cube and more

NameIdentity
a plus b whole cube(a+b)3=a3+3a2b+3ab2+b3(a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3
a minus b whole cube(a−b)3=a3−3a2b+3ab2−b3(a - b)^3 = a^3 - 3a^2b + 3ab^2 - b^3
Sum of cubesa3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2)
Difference of cubesa3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2)

The a + b whole cube formula, (a+b)^3

The a+b whole cube formula has the coefficients 1, 3, 3, 1. Grouping the middle two terms gives the short form (a+b)3=a3+b3+3ab(a+b)(a + b)^3 = a^3 + b^3 + 3ab(a + b), which is the one you will use most. Example: (2x+1)3=8x3+12x2+6x+1(2x + 1)^3 = 8x^3 + 12x^2 + 6x + 1.

The a-b whole cube formula, (a-b)3

Signs alternate: plus, minus, plus, minus. Short form: (a−b)3=a3−b3−3ab(a−b)(a - b)^3 = a^3 - b^3 - 3ab(a - b). For (2x−3y)3(2x - 3y)^3 you get 8x3−36x2y+54xy2−27y38x^3 - 36x^2y + 54xy^2 - 27y^3. Work it once yourself to check the middle coefficients.

The a3+b3 formula, also typed a^3+b^3 formula

The sum of two cubes factorises as (a+b)(a2−ab+b2)(a + b)(a^2 - ab + b^2). Remember the sign pattern "same, opposite, always plus": the first bracket has the same sign as the question, the middle term of the second bracket has the opposite sign, and the last term is plus. Example: 8x3+27=(2x)3+33=(2x+3)(4x2−6x+9)8x^3 + 27 = (2x)^3 + 3^3 = (2x + 3)(4x^2 - 6x + 9). From the cube identity you also get a3+b3=(a+b)3−3ab(a+b)a^3 + b^3 = (a + b)^3 - 3ab(a + b), handy when a + b and ab are given.

The a3-b3 formula (a^3-b^3)

The difference of cubes is (a−b)(a2+ab+b2)(a - b)(a^2 + ab + b^2). Example: x3−64y3=(x−4y)(x2+4xy+16y2)x^3 - 64y^3 = (x - 4y)(x^2 + 4xy + 16y^2). The related form is a3−b3=(a−b)3+3ab(a−b)a^3 - b^3 = (a - b)^3 + 3ab(a - b).

The a3+b3+c3-3abc formula

This three letter identity is part of class 9 Polynomials and turns up often in class 9 tests.

a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−bc−ca) a^3 + b^3 + c^3 - 3abc = (a + b + c)(a^2 + b^2 + c^2 - ab - bc - ca)

The most useful consequence: if a+b+c=0a + b + c = 0, the right side is zero, so

a3+b3+c3=3abcwhen a+b+c=0 a^3 + b^3 + c^3 = 3abc \quad \text{when } a + b + c = 0

This is what people mean by the a3+b3+c3 formula. It lets you find a sum of three cubes without cubing anything large.

Example: sum of three cubes without cubing

Find (−12)3+73+53(-12)^3 + 7^3 + 5^3.

  1. Check the sum: −12+7+5=0-12 + 7 + 5 = 0.
  2. So the value equals 3abc=3×(−12)×7×53abc = 3 \times (-12) \times 7 \times 5.
  3. 3×7×5=1053 \times 7 \times 5 = 105 and 105×(−12)=−1260105 \times (-12) = -1260.

Answer: −1260-1260. Direct cubing gives −1728+343+125=−1260-1728 + 343 + 125 = -1260, the same.

Solved examples using each algebra formula

Example 1: values from a + b and ab

If a+b=7a + b = 7 and ab=10ab = 10, find a2+b2a^2 + b^2, (a−b)2(a - b)^2 and a3+b3a^3 + b^3.

  1. a2+b2=(a+b)2−2ab=49−20=29a^2 + b^2 = (a + b)^2 - 2ab = 49 - 20 = 29.
  2. (a−b)2=(a+b)2−4ab=49−40=9(a - b)^2 = (a + b)^2 - 4ab = 49 - 40 = 9.
  3. a3+b3=(a+b)3−3ab(a+b)=343−210=133a^3 + b^3 = (a + b)^3 - 3ab(a + b) = 343 - 210 = 133.

Answer: 29, 9 and 133. (Check: the numbers are 5 and 2, and 125+8=133125 + 8 = 133.)

Example 2: cube of a number near 100

Find 98398^3 using an identity.

  1. Write 98=100−298 = 100 - 2 and use (a−b)3=a3−b3−3ab(a−b)(a - b)^3 = a^3 - b^3 - 3ab(a - b).
  2. a3=1000000a^3 = 1000000, b3=8b^3 = 8, 3ab(a−b)=3×100×2×98=588003ab(a - b) = 3 \times 100 \times 2 \times 98 = 58800.
  3. 1000000−8−58800=9411921000000 - 8 - 58800 = 941192.

Answer: 983=94119298^3 = 941192.

Example 3: a trinomial square backwards

If a+b+c=9a + b + c = 9 and ab+bc+ca=26ab + bc + ca = 26, find a2+b2+c2a^2 + b^2 + c^2.

  1. a2+b2+c2=(a+b+c)2−2(ab+bc+ca)a^2 + b^2 + c^2 = (a + b + c)^2 - 2(ab + bc + ca).
  2. =81−52=29= 81 - 52 = 29.

Answer: 29. (The numbers 2, 3 and 4 fit: 4+9+16=294 + 9 + 16 = 29.)

Laws of exponents

Exponents (powers or indices) say how many times a base is multiplied by itself. The same few laws cover integers, fractions and negative powers, as long as the base is positive or the powers are whole numbers. A zero or negative power needs a≠0a \neq 0.

LawRuleExample
Productam⋅an=am+na^m \cdot a^n = a^{m+n}25⋅23=28=2562^5 \cdot 2^3 = 2^8 = 256
Quotientaman=am−n\dfrac{a^m}{a^n} = a^{m-n}5754=53=125\dfrac{5^7}{5^4} = 5^3 = 125
Power of a power(am)n=amn(a^m)^n = a^{mn}(32)3=36=729(3^2)^3 = 3^6 = 729
Power of a product(ab)n=anbn(ab)^n = a^n b^n(2x)3=8x3(2x)^3 = 8x^3
Zero powera0=1, a≠0a^0 = 1,\ a \neq 070=17^0 = 1
Negative powera−n=1an, a≠0a^{-n} = \dfrac{1}{a^n},\ a \neq 02−3=182^{-3} = \dfrac{1}{8}
Fractional powerap/q=(aq)p, a>0a^{p/q} = \left(\sqrt[q]{a}\right)^p,\ a \gt 0272/3=32=927^{2/3} = 3^2 = 9

With fractional powers, take the root first and then the power; the numbers stay small. For instance 163/4=(164)3=23=816^{3/4} = (\sqrt[4]{16})^3 = 2^3 = 8, and 8−2/3=148^{-2/3} = \tfrac{1}{4}. You meet these laws in middle school and again in the class 9 chapter on number systems.

Logarithm laws with examples

A logarithm answers the question "what power?". If ax=Na^x = N then log⁡aN=x\log_a N = x, for a>0a \gt 0, a≠1a \neq 1 and N>0N \gt 0. Every law below needs m and n positive too, because the log of zero or a negative number is not defined. So log⁡232=5\log_2 32 = 5 because 25=322^5 = 32, and log⁡381=4\log_3 81 = 4.

LawRule
Productlog⁡a(mn)=log⁡am+log⁡an\log_a (mn) = \log_a m + \log_a n
Quotientlog⁡amn=log⁡am−log⁡an\log_a \dfrac{m}{n} = \log_a m - \log_a n
Powerlog⁡amk=klog⁡am\log_a m^k = k \log_a m
Change of baselog⁡am=log⁡bmlog⁡ba\log_a m = \dfrac{\log_b m}{\log_b a}
Special valueslog⁡a1=0, log⁡aa=1\log_a 1 = 0,\ \log_a a = 1

Example: using log 2 and log 3

Given log⁡2=0.3010\log 2 = 0.3010 and log⁡3=0.4771\log 3 = 0.4771 (base 10), find log⁡8\log 8, log⁡5\log 5 and log⁡12\log 12.

  1. log⁡8=3log⁡2=0.9030\log 8 = 3 \log 2 = 0.9030.
  2. log⁡5=log⁡102=1−0.3010=0.6990\log 5 = \log \dfrac{10}{2} = 1 - 0.3010 = 0.6990.
  3. log⁡12=2log⁡2+log⁡3=0.6020+0.4771=1.0791\log 12 = 2\log 2 + \log 3 = 0.6020 + 0.4771 = 1.0791.

Answer: 0.9030, 0.6990 and 1.0791 (to four places).

Logs are not a separate NCERT chapter, but you meet them in class 11 chemistry (pH) and physics, and in the compound interest formula when you solve for time. Their derivatives and integrals are on the differentiation page.

Common mistakes with algebraic identities

The biggest one: (a+b)2(a + b)^2 is not a2+b2a^2 + b^2. Put a=3a = 3, b=4b = 4: the left side is 49, while 9+16=259 + 16 = 25. The missing 24 is exactly 2ab2ab.

  • Writing (a−b)2=a2−b2(a - b)^2 = a^2 - b^2. The correct form has −2ab-2ab and +b2+b^2.
  • Mixing up the brackets of a3+b3a^3 + b^3 and a3−b3a^3 - b^3. The second bracket is never (a+b)2(a + b)^2 or (a−b)2(a - b)^2; its middle term is just ±ab\pm ab.
  • Forgetting to cube the coefficient: (2x)3=8x3(2x)^3 = 8x^3, not 2x32x^3.
  • Applying a3+b3+c3=3abca^3 + b^3 + c^3 = 3abc without checking that a+b+c=0a + b + c = 0.
  • Adding powers of different bases: 23⋅322^3 \cdot 3^2 cannot be combined into one power.
  • Treating log⁡(m+n)\log(m + n) as log⁡m+log⁡n\log m + \log n. The product law needs a product inside the log.

Algebra formula words in Hindi medium books

Studying from a Hindi medium textbook, or typing "a^2+b^2 ka formula", into a search bar? Match these words.

EnglishHindi
Algebraबीजगणित
Identityसर्वसमिका
Variable, constantचर, अचर
Factor, factorisationगुणनखंड, गुणनखंडन
Exponent (power)घातांक
Logarithmलघुगणक

So "a plus b whole square" is read in class as "a plus b ka varg", and the cube as "a plus b ka ghan". For every other chapter's formulas in one place, see the maths formula hub.

Download the PDF

Questions students ask

What is the formula of a cube plus b cube?
a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2). Another form is (a+b)3−3ab(a+b)(a + b)^3 - 3ab(a + b), useful when you know a + b and ab.
What is the a plus b whole cube identity?
(a+b)3=a3+3a2b+3ab2+b3(a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3, which is often written as a3+b3+3ab(a+b)a^3 + b^3 + 3ab(a + b). Its sister form for a minus b has alternating signs.
What is the formula of a square plus b square?
a2+b2=(a+b)2−2aba^2 + b^2 = (a + b)^2 - 2ab, or equally (a−b)2+2ab(a - b)^2 + 2ab. It has no real factorisation, so you always express it through one of these squares.
How many algebraic identities are there for class 9?

Class 9 Polynomials uses eight standard identities: the three square identities, the product of two binomials, the square of a trinomial, the two cube identities and the three letter cube identity. The sum and difference of cubes appear in its exercises, so learn those too.

What is the difference between an identity and an equation?

Identities hold whatever numbers you put in, like a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b). An equation is true only for particular values, like x2=9x^2 = 9, which holds only for x=3x = 3 or x=−3x = -3.

Is there a formula for (a+b+c) whole cube?

Yes: (a+b+c)3=a3+b3+c3+3(a+b)(b+c)(c+a)(a + b + c)^3 = a^3 + b^3 + c^3 + 3(a + b)(b + c)(c + a). It is not in the NCERT list, so most students expand it as ((a+b)+c)3((a + b) + c)^3 using the two letter identity.