## Differentiation from First Principles

Recall that when finding the gradient of a straight line, one can choose two points on the line and calculate the rise over run. When finding the gradient of a point on a curve, one must find the gradient of the tangent at that point. This can be done by calculating rise over run for two points on the tangent but these will not be points that lie on the curve. 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.

Suppose we want to find the gradient of the curve of at a general point . Take another point close by where is small. The two points have corresponding coordinates and and so rise over run is given by . By taking to be as small as possible, i.e. the limit as tends to 0, then rise over run will be the same as the gradient of the tangent. This is known as DIFFERENTIATION FROM FIRST PRINCIPLES:

### Example 1

Differentiate from first principles.

### Example 2

Differentiate from first principles.

## Differentiating Polynomials

It can be shown by differentiating from first principles that

For example, if then and it follows that the point (2,8) on the cubic graph has a gradient of 12.

The principle can be applied to linear combinations of powers of , also known as polynomials. For example, the polynomial has the derivative . One 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 zero and so the derivative of a constant is 0.

**Example 1**:

**Example 2**:

## Differentiating e to the kx

The function , where k is a constant, can be found using the chain rule. It is useful to remember the following:

For k=1, this says that at each point on the graph of y, the gradient matches that of the y coordinate:

**Example 1** – *Differentiate .*

**Example 2** – *Given that*

.

*Find h'(x).*

h(x) can be written as

We can differentiate more simply when h is written in this format:

**Example 3** –* After time t seconds, the temperature, T degrees, of a heated metal ball that is dropped into a liquid is given by*

*Find the temperature of the ball at the instant it is dropped into the liquid. Find the rate at which the ball is cooling after 10 seconds.*

Substituting t=0 into T gives the intial temperature as 377 degrees. The rate of cooling is given by the derivative of T:

At time t=10 seconds, the rate of cooling is

to 2 decimal places. This means that the ball is cooling by 12.88 degrees per second but this is only true at the instant 10 seconds after the ball is dropped into the liquid.

See more on Growth & Decay.