Introduction to Calculus
Calculus and Gradients
What calculus studies
Calculus is the branch of mathematics concerned with change. It provides ways to describe and calculate rates of change, including changes over extremely small intervals.
Many natural and human-made phenomena change over time or across space. Calculus helps model and predict such changes—for example, population growth or the changing position of a moving object.
Calculus was developed independently by Isaac Newton and Gottfried Wilhelm Leibniz. Two central ideas in calculus are:
Differentiation, which describes a function’s rate of change and the slope of its graph at a point.
Integration, which is used to study accumulation, such as the total distance traveled from a velocity function.
The material here focuses on differentiation.
Gradients of straight lines
The gradient, or slope, of a straight line measures how steeply it rises or falls. Given two points (x1,y1) and (x2,y2) on a line, its gradient is
This is often remembered as rise over run:
Rise: the change in the y-coordinate, y2−y1.
Run: the change in the x-coordinate, x2−x1.
A line with a larger positive gradient is steeper than a line with a smaller positive gradient. A negative gradient indicates that the line falls as x increases.
In the equation of a straight line,
m is the gradient and c is the y-intercept, the point where the line crosses the y-axis.
Secants, tangents, and the gradient of a curve
A curve does not usually have one fixed gradient: its steepness can vary from point to point. To find its gradient at a particular point, first consider the gradient between two points on the curve.
Suppose a curve is described by y=f(x). Choose two points with x-coordinates x and x+h. Their corresponding y-coordinates are f(x) and f(x+h).
A line passing through two points on a curve is called a secant. Its gradient is
The horizontal change between the two points is h, which explains the denominator.
A line that touches the curve at a single point and represents its direction there is called a tangent. To find the tangent’s gradient at x, the second point is brought closer and closer to the first by letting h approach zero:
This is the derivative from first principles. The limit describes the value approached by the secant gradients as the two points merge. The resulting derivative gives the gradient of the tangent at the chosen point.
The notation dxdy represents the derivative of y with respect to x. When it depends on x, it is called the gradient function: it gives the curve’s tangent gradient at any suitable value of x.
Deriving the power rule from first principles
Example: y=x
For f(x)=x, the derivative from first principles is
Since f(x+h)=x+h and f(x)=x,
Thus, the line y=x has gradient 1 at every point, consistent with the form y=mx+c.
Example: y=x2
For f(x)=x2, substitute f(x+h)=(x+h)2 and f(x)=x2 into the first-principles formula:
Expand and simplify:
The factor h can be cancelled before evaluating the limit. Directly substituting h=0 into the original fraction would make its denominator zero, so the expression must first be simplified.
The power rule
The two examples lead to a general rule. For a function of the form y=axn, where a is a constant,
To differentiate a power of x:
Multiply the coefficient by the exponent.
Reduce the exponent by 1.
The power rule applies to positive, negative, and fractional exponents wherever the function and derivative are defined.
Applying the power rule
Example: y=10x5
Here, a=10 and n=5:
Example: y=x31
Rewrite the reciprocal using a negative exponent:
Then apply the power rule:
Example: y=x2
Since x=x1/2, rewrite the expression as
Then
Rewriting roots and reciprocals as powers makes them suitable for the power rule.
Example: simplifying before differentiating
When an expression contains multiple factors or powers of x, it can be useful to simplify it first into a single power. For example, if simplification gives
then
Keeping the answer in exponent form is often simpler than converting a negative fractional power back into a radical.
Example: differentiating a difference of powers
For
differentiate each term separately. The minus sign in front of the second term must be retained:
Subtracting a term whose derivative is negative produces a positive term.
Simplifying fractional exponents
The exponents that arise in differentiation can be simplified using the ordinary rules for fractions. For example,
The whole number 1 is written as 44 so both fractions have the same denominator. Similarly,
These steps explain the exponents in the derivative of x1/4−x−1/4.
Constant terms
A constant has no change as x changes, so its derivative is zero:
In particular, any nonzero quantity raised to the power 0 equals 1, so x0=1 where defined. The derivative of x0 is therefore the derivative of the constant 1, which is zero.
Finding a curve’s gradient at a point
Consider the function
First express the square root as a power:
Differentiate each term. The constant 1 has derivative zero:
At x=16, the gradient is
Therefore, the tangent to the curve at the point where x=16 has gradient 41.
Key ideas to remember
A straight-line gradient is the change in y divided by the change in x.
A secant passes through two points on a curve; as its points approach each other, its gradient approaches the tangent gradient.
The derivative from first principles is
For y=axn, the power rule gives
Negative and fractional powers allow reciprocals and roots to be differentiated using the same rule.
Constants differentiate to zero, and expressions should be simplified before evaluating a limit or applying the power rule when necessary.

Ask anything
We've read this whole study set, so questions about it get the best answers.