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 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.

Differential calculus is also useful for graphing. A very similar problem is to find the slope (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 vertical) divided by how much it goes across (_x_ or horizontal). 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 . _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 , we know that if  is 1, then  will be 1; if  is 3, then  will be 9; if **' is 20, then **' will be 400. The slope of the tangent line produced using this method here is , or 2 multiplied by **'. So we know without having to draw any tangent line at any point on the curve  that the **derivative,** often written as  (marked with the prime symbol), will be  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

Leibniz came to the same result, but called h "", which means "with respect to x". He called the resulting change in  "", which means "a tiny amount of y". Leibniz's notation is used by more books, because it is easy to understand when the equations become more complicated. In Leibniz notation:
.

Mathematicians have grown this basic theory to make simple algebra rules—which can be used to find the derivative of almost any function.

In the real world, calculus can be used to find the speed of a moving object, or to understand how electricity and magnetism work. It is very important for understanding physics—and many other areas of science.

## Integral calculus

**Integral calculus_' is the process of calculating the area underneath a graph of a function. An example is calculating the distance a car travels: if one knows the speed of the car at different points in time and draw a graph of this speed, then the distance the car travels will be the area under the graph.

The way to do this is to divide the graph into many very small pieces, and then draw very thin rectangles under each piece. As the rectangles become thinner and thinner, the rectangles cover the area underneath the graph better and better. The area of a rectangle is easy to calculate, so we can calculate the total area of all the rectangles. For thinner rectangles, this total area value _approaches_ the area underneath the graph. The final value of the area is called the _integral_ of the function.

In mathematics, the integral of the function _f(x)_ from _a_  to _b_, is written as
.

## 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 change, 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