Calculus

**Calculus** is a branch of mathematics that describes continuous change.

There are two different types of calculus. **Differential calculus** divides (*differentiates*) things into small (*different*) pieces, and tells us how they change from one moment to the next, while **integral calculus** joins (*integrates*) the small pieces together, and tells us how much of something is made, overall, by a series of changes. Calculus is used in a couple of sciences.

## History
In the 1670s and 1680s, Sir Isaac Newton in England and Gottfried Leibniz in Germany figured out calculus at the same time, working separately from each other. Newton wanted to have a new way to predict where to see planets in the sky, because astronomy had always been a popular and useful form of science, and knowing more about the motions of the objects in the night sky was important for navigation of ships. Leibniz wanted to measure the space (area) under a curve (a line that is not straight). Many years later, the two men argued over who discovered it first. Scientists from England supported Newton, but scientists from the rest of Europe supported Leibniz. Most mathematicians today agree that both men share the credit equally. Some parts of modern calculus come from Newton, such as its uses in physics. Other parts come from Leibniz, such as the symbols used to write it.

They were not the first people to use mathematics to describe the physical world — Aristotle and Pythagoras came earlier, and so did Galileo Galilei, who said that mathematics was the language of science. But both Newton and Leibniz were the first to design a system that describes how things change over time, and can predict how they will change in the future.

The name "calculus" was the Latin word for a small stone the ancient Romans used in counting and gambling. The English word "calculate" comes from the same Latin word.

## Differential calculus
**Differential calculus** is used to find the rate of change of a variable—compared to another variable. 

Variables can change their value. This is different from numbers because numbers are always the same. For example, the number 1 is always equal to 1, and the number 200 is always equal to 200. One often writes variables as letters such as the letter x: "x" can be equal to 1 at one point and 200 at another. 

Some examples of variables are distance and time, because they can change. The speed of an object is how far it travels in a particular time. So if a town is 80 kilometres (50 miles) away and a person in a car gets there in one hour, they have traveled at an average speed of 80 kilometres (50 miles) per hour. But this is only an average: they travelled faster at some times (say on a highway), and slower at other times (say at a traffic light or on a small street where people live). Certainly it is more difficult for a driver to figure out a car's speed using only its odometer (distance meter) and clock—without a speedometer.

Until calculus was invented, the only way to work this out was to cut the time into smaller and smaller pieces, so the average speed over the smaller time would get closer and closer to the actual speed at a point in time. This was a very long and hard process, and had to be done each time people wanted to work something out.

s to the curve.]]

Differential calculus is also useful for graphing. A very similar problem is to find the  (how steep it is) at any point on a curve. The slope of a *straight* line is easy to work out — it is simply how much it goes up or down (*y* or ) divided by how much it goes across (*x* or ). On a *curve*, however, the slope is a variable (has different values at different points) because the line bends. But if the curve was to be cut into very, very small pieces, the curve at the point would look almost like a very short straight line. So to work out its slope, a straight line can be drawn through the point with the same slope as the curve at that point. If this is done exactly right, the straight line will have the same slope as the curve, and is called a tangent. But there is no way to know (without complex mathematics) whether the tangent is exactly right, and our eyes are not accurate enough to be certain whether it is exact or simply very close.

What Newton and Leibniz found was a way to work out the slope (or the speed in the distance example) exactly, using simple and logical rules. They divided the curve into an infinite number of very small pieces. They then chose points on either side of the range they were interested in and worked out tangents at each. As the points moved closer together towards the point they were interested in, the slope *approached* a particular value as the tangents approached the real slope of the curve. The particular value it approached was the actual slope.

Given a function y=f(x). *f* is short for function, so this equation means "y is a function of x". This tells us that how high y is on the vertical axis depends on what x (the horizontal axis) is at that time. For example, with the equation y=x^2, we know that if x is 1, then y will be 1; if x is 3, then y will be 9; if *x* is 20, then *y* will be 400. The slope of the tangent line produced using this method here is 2x, or 2 multiplied by *x*. So we know without having to draw any tangent line at any point on the curve f(x)=x^2 that the **derivative,** often written as f'(x) (marked with the prime symbol), will be 2x at any point. This process of working out a slope using limits is called **differentiation**, or finding the derivative.

The way to write the derivative in mathematics is
f^\prime(x) = \lim_{h\rightarrow0} \frac{f(x+h) - f(x)}{h}.

## Main idea of calculus
The main idea in calculus is called the fundamental theorem of calculus. This main idea says that the two calculus processes, differentiation and integration, are inverses of each other. That is, a person can use differentiation to undo an integration process. Also, a person can use integration to undo a differentiation. This is just like using division to "undo" multiplication, or addition to "undo" subtraction.

In a single sentence, the fundamental theorem runs something like this: "The derivative of the integral of a function *f* is the function itself".

## Applications of calculus
Calculus is used to describe things that , like things in nature. It can be used for showing and learning all of these:

*How waves move. Waves are very important in the natural world. For example, sound and light can be thought of as waves.
*Where heat moves, like in a house. This is useful for architecture (building houses), so that the house can be as cheap to heat as possible.
*How very small things like atoms act.
*How fast something will fall, also known as gravity.
*How machines work, also known as mechanics.
*The path of the moon as it moves around the earth. Also, the path of the earth as it moves around the sun, and any planet or moon moving around anything in space.

## Related pages 
* Calculus of variations
* Derivative (mathematics)
* Difference quotient
* Mathematical analysis
* Multivariable calculus
* Vector calculus

## References