In mathematics, an **operation** is a function which takes one or more inputs (named operands) and produces an output. Common operations are addition, subtraction, multiplication and division, all of which take two inputs and produce an output. These are named binary operations, and are frequently used when solving math problems. Other kinds of operations are named unary operations, which take only one input and produce an output.

There are more operations than these, including raising numbers to exponents, taking the root and applying the logarithm.

Below is a list of the most useful operations.

List of mathematical operations
-------------------------------

### Addition

Addition is the first arithmetic operation and hyperoperation. It is the inverse operation of subtraction. The terms in an addition are named *addends*, and the result of an addition is named a *sum*.

The symbol for addition is **+**

  

Examples:

{\displaystyle 2+3}

{\displaystyle 7+1}

{\displaystyle 1+4+6}

{\displaystyle 8+1+5}

{\displaystyle 2+5+9}

  

Any number plus zero is the same number ({\displaystyle a+0=a}). This is named the *additive identity*.

For example: {\displaystyle 4+0=4}

Changing the order of the addends in an addition does not change its sum. This is named the *commutative property of addition*.

For example: {\displaystyle 31+27\iff 27+31}

Changing how addends are grouped in an addition does not change its sum either. This is named the *associative property of addition*.

For example: {\displaystyle (14+15)+92\iff 14+(15+92)}

#### Additive inverses (opposites)

The opposite of a number n is {\displaystyle -n}. A number n plus its opposite {\displaystyle -n} is always equal to 0: {\displaystyle n+-n=0}

For example, the opposite of 5 is -5, because {\displaystyle -5+5=0}

The absolute value of two opposite numbers is always the same.

### Subtraction

Subtraction is the second arithmetic operation and the inverse operation of addition. The number that is being subtracted is the *subtrahend* and the number it is subtracted from is the *minuend*. The result of a subtraction is named a *difference*.

The symbol for subtraction is **−**

  

Examples:

{\displaystyle 2-4-5}

{\displaystyle 6-1}

{\displaystyle 1-8}

{\displaystyle 3-3}

{\displaystyle 0-9-8}

{\displaystyle 7-8}

  

Because of the *additive identity*, any number minus zero is the same number ({\displaystyle n-0=n}).

In a subtraction of two terms, switching the minuend and the subtrahend changes the sign of the answer, meaning subtraction is anticommutative.

For example: {\displaystyle 15-4=11} and {\displaystyle 4-15=-11}

### Multiplication

Multiplication is the third arithmetic operation and the second hyperoperation. It is the inverse operation of division. The terms in a multiplication are named *factors*, and the result of a multiplication is named a *product*.

Multiplication is repeated addition.

The symbol for multiplication is **×** (• in algebra and **\*** in most programming languages).

  

Examples:

{\displaystyle 6\times 7}

{\displaystyle 4\times 4}

{\displaystyle 9\times 0}

{\displaystyle 1\times 2\times 3}

{\displaystyle 8\times 5}

  

Any number times one is the same number ({\displaystyle x\cdot 1=x}). This is named the *multiplicative identity*.

For example: {\displaystyle 6\times 1=6}

Changing the order of the factors in a multiplication does not change its product. This is named the *commutative property of multiplication*.

For example: {\displaystyle 4\times 5\iff 5\times 4}

Changing how factors are grouped in a multiplication does not change its product either. This is named the *associative property of multiplication*.

For example: {\displaystyle (3\times 4)\times 5\iff 3\times (4\times 5)}

Multiplication can also be implied. For example, {\displaystyle 2a} means {\displaystyle 2\cdot a}, and {\displaystyle xy} means {\displaystyle x\cdot y}.

With the Hindu-Arabic numerals, putting two digits next to each other could be misunderstood (e.g. 235 is read as "two hundred and thirty-five" and not {\displaystyle 23\cdot 5}). Instead, one of the numbers (normally the second) is put in brackets.

For example: {\displaystyle 3(2)\iff 3\cdot 2}

#### Multiplicative inverses (reciprocals)

The reciprocal of a number x is {\displaystyle {\bar {x}}}. A number x times its reciprocal {\displaystyle {\bar {x}}} is always equal to 1: {\displaystyle x\cdot {\bar {x}}=1}

For example, the reciprocal of 3 is 1/3, because {\displaystyle 3\times {\bar {3}}=1}

To get the reciprocal of a fraction, switch the numerator and the denominator: the reciprocal of {\displaystyle {\frac {2}{7}}} is {\displaystyle {\frac {7}{2}}}

### Division

Division is the fourth arithmetic operation and the inverse operation of multiplication. The number that is being divided is the *dividend* and the number it is divided by is the *divisor*. The number on top of a fraction is named the *numerator* and the number at the bottom is named the *denominator*. The result of a division is named a *quotient*.

Division is repeated subtraction.

The symbol for division is **/** or a fraction.

  

Examples:

{\displaystyle 3/7}

{\displaystyle 2/3}

{\displaystyle {\frac {3}{4}}}

{\displaystyle {\frac {0}{6}}}

{\displaystyle {\frac {\frac {5}{9}}{\bar {8}}}}

  

Because of the *multiplicative identity*, any number divided by one is the same number ({\displaystyle y/1=y}).

Division by zero is undefined ({\displaystyle d/0={\textrm {undefined}}}).

In a fraction, switching the numerator and the denominator gives the reciprocal of the fraction.

For example: {\displaystyle {\frac {2}{4}}={\bar {\frac {4}{2}}}}

### Exponentiation

Exponentiation is the fifth arithmetic operation and the third hyperoperation. It is one of the inverse operations of roots and logarithms. The number that is being multiplied is the *base* and the number of times it is multiplied is the *exponent*. The result of an exponentiation is named a *power*.

Exponentiation is repeated multiplication.

The symbol for exponentiation is the superscript ({\displaystyle x^{y}}) or the caret (**^**).

  

Examples:

{\displaystyle 11^{1}=1\times 11=11}

{\displaystyle 3^{2}=1\times 3\times 3=9}

{\displaystyle 2^{3}=1\times 2\times 2\times 2=8}

{\displaystyle 5^{0}=1}

{\displaystyle 7^{-1}=1/7=0.{\overline {142857}}}

{\displaystyle 13^{-2}=1/13^{2}\approx 0.006}

  

Because of the *multiplicative identity*, the first power of any number is the same number, and the zeroth power of any number is one ({\displaystyle b^{1}=b} and {\displaystyle b^{0}=1}).

### Roots

Roots are the sixth arithmetic operation and one of the inverse operations of exponentiation and logarithms. The first term is named the *index*, and the second term is named the *radicand*. The result of a root is named a *base*. When there is no index, this means it is a square (index 2) root.

The symbol for roots is the radical ({\displaystyle {\sqrt[{y}]{x}}}).

  

Examples:

{\displaystyle {\sqrt {4}}=2}

{\displaystyle {\sqrt {1}}21=11}

{\displaystyle {\sqrt[{3}]{343}}=7}

{\displaystyle {\sqrt[{4}]{81}}=3}

{\displaystyle {\sqrt[{3}]{-125}}=-5}

  

The first root of any number is the same number ({\displaystyle {\sqrt[{1}]{k}}=k}).

### Logarithms

Logarithms are the seventh arithmetic operation and one of the inverse operations of exponentiation and roots. The first term is named the *base*, and the second term is named the *power*. The result of a logarithm is named an *exponent*. When there is no base, this means it is a decimal (base 10) logarithm.

The symbol for logarithm is {\displaystyle \log \_{b}a}

  

Examples:

{\displaystyle \log 100=2}

{\displaystyle \log \_{2}{1024}=10}

{\displaystyle \log \_{3}{27}=3}

{\displaystyle \log \_{2}{128}=7}

{\displaystyle \log \_{3}{729}=6}

  

The logarithm of 1 ({\displaystyle \log \_{b}1}) is 0 in every base. This is because {\displaystyle m^{0}=1}

The logarithm base {\displaystyle e}, or natural logarithm, is written as {\displaystyle \ln x}.

### Modulation

Modulation is the eighth arithmetic operation. It gives the remainder of a division. The first term is named the *modulend* and the second term is named the *modulator*. The result of a modulation is named a *modulus*.

The symbol for modulation is **\**

  

Examples:

{\displaystyle 5\backslash 2=1}

{\displaystyle 20\backslash 7=6}

{\displaystyle 0\backslash 3=0}

{\displaystyle 9\backslash 8=1}

{\displaystyle 22\backslash 4=2}

  

{\displaystyle 0\backslash x} is always equal to zero, because zero can be divided by any number ({\displaystyle 0/x=0}).

### Factorial

Factorial is a function which gives the number of ways to arrange n objects. The term is named the *index*. The result of a factorial is also named a factorial.

The symbol for factorial is **!**

  

The first factorials are:

{\displaystyle 0!=1}

{\displaystyle 1!=1}

{\displaystyle 2!=2}

{\displaystyle 3!=6}

{\displaystyle 4!=24}

{\displaystyle 5!=120}

  

{\displaystyle 0!} is equal to one because there is exactly one way of arranging 0 objects. Factorials are undefined for negative integers. Factorials of fractional numbers can be calculated using the Gamma function.

### Absolute value

Absolute value is a function which gives the distance from zero (or magnitude) of a number.

The symbol for absolute value is {\displaystyle |x|}

  

Examples:

{\displaystyle |147|=147}

{\displaystyle |-321|=321}

{\displaystyle |96|=96}

{\displaystyle |-358|=358}

{\displaystyle |0|=0}

  

The absolute value of {\displaystyle a-b} is the same as the absolute value of {\displaystyle b-a} ({\displaystyle |a-b|=|b-a|}). This is because subtraction is anticommutative.

Related pages
-------------

* Algebra
* Arithmetic
* Operand
* Operator
* Order of operations
* Hyperoperation