**Algebra** (from Arabic: الجبر‎, transliterated "al-jabr", meaning "reunion of broken parts") is a part of mathematics. It uses variables to represent a value that is not yet known or can be replaced with any value. When an equals sign (=) is used, this is called an equation. A very simple equation using a variable is: {\displaystyle 2+3=x}. In this example, {\displaystyle x=5}, or it could also be said that "x equals five". This is called *solving for* x.

Besides equations, there are inequalities (*less than* and *greater than*). A special type of equation is called the function. This is often used in making graphs because it always turns one input into one output.

Algebra can be used to solve real problems because the rules of algebra work in real life and numbers can be used to represent the values of real things. Physics, engineering and computer programming are areas that use algebra all the time. It is also useful to know in surveying, construction and business, especially accounting.

People who do algebra use the rules of numbers and mathematical operations used on numbers. The simplest are adding, subtracting, multiplying, and dividing. More advanced operations involve exponents, starting with squares and square roots.

Algebra was first used to solve equations and inequalities. Two examples are linear equations (the equation of a straight line, {\displaystyle y=mx+b} or {\displaystyle y=mx+c}) and quadratic equations, which has variables that are squared (multiplied by itself, for example: {\displaystyle 2\cdot 2}, {\displaystyle 3\cdot 3}, or {\displaystyle x\cdot x}).

History
-------

Early forms of algebra were developed by the Babylonians and Greek geometers such as Hero of Alexandria. However the word "algebra" is a Latin form of the Arabic word *Al-Jabr* ("casting") and comes from a mathematics book *Al-Maqala fi Hisab-al Jabr wa-al-Muqabilah*, ("Essay on the Computation of Casting and Equation") written in the 9th century by a Persian mathematician, Muhammad ibn Mūsā al-Khwārizmī, who was a Muslim born in Khwarizm in Uzbekistan. He flourished under Al-Ma'moun in Baghdad, Iraq through 813-833 CE, and died around 840 CE. The book was brought into Europe and translated into Latin in the 12th century. The book was then given the name "*Algebra*". (The ending of the mathematician's name, al-Khwarizmi, was changed into a word easier to say in Latin, and became the English word *algorithm*).

Examples
--------

Here is a simple example of an algebra problem:

Sue has 12 candies, and Ann has 24 candies. They decide to share so that they have the same number of candies. How many candies will each have?
These are the steps you can use to solve the problem:

1. To have the same number of candies, Ann has to give some to Sue. Let x represent the number of candies Ann gives to Sue.
2. Sue's candies plus x must be the same as Ann's candies minus *x*. This is written as: {\displaystyle 12+x=24-x}
3. Subtract 12 from both sides of the equation. This gives: {\displaystyle x=12-x}. (What happens on one side of the equal sign must happen on the other side too, for the equation to still be true. So in this case when 12 was subtracted from both sides, there was a middle step of {\displaystyle 12+x-12=24-x-12}. After a person is comfortable with this, the middle step is not written down.)
4. Add x to both sides of the equation. This gives: {\displaystyle 2x=12}
5. Divide both sides of the equation by 2. This gives {\displaystyle x=6}. The answer is six. This means that if Ann gives Sue 6 candies, they will have the same number of candies.
6. To check this, put 6 back into the original equation wherever x was: {\displaystyle 12+6=24-6}
7. This gives {\displaystyle 18=18}, which is true. They each now have 18 candies.

With practice, algebra can be used when faced with a problem that is too hard to solve any other way. Problems such as building a freeway, designing a cell phone, or finding the cure for a disease all require algebra.

Writing algebra
---------------

As in most parts of mathematics, adding y to {\displaystyle z} (or y plus {\displaystyle z}) is written as {\displaystyle y+z};

subtracting {\displaystyle z} from y (or y minus {\displaystyle z}) is written as {\displaystyle y-z};

and dividing y by {\displaystyle z} (or y over {\displaystyle z}) is written as {\displaystyle y/z} or {\displaystyle {\frac {y}{z}}}.

In algebra, multiplying y by {\displaystyle z} (or y times {\displaystyle z}) can be written in 3 different ways: {\displaystyle y\cdot z}, {\displaystyle y(z)} or just {\displaystyle yz}. All of these notations mean the same thing: y times {\displaystyle z}. The symbol "{\displaystyle \times }" used in arithmetic is not used in algebra, because it looks too much like the letter x, which is often used as a variable.

