# Identity (mathematics)

Visual proof of the Pythagorean identity: for any angle ${\displaystyle \theta }$, the point ${\displaystyle (x,y)=(\cos \theta ,\sin \theta )}$ lies on the unit circle, which satisfies the equation ${\displaystyle x^{2}+y^{2}=1}$. Thus, ${\displaystyle \cos ^{2}\theta +\sin ^{2}\theta =1}$.

In mathematics, an identity is an equality relating one mathematical expression A to another mathematical expression B, such that A and B (which might contain some variables) produce the same value for all values of the variables within a certain range of validity.[1] In other words, A = B is an identity if A and B define the same functions, and an identity is an equality between functions that are differently defined. For example, ${\displaystyle (a+b)^{2}=a^{2}+2ab+b^{2}}$ and ${\displaystyle \cos ^{2}\theta +\sin ^{2}\theta =1}$ are identities.[1] Identities are sometimes indicated by the triple bar symbol instead of =, the equals sign.[2] Formally, an identity is a universally quantified equality.

## Common identities

### Algebraic identities

Certain identities, such as ${\displaystyle a+0=a}$ and ${\displaystyle a+(-a)=0}$, form the basis of algebra,[3] while other identities, such as ${\displaystyle (a+b)^{2}=a^{2}+2ab+b^{2}}$ and ${\displaystyle a^{2}-b^{2}=(a+b)(a-b)}$, can be useful in simplifying algebraic expressions and expanding them.[4]

### Trigonometric identities

Geometrically, trigonometric identities are identities involving certain functions of one or more angles.[5] They are distinct from triangle identities, which are identities involving both angles and side lengths of a triangle. Only the former are covered in this article.

These identities are useful whenever expressions involving trigonometric functions need to be simplified. Another important application is the integration of non-trigonometric functions: a common technique which involves first using the substitution rule with a trigonometric function, and then simplifying the resulting integral with a trigonometric identity.

One of the most prominent examples of trigonometric identities involves the equation ${\displaystyle \sin ^{2}\theta +\cos ^{2}\theta =1,}$ which is true for all real values of ${\displaystyle \theta }$. On the other hand, the equation

${\displaystyle \cos \theta =1}$

is only true for certain values of ${\displaystyle \theta }$, not all. For example, this equation is true when ${\displaystyle \theta =0,}$ but false when ${\displaystyle \theta =2}$.

Another group of trigonometric identities concerns the so-called addition/subtraction formulas (e.g. the double-angle identity ${\displaystyle \sin(2\theta )=2\sin \theta \cos \theta }$, the addition formula for ${\displaystyle \tan(x+y)}$),[2] which can be used to break down expressions of larger angles into those with smaller constituents.

### Exponential identities

The following identities hold for all integer exponents, provided that the base is non-zero:

{\displaystyle {\begin{aligned}b^{m+n}&=b^{m}\cdot b^{n}\\(b^{m})^{n}&=b^{m\cdot n}\\(b\cdot c)^{n}&=b^{n}\cdot c^{n}\end{aligned}}}

Unlike addition and multiplication, exponentiation is not commutative. For example, 2 + 3 = 3 + 2 = 5 and 2 · 3 = 3 · 2 = 6, but 23 = 8 whereas 32 = 9.

Also unlike addition and multiplication, exponentiation is not associative either. For example, (2 + 3) + 4 = 2 + (3 + 4) = 9 and (2 · 3) · 4 = 2 · (3 · 4) = 24, but 23 to the 4 is 84 (or 4,096) whereas 2 to the 34 is 281 (or 2,417,851,639,229,258,349,412,352). When no parentheses are written, by convention the order is top-down, not bottom-up:

${\displaystyle b^{p^{q}}:=b^{(p^{q})},}$   whereas   ${\displaystyle (b^{p})^{q}=b^{p\cdot q}.}$

### Logarithmic identities

Several important formulas, sometimes called logarithmic identities or log laws, relate logarithms to one another:[a]

#### Product, quotient, power and root

The logarithm of a product is the sum of the logarithms of the numbers being multiplied; the logarithm of the ratio of two numbers is the difference of the logarithms. The logarithm of the pth power of a number is p times the logarithm of the number itself; the logarithm of a pth root is the logarithm of the number divided by p. The following table lists these identities with examples. Each of the identities can be derived after substitution of the logarithm definitions ${\displaystyle x=b^{\log _{b}x},}$ and/or ${\displaystyle y=b^{\log _{b}y},}$ in the left hand sides.

Formula Example
product ${\displaystyle \log _{b}(xy)=\log _{b}(x)+\log _{b}(y)}$ ${\displaystyle \log _{3}(243)=\log _{3}(9\cdot 27)=\log _{3}(9)+\log _{3}(27)=2+3=5}$
quotient ${\displaystyle \log _{b}\!\left({\frac {x}{y}}\right)=\log _{b}(x)-\log _{b}(y)}$ ${\displaystyle \log _{2}(16)=\log _{2}\!\left({\frac {64}{4}}\right)=\log _{2}(64)-\log _{2}(4)=6-2=4}$
power ${\displaystyle \log _{b}(x^{p})=p\log _{b}(x)}$ ${\displaystyle \log _{2}(64)=\log _{2}(2^{6})=6\log _{2}(2)=6}$
root ${\displaystyle \log _{b}\!{\sqrt[{p}]{x}}={\frac {\log _{b}(x)}{p}}}$ ${\displaystyle \log _{10}\!{\sqrt {1000}}={\frac {1}{2}}\log _{10}1000={\frac {3}{2}}=1.5}$

#### Change of base

The logarithm logb(x) can be computed from the logarithms of x and b with respect to an arbitrary base k using the following formula:

${\displaystyle \log _{b}(x)={\frac {\log _{k}(x)}{\log _{k}(b)}}.}$

Typical scientific calculators calculate the logarithms to bases 10 and e.[6] Logarithms with respect to any base b can be determined using either of these two logarithms by the previous formula:

${\displaystyle \log _{b}(x)={\frac {\log _{10}(x)}{\log _{10}(b)}}={\frac {\log _{e}(x)}{\log _{e}(b)}}.}$

Given a number x and its logarithm logb(x) to an unknown base b, the base is given by:

${\displaystyle b=x^{\frac {1}{\log _{b}(x)}}.}$

### Hyperbolic function identities

The hyperbolic functions satisfy many identities, all of them similar in form to the trigonometric identities. In fact, Osborn's rule[7] states that one can convert any trigonometric identity into a hyperbolic identity by expanding it completely in terms of integer powers of sines and cosines, changing sine to sinh and cosine to cosh, and switching the sign of every term which contains a product of an even number of hyperbolic sines.[8]

The Gudermannian function gives a direct relationship between the trigonometric functions and the hyperbolic ones that does not involve complex numbers.

## Logic and universal algebra

Formally, an identity is a true universally quantified formula of the form ${\displaystyle \forall x_{1},\ldots ,x_{n}:s=t,}$ where s and t are terms with no other free variables than ${\displaystyle x_{1},\ldots ,x_{n}.}$ The quantifier prefix ${\displaystyle \forall x_{1},\ldots ,x_{n}}$ is often left implicit, when it is stated that the formula is an identity. For example, the axioms of a monoid are often given as the formulas

${\displaystyle \forall x,y,z:x*(y*z)=(x*y)*z,\quad \forall x:x*1=x,\quad \forall x:1*x=x,}$

or, shortly,

${\displaystyle x*(y*z)=(x*y)*z,\qquad x*1=x,\qquad 1*x=x.}$

So, these formulas are identities in every monoid. As for any equality, the formulas without quantifier are often called equations. In other words, an identity is an equation that is true for all values of the variables.[9][10]

## References

### Notes

1. ^ All statements in this section can be found in Shirali 2002, Section 4, Downing 2003, p. 275, or Kate & Bhapkar 2009, p. 1-1, for example.

### Citations

1. ^ a b "Mathwords: Identity". www.mathwords.com. Retrieved 2019-12-01.
2. ^ a b "Identity – math word definition – Math Open Reference". www.mathopenref.com. Retrieved 2019-12-01.
3. ^ "Basic Identities". www.math.com. Retrieved 2019-12-01.
4. ^ "Algebraic Identities". www.sosmath.com. Retrieved 2019-12-01.
5. ^ Stapel, Elizabeth. "Trigonometric Identities". Purplemath. Retrieved 2019-12-01.
6. ^ Bernstein, Stephen; Bernstein, Ruth (1999), Schaum's outline of theory and problems of elements of statistics. I, Descriptive statistics and probability, Schaum's outline series, New York: McGraw-Hill, ISBN 978-0-07-005023-5, p. 21
7. ^ Osborn, G. (1 January 1902). "109. Mnemonic for Hyperbolic Formulae". The Mathematical Gazette. 2 (34): 189. doi:10.2307/3602492. JSTOR 3602492.
8. ^ Peterson, John Charles (2003). Technical mathematics with calculus (3rd ed.). Cengage Learning. p. 1155. ISBN 0-7668-6189-9., Chapter 26, page 1155
9. ^ Nachum Dershowitz; Jean-Pierre Jouannaud (1990). "Rewrite Systems". In Jan van Leeuwen (ed.). Formal Models and Semantics. Handbook of Theoretical Computer Science. Vol. B. Elsevier. pp. 243–320.
10. ^ Wolfgang Wechsler (1992). Wilfried Brauer; Grzegorz Rozenberg; Arto Salomaa (eds.). Universal Algebra for Computer Scientists. EATCS Monographs on Theoretical Computer Science. Vol. 25. Berlin: Springer. ISBN 3-540-54280-9. Here: Def.1 of Sect.3.2.1, p.160.