### Theory:

In previous classes, we have learnt to derive algebraic expressions using exponential notations.

Consider an algebraic expression ${x}^{2}+\phantom{\rule{0.147em}{0ex}}\mathit{5x}+4=0$ with the variable $$x$$. This can also be written as an equation ${x}^{2}+\phantom{\rule{0.147em}{0ex}}\mathit{5x}=-4$.

We can verify the equation by substituting numerical values of $$x$$.

If $$x = -4$$ then:

$\begin{array}{l}\mathit{LHS}\phantom{\rule{0.147em}{0ex}}={x}^{2}+\phantom{\rule{0.147em}{0ex}}\mathit{5x}=\left({-4}^{2}\right)+5\left(-4\right)\\ \\ =16-20\\ \\ =-4\phantom{\rule{0.147em}{0ex}}=\mathit{RHS}\end{array}$

This equation is true when $$x = -4$$. But this equation is not true when $$x = -2$$.

Let's substitute $$x = -2$$ to find out the result.

$\begin{array}{l}\mathit{LHS}\phantom{\rule{0.147em}{0ex}}={x}^{2}+\phantom{\rule{0.147em}{0ex}}\mathit{5x}=\left({-2}^{2}\right)+5\left(-2\right)\\ \\ =4-10\\ \\ \mathit{LHS}=-6\ne \mathit{RHS}\end{array}$

From the above two examples, we can observe the equation ${x}^{2}+\phantom{\rule{0.147em}{0ex}}\mathit{5x}+4=0$ is true when $$x$$ takes certain values such as $$-4$$ but not $$-2$$.
Therefore, an equation is true only for certain values of the variable in it. It is not true for all values of the variables.
So, is there any algebraic equation that holds true for all values of the variables? Yes, there is an equation that is called identities.
Identities:
Let us the algebraic expression, ${\left(a+b\right)}^{2}={a}^{2}+2\mathit{ab}+{b}^{2}$. Let us try to find the values of the expression for the given values of $$a$$ and $$b$$.

Let us take $$a =$$4 and $$b =$$9.

${\mathit{LHS}\phantom{\rule{0.147em}{0ex}}=\left(a+b\right)}^{2}={\left(4+9\right)}^{2}={\left(13\right)}^{2}=169$.

$\begin{array}{l}\mathit{RHS}={a}^{2}+2\mathit{ab}+{b}^{2}={4}^{2}+2\left(4×9\right)+{9}^{2}\\ \\ =16+2\left(36\right)+81\\ \\ =16+72+81\\ \\ \mathit{RHS}=169\end{array}$
We can see that $$LHS = RHS =$$ 169. This means if we substitute any numeric variables as $$a$$ and $$b$$, this equation will be true, $$LHS$$ and $$RHS$$ will be the same. When an equation gives such equality, it is called identity.
Therefore, the equation ${\left(a+b\right)}^{2}={a}^{2}+2\mathit{ab}+{b}^{2}$ is a identity.