When we multiply a number and a variable in algebra, we can simply write the number in front of the letter: {\displaystyle 5\cdot y\iff 5y}. When the number is 1, then it is not written because 1 times any number is that number ({\displaystyle 1\cdot y=y}) and so it is not needed. And when it is 0, we can completely remove the terms, because 0 times any number is zero ({\displaystyle 0\cdot y=0}).

As a side note, you do not have to use the letters x or y in algebra. Variables are just symbols that mean some unknown number or value, so you can use any letter for a variable (except {\displaystyle e} (Euler's number) and {\displaystyle i} (Imaginary unit), because these are mathematical constants). x and y are the most common, though.

Functions and Graphs
--------------------

Linear equation for {\displaystyle y=3x+1}
An important part of algebra is the study of functions, since they often appear in equations that we are trying to solve. A function is like a machine you can put a number (or numbers) into and get a certain number (or numbers) out. When using functions, graphs can be powerful tools in helping us to study the solutions to equations.

A graph is a picture that shows all the values of the variables that make the equation or inequality true. Usually this is easy to make when there are only one or two variables. The graph is often a line, and if the line does not bend or go straight up-and-down it can be described by the basic formula {\displaystyle y=mx+b}. The variable {\displaystyle b} is the y-intercept of the graph (where the line crosses the vertical axis) and m is the slope or steepness of the line. This formula applies to the coordinates of a graph, where each point on the line is written {\displaystyle (x,y)}.

In some math problems like the equation for a line, there can be more than one variable (x and y in this case). To find points on the line, one variable is changed. The variable that is changed is called the "independent" variable. Then the math is done to make a number. The number that is made is called the "dependent" variable. Most of the time the independent variable is written as x and the dependent variable is written as y, for example, in {\displaystyle y=3x+1}. This is often put on a graph, using an x axis (going left and right) and a y axis (going up and down). It can also be written in function form: {\displaystyle f(x)=3x+1}. So in this example, we could put in 5 for x and get {\displaystyle y=16}. Put in 2 for x would get {\displaystyle y=7}. And 0 for x would get {\displaystyle y=1}. So there would be a line going through the points {\displaystyle (5,16)}, {\displaystyle (2,7)}, and {\displaystyle (0,1)} as seen in the graph to the right.

If x has a power of 1, it is a straight line. If it is squared or some other power, it will be curved. If it uses an inequality ({\displaystyle <} or {\displaystyle >}), then usually part of the graph is shaded, either above or below the line.

Rules
-----

In algebra, there are a few rules that can be used for further understanding of equations. These are called the rules of algebra. While these rules may seem senseless or obvious, it is wise to understand that these properties do not hold throughout all branches of mathematics. Therefore, it will be useful to know how these axiomatic rules are declared, before taking them for granted. Before going on to the rules, reflect on two definitions that will be given.

1. Opposite: the opposite of a is -a.
2. Reciprocal: the reciprocal of a is {\displaystyle {\bar {a}}}.

### Commutative property of addition

*Commutative* means that a function has the same result if the numbers are swapped around. In other words, the order of the terms in an equation does not matter. When two terms (addends) are being added, the *commutative property of addition* is applicable. In algebraic terms, this gives {\displaystyle a+b=b+a}.

Note that this does not apply for subtraction (i.e. {\displaystyle a-b\neq b-a} except if {\displaystyle a=b}).

### Commutative property of multiplication

When two terms (factors) are being multiplied, the *commutative property of multiplication* is applicable. In algebraic terms, this gives {\displaystyle a\cdot b=b\cdot a}.

Note that this does not apply for division (i.e. {\displaystyle {\frac {a}{b}}\neq {\frac {b}{a}}}, when {\displaystyle a\neq 0} and {\displaystyle b\neq 0}, except if {\displaystyle a=b}).

### Associative property of addition

*Associative* refers to the grouping of numbers. The associative property of addition implies that, when adding three or more terms, it doesn't matter how these terms are grouped. Algebraically, this gives {\displaystyle a+(b+c)=(a+b)+c}. Note that this does not hold for subtraction, e.g. {\displaystyle 1-(2-3)\neq (1-2)-3} (see distributive property).

### Associative property of multiplication

The associative property of multiplication implies that, when multiplying three or more terms, it doesn't matter how these terms are grouped. Algebraically, this gives {\displaystyle a(bc)=(ab)c}. Note that this does not hold for division, e.g. {\displaystyle 1/(2/4)\neq (1/2)/4}.

### Distributive property

The distributive property states that the multiplication of a term by another term can be distributed. For instance: {\displaystyle a(b+c)=ab+ac}. (Do not confuse this with the associative properties! For instance: {\displaystyle a(b+c)\neq (ab)+c}.)

### Additive identity

*Identity* refers to the property of a number that it is equal to itself. In other words, there exists an operation of two numbers so that it equals the variable of the sum. The additive identity property states that any number plus 0 is that number: {\displaystyle a+0=a}. This also holds for subtraction: {\displaystyle a-0=a}.

### Multiplicative identity

The multiplicative identity property states that any number times 1 is that number: {\displaystyle a\cdot 1=a}. This also holds for division: {\displaystyle {\frac {a}{1}}=a}.

### Additive inverse property

The additive inverse property is somewhat like the inverse of the additive identity. When we add a number and its opposite, the result is 0. Algebraically, it states the following: {\displaystyle a+-a=0}, which is the same as {\displaystyle a-a=0}. For example, the additive inverse (or opposite) of 1 is -1.

### Multiplicative inverse property

The multiplicative inverse property means that when we multiply a number and its reciprocal, the result is 1. Algebraically, it states the following: {\displaystyle a\cdot {\bar {a}}=1}, which is the same as {\displaystyle {\frac {a}{a}}=1}. For example, the multiplicative inverse (or reciprocal) of 2 is 1/2. To get the reciprocal of a fraction, switch the numerator and the denominator: the reciprocal of {\displaystyle {\frac {2}{3}}} is {\displaystyle {\frac {3}{2}}}.

Advanced Algebra
----------------

In addition to "elementary algebra", or basic algebra, there are advanced forms of algebra, taught in colleges and universities, such as abstract algebra, linear algebra, and universal algebra. This includes how to use a matrix to solve many linear equations at once. Abstract algebra is the study of things that are found in equations, going beyond numbers to the more abstract with groups of numbers.

Many math problems are about physics and engineering. In many of these physics problems time is a variable. The letter used for time is {\displaystyle t}. Using the basic ideas in algebra can help reduce a math problem to its simplest form making it easier to solve difficult problems. Energy is {\displaystyle e}, force is f, mass is m, acceleration is a and speed of light is sometimes {\displaystyle c}. This is used in some famous equations, like {\displaystyle f=ma} and {\displaystyle e=mc^{2}} (although more complex math beyond algebra was needed to come up with that last equation).

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

* List of mathematics topics
* Order of operations
* Parabola
* Computer Algebra System

Other websites
--------------


The Simple English Wiktionary has a definition for:

 ***algebra***.

The English Wikibooks has more information on:
***Algebra***

* Khan Academy: Algebra theory and practice
* algebrarules.com: A free place to learn the basics of Algebra
* Khan Academy: Origins of Algebra, free online micro lecturesArchived 2013-05-09 at the Wayback Machine

| * v
* t
* e
Mathematics (areas of mathematics) |
| --- |
| Foundations | 
* Category theory
* Information theory
* Mathematical logic
* Philosophy of mathematics
* Set theory
* Type theory

 |
| Algebra | 
* Abstract
* Elementary
* Group theory
* Linear
* Commutative
* Multilinear
* Universal
* Homological

 |
| Analysis | 
* Calculus
* Real analysis
* Complex analysis
* Differential equations
* Functional analysis
* Harmonic analysis
* Measure theory

 |
| Discrete | 
* Combinatorics
* Graph theory
* Order theory
* Game theory

 |
| Geometry | 
* Algebraic
* Analytic
* Differential
* Euclidean
* Discrete
* Finite

 |
| Number theory | 
* Arithmetic
* Algebraic number theory
* Analytic number theory
* Diophantine geometry

 |
| Topology | 
* Algebraic
* Geometric
* General
* Differential
* Homotopy theory

 |
| Applied | 
* Control theory
* Mathematical physics
* Probability
* Statistics
* Engineering mathematics
* Mathematical biology
* Mathematical chemistry
* Mathematical economics
* Mathematical finance
* Mathematical psychology
* Mathematical sociology
* Mathematical statistics
* Operations research

 |
| Computational | 
* Computer science
* Theory of computation
* Computational complexity theory
* Numerical analysis
* Optimization
* Computer algebra

 |
| Related topics | 
* History of mathematics
* Recreational mathematics
* Mathematics and art
* Mathematics education

 |