Ontario · MHF4U · Advanced Functions · Intro to Calculus

Lesson 5: Calculus: Derivatives

The derivative as an instantaneous rate of change.

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″(a) > 0

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

There is a possibility of an inflection point at x=a if f'(a)=0 and f″(a) = 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

Key ideas: Calculus: Derivatives

The derivative f′(x) gives the instantaneous rate of change, which is the slope of the tangent line. The average rate of change between two points is the slope of the secant: [f(b) − f(a)]/(b − a).

Second derivative test at a point where f′(a) = 0:

  • If f″(a) > 0, the graph is concave up: local minimum.
  • If f″(a) < 0, the graph is concave down: local maximum.
  • If f″(a) = 0, the test gives no conclusion; check the sign of f′(x) on each side.

Worked examples

Example 1

Use first principles to find the derivative of f(x) = x2 − 3x.

  • f(x + h) − f(x) = (x + h)2 − 3(x + h) − (x2 − 3x) = 2xh + h2 − 3h.
  • Divide by h: 2x + h − 3.
  • Let h → 0: f′(x) = 2x − 3

Example 2

Find the equation of the tangent line to f(x) = x3 − 2x at x = 2.

  • Point: f(2) = 8 − 4 = 4, so (2, 4).
  • Slope: f′(x) = 3x2 − 2, so f′(2) = 10.
  • y − 4 = 10(x − 2). Answer: y = 10x − 16

Example 3

Differentiate y = (2x2 − 5)4.

  • Chain rule: derivative of the outside times the derivative of the inside.
  • y′ = 4(2x2 − 5)3 · 4x
  • Answer: y′ = 16x(2x2 − 5)3

Example 4

A ball’s height is h(t) = −4.9t2 + 19.6t + 1.5 (metres, seconds). When does it reach its maximum height, and what is it?

  • Velocity: h′(t) = −9.8t + 19.6. Set h′(t) = 0: t = 2 s.
  • h″(t) = −9.8 < 0, so this is a maximum.
  • h(2) = −19.6 + 39.2 + 1.5 = 21.1 m at t = 2 s

Common mistakes

  • Treating the product rule as “derivative times derivative”: (pq)′ = p′q + pq′.
  • Forgetting to multiply by the derivative of the inside function in the chain rule.
  • Assuming f″(a) = 0 always means an inflection point; the concavity must actually change.
  • Using the derivative of a constant as anything other than 0.

Questions students ask

What is the difference between average and instantaneous rate of change?

Average uses two points (a secant). Instantaneous is the limit as the two points come together (a tangent), which is the derivative.

What do f′ and f″ tell me about the graph?

f′ > 0: increasing; f′ < 0: decreasing. f″ > 0: concave up; f″ < 0: concave down.

Check your understanding

Practise with the Grade 12 quizzes. You’ll see right away if each answer is correct.

✓ Go to quizzes