# Differentiation from first principles

Alongside integration, differentiation is the one of two main branches of calculus. We use it when finding the gradient of a curve as opposed to a straight line. It is derived from a method known as differentiation from first principles.

Recall that the gradient of a straight line can be found by looking at its equation (the in ). We find it by calculating rise over run. For a curve, however, the gradient is always changing. Thus we define the gradient of the curve at a given point to be the gradient of the tangent at that point (see more on tangents). The function that tells us the gradient of the tangent/curve at the given point is known as the derivative. Since the gradient is dependent on x, the derivative should also be a function of . For the derivative is often denoted or . Note that we use the notation for rise over run on a curve. It denotes an infinitely small change in over an infinity small change in . It represents the rate of change of with respect to . Once an expression for the derivative is obtained, it can be used to calculate the gradient at any point. See Polynomial Examples below.

## What is Differentiation from First Principles?

The formal technique for finding the gradient of a tangent is known as Differentiation from First Principles. By taking two points on the curve that lie very closely together, the straight line between them will have approximately the same gradient as the tangent there. Evidently, the closer these points are together, the better the approximation.

Suppose we want to find the gradient of the curve of at a general point . Choose another point close by where is small. Hence, rise over run is given by .  By taking to be as small as possible, i.e. the limit as tends to 0 (what is a limit?), then rise over run will be the same as the gradient of the tangent. This is known as DIFFERENTIATION FROM FIRST PRINCIPLES:

See Examples 1 and 2. Note that this is the formal approach for finding the derivative. Shortcuts are, however, usually adopted. See Polynomial Differentiation below.

Page 8 of the StudyWell Differentiation eGuide has some exam-style questions on differentiation from first principles to try:

## Differentiating Polynomials (a result from differentiation from first principles)

We can show by differentiating from first principles, that . For example, if then . It follows that the point (2,8) on the cubic graph has a gradient of 12. We can find this by putting into the derivative. We can then apply the principle to linear combinations of powers of , also known as polynomials. For example, the polynomial has the derivative . We can think of it informally as ‘multiplying down by the power, then taking one off of the power’.

Note that, in maths, differentiation is finding the derivative or gradient function. The gradient of the straight line, , for example, is 4 – constants disappear. A question may expect you to simplify first. See Examples 3 to 5.

Page 12 of the StudyWell Differentiation eGuide has some exam-style questions on differentiating polynomials to try:

## Examples

Differentiate from first principles.

Solution:

Differentiate from first principles.

Solution:

Note that we often use in place of and denotes infinitesimal (infinitely small) change in .

Find if

.

Solution:

Using the above, .

If , find the gradient of the curve at the point with -coordinate 4.

Solution:

Firstly, differentiating gives .

It follows that

See Indices. Hence, the gradient of the curve at is 0.25.

Differentiate .

Solution:

Firstly, simplifying gives

Hence,

## Videos

The differentiation of a polynomial that requires reformatting before differentiating.

Differentiation of the cosine function from first principles using a trigonometric identity and two given basic limits.

## Extra Resources

### Questions by Topic

DifferentiationExamQuestions