The First Derivative of a function is the slope of a tangent line to the function at a particular point (the Instantaneous Rate of Change).

The Second Derivative of a function determines the concavity of the function graph.

The following are possible notations for the first derivative:

f'(x)  (read as “f primed of x”, y'“y primed”)\frac{d(y)}{d(x)}

Derivative from First Principles

We can use a limit to calculate the first derivative with the following formula:

f'(x)=\lim_{h\rightarrow 0}\frac{f(x+h)-f(x)}{h}

So, the limit in the above formula is based on the horizontal distance between the two points (since in order to calculate the slope of a line we need two points) on the curve and that distance approaches 0. It is a more accurate way of calculating the Instantaneous Rate of Change.

In order to evaluate the formula for a specific function, it needs to be simplified first, based on the function expression and then evaluated.

Example 1: Determine the rate of change at a point for a given function

f(x)=3x^2+5x-2    at   x = -1

 

Rate of change at a point on a curve = Slope of the tangent line to the curve at that particular point = First derivative

f'(x)=\lim_{h\rightarrow 0}\frac{3(x+h)^2+5(x+h)-2-(3x^2+5x-2)}{h}    expand

f'(x)=\lim_{h\rightarrow 0}\frac{3(x^2+2xh+h^2)+5x+5h-2-3x^2-5x+2}{h}   expand

f'(x)=\lim_{h\rightarrow 0}\frac{3x^2+6xh+3h^2+5x+5h-2-3x^2-5x+2}{h}    simplify

f'(x)=\lim_{h\rightarrow 0}\frac{6xh+3h^2+5h}{h}    common factor the h

f'(x)=\lim_{h\rightarrow 0}\frac{h(6x+3h+5)}{h}   reduce the h

f'(x)=\lim_{h\rightarrow 0}6x+3h+5   sub in 0 for h  

f'(x)=6x+3(0)+5  evaluate and simplify

f'(x)=6x+5   

The resulting expression represents the slope of the tangent line to ANY point on the curve for the above quadratic function. 


Now, let’s substitute x=-1 into this expression to determine the rate of change at a specific point for this particular function:

f'(-1)=6(-1)+5

f'(-1)=-1        negative sign means the slope/rate of change is negative

\therefore For the function f(x)=3x^2+5x-2   the rate of change/slope of the tangent line/first derivative at  x=-1  is  f'(-1)=-1

At a local maximum or a local minimum of a function, the first derivative will be 0, since the tangent line will be a horizontal line with a slope of 0.

Rules of Differentiation

Power Rule, Product Rule, Quotient Rule and Chain Rule

It is not always convenient to use the First Principles of Differentiation (the limit method) to determine the first derivative.

There are four rules that could be used instead to differentiate different types of functions.

Power Rule of Differentiation

A Power Rule is used to differentiate polynomial functions. It is also often used in combination with other rules of differentiation.

Given that  f(x)=x^n ,   the first derivative is  f'(x)=n\cdot x^{n-1}

Example: Differentiate the following function

f(x)=3x^2-4x+1


f'(x)=3\cdot 2x^{1}-4\cdot 1x^{0}+1\cdot 0        a constant always differentiates into 0

f'(x)=6x-4     

The resulting expression represents the slope of a tangent line to any point on the graph of the function.

Product Rule of Differentiation

A Product Rule is used when we are dealing with the product of two functions.

Given that  f(x)=p(x)q(x) , the first derivative is

f'(x)=p(x)q'(x)+q(x)p'(x)

Example: Differentiate the following function

f(x)=(x-1)(x+2)


f'(x)=(x-1)\cdot (1)+(x+2)\cdot (1)

f'(x)=(x-1)+(x+2)

f'(x)=x-1+x+2

f'(x)=2x+1

So, as you can see, in order to differentiate each function individually within the product, we also had to use the Power Rule.

Quotient Rule of Differentiation

A Quotient Rule is used when we are dividing two functions.

Given that  f(x)=\frac{p(x)}{q(x)},  the first derivative is

f'(x)=\frac{q(x)p'(x)-p(x)q'(x)}{q^2(x)}

Example: Differentiate the following function

f(x)=\frac{5x-2}{x^2+1}


f'(x)=\frac{(x^2+1)\cdot (5)-(5x-2)\cdot (2x)}{(x^2+1)^2}

f'(x)=\frac{5x^2+5-10x^2+4x}{(x^2+1)^2}

f'(x)=\frac{-5x^2+4x+5}{x^4+2x^2+1}

Chain Rule of Differentiation

A Chain Rule is used when we are dealing with a function within another function – a composition of functions.

We first differentiate the outside and then multiply the result by the derivative of the inside.

Given the function  f(x)=p(q(x)) , the derivative is f'(x)=p'(q(x))\cdot q'(x)

Example: Differentiate the following function

f(x)=(3x^2-5)^\frac{1}2{}


f'(x)=\frac{1}{2}(3x^2-5)^{\frac{1}{2}-1}\cdot (3\cdot 2x)

f'(x)=\frac{1}{2}(3x^2-5)^{-\frac{1}{2}}\cdot (6x)

f'(x)=\frac{1}{2\sqrt{3x^2-5}}\cdot (6x)

f'(x)=\frac{6x}{2\sqrt{3x^2-5}}

f'(x)=\frac{3x}{\sqrt{3x^2-5}}

 

Second Derivative

The Second Derivative is determined by differentiating the first derivative.

The Second Derivative Test helps us identify the following:

The graph of f(x) will have a minimum at x=a if f'(a)=0 and f(x) will have a maximum at x=a if f'(a)=0 and f''(x)<0

There is a possibility of an inflection point at x=a if f'(a)=0 and f''(x)=0

Example: Use first and second derivative test to find the local maximum or minimum for the following function

f(x)=-3x^5+5x^3     Power Rules to find the first derivative

f'(x)=-15x^4+15x^2     Next, make this = 0 to find max/min points

-15x^4+15x^2=0

-15x^2(x^2-1)=0

-15x^2(x-1)(x+1)=0

x=0,   x=1,   x=-1      Points, at which max/min occur

Now we need to determine where there is a max and where there is a min using second derivative test

f''(x)=-60x^3+30x

f''(0)=-60(0)^3+30(0)=0    there is an inflection point at x=0

f''(-1)=-60(-1)^3+30(-1)=30    there is a minimum at x=-1

f''(x)=-60(1)^3+30(1)=-30   there is a maximum at x=1

derivatives of trig functions
derivatives of log functions