optimization

overview

Throughout your studies of calculus in highschool, you may encounter optimization problems. These problems involve finding certain values that "optimize" a certain outcome. You will most likely be tested on this through word problems, so we will help you understand how to tackle these types of problems.

Key tips for word problems

Here are some key tips to make it easier for you to solve word problems:

  • Work backwards: Identify what you need, and what it translates to in mathematical terms

  • Remember what you learned: derivative rules, derivatives of special functions, and other techniques

  • Create a plan: Figure out a step by step process on how to get that information

What you may encounter

Typical questions

The most common type of questions are the ones that ask you for a certain value, whether it is from the function itself, its first derivative or its second derivative.

The example below demonstrates one of such questions.

example

The position in meters of a car on a road with respect to time is modelled by the function d(t)=t45t3+5t2+5t d(t) = t^4 - 5t^3 + 5t^2 + 5t for all t[0,3] t \in [0, 3] . Its speed is modelled by the function v(t)=d(t) v(t) = d'(t) and its acceleration is modelled by the function a(t)=v(t).Find: a(t) = v'(t). Find:

a) The car's position at t=2s t = 2s

b) The car's speed at t=3s t = 3s

c) The car's acceleration at t=1s t = 1s

answer

a) This is fairly simply, just plug in t=2 t = 2 into the car's position function d(t) d(t) :

d(2)=(2)45(2)3+5(2)2+5(2) d(2) = (2)^4 - 5(2)^3 + 5(2)^2 + 5(2)

   =1640+20+10 \quad \ \ \ \, \, = 16 - 40 + 20 + 10

   =6 \quad \ \ \ \, \, = 6


\therefore The position of the car on the road at t=2s t = 2s is 6m 6m .


b) For this question, we need the speed function v(t) v(t) , which is the derivative of the position function (d(t) d'(t) ). Once we have the speed function, we plug in t=3s t = 3s to find the car's speed at that time.

v(t)=(4)(t41)(3)(5t31)+(2)(5t21)+(1)(5t11) v(t) = (4)(t^{4 - 1}) - (3)(5t^{3 - 1}) + (2)(5t^{2 - 1}) + (1)(5t^{1 - 1})

=4t315t2+10t+5 \quad \quad = 4t^3 - 15t^2 + 10t + 5


Now, we just plug in t=3s t = 3s into v(t) v(t) to get the car's speed at that time:

v(3)=4(3)315(3)2+10(3)+5 v(3) = 4(3)^3 - 15(3)^2 + 10(3) + 5

   =108135+30+5 \quad \ \ \ \, \, = 108 - 135 + 30 + 5

   =8 \quad \ \ \ \, \, = 8


\therefore The car's speed at t=3s t = 3s is 8ms 8 \frac {m} {s} .


c) The acceleration being the derivative of speed means it is the second derivative of the car's position function d(t) d''(t) .

We must now find the second derivative function:

a(t)=(3)(4t31)(2)(15t21)+(1)(10t11)+0 a(t) = (3)(4t^{3 - 1}) - (2)(15t^{2 - 1}) + (1)(10t^{1 - 1}) + 0

=12t230t+10 \quad \quad = 12t^2 - 30t + 10


Finally, just plug in t=1s t = 1s into a(t) a(t) to get the car's acceleration:

a(1)=12(1)230(1)+10 a(1) = 12(1)^2 - 30(1) + 10

   =1230+10 \quad \ \ \ \, \, = 12 - 30 + 10

   =8 \quad \ \ \ \, \, = -8


\therefore The car's acceleration at t=1s t = 1s is 8ms2 -8 \frac {m} {s^2} .

example

The spread of a rumor in a certain school is modelled by the equation P(t)=3001+e3t P(t) = \frac {300} {1 + e^{3-t}} , where P(t) P(t) is the total number of students who have heard the rumour tt days after the rumour forst started tp spread.

a) How many students heard the rumour after 11 day?

b) How fast is the rumour spread after 44 days?

answer

a) To calculate the number of students that heard the rumour after 11 day, simply plug into P(t) P(t) :

P(1)=3001+e4(1)=3001+e314.23 P(1) = \frac { 300 } { 1 + e^{4 - (1)} } = \frac { 300 } { 1 + e^3 } \approx 14.23

\therefore After 11 day around 14.23 14.23 students have heard the rumour.


b) We must find the derivative P(t) P'(t) in order to determine how fast the rumour is spreading after 44 days:

P(t)=300(1+e4  t)1 P(t) = 300(1 + e^{4 \ - \ t})^{-1} \quad (re-arranged to use chain rule)


P(t)=(1)(300)(1+e4  t)2(e4  t)(1) P'(t) = (-1)(300)(1 + e^{4 \ - \ t})^{-2}(e^{4 \ - \ t})(-1)

  =300(e4  t)(1+e4  t)2 \quad \quad \ \ = \frac {300(e^{4 \ - \ t})} {(1 + e^{4 \ - \ t})^2}


P(4)=300(e4(4))(1+e4(4))2 P'(4) = \frac {300(e^{4 - (4)})} {(1 + e^{4 - (4)})^2}

=300(e0)(1+e0)2 \quad \quad \, \, = \frac {300(e^0)} {(1 + e^0)^2}

=300(1)(2)2 \quad \quad \, \, = \frac {300(1)} {(2)^2}

=3004 \quad \quad \, \, = \frac {300} {4}

=75 \quad \quad \, \, = 75


\therefore The rumour is spreading at a rate of 75 studentsday 75 \ \frac {\text{students}} {\text{day}} .

Questions about maximizing/minimizing a certain value

These sort of questions require you to obtain the maximum/minimum of a function. As you have learned, you can obtain this by looking at the function's derivative and finding its roots.

There may also be restrictions in these questions that are crucial in helping you determine the right answer.

example

The perimeter of a right-angled triangle with hypotenus 8cm 8cm is given by the function P(x)=8(1+sinx+cosx) P(x) = 8(1 + \sin x + \cos x) , where xx is the angle between the base and the hypotenuse. Calculate the measure of the angle in the triangle that will maximize the perimeter.

answer

First, let's simplify the equation:

P(x)=8(1+sinx+cosx) P(x) = 8(1 + \sin x + \cos x)

  =8+8sinx+8cosx \quad \quad \ \ = 8 + 8\sin x + 8\cos x


Calculate the derivative of P(x) P(x) :

P(x)=8cosx8sinx P'(x) = 8\cos x - 8\sin x


Now we must determine the critical points in order to find the maximum perimeter:

    0=8cosx8sinx \quad \ \ \ \ \, 0 = 8\cos x - 8\sin x

8sinx=8cosx 8\sin x = 8\cos x

  tanx=1 \ \ \tan x = 1

   x=tan1(1) \quad \ \ \ \, \, x = \tan^{-1} (1)

So, x=0.785 x = 0.785 or x=3.927 \cancel{ x = 3.927 } (invalid because 0<x<π2 0 < x < \frac {\pi} {2} since it is a right angle triangle)


Finally, verify whether the critical point occurs at a maximum and find the value of the perimeter:

x<0.785 x < 0.785

x>0.785 x > 0.785

f(x)>0 f'(x) > 0

f(x)<0 f'(x) < 0

Increasing to decreasing indicates a maximum.

P(0.785)=8(1+sin(0.785)+cos(0.785))=19.31 P(0.785) = 8(1 + \sin(0.785) + \cos(0.785)) = 19.31


Here are the graphs of P(x) P(x) and P(x) P'(x) for your benefit:

No description

\therefore The triangle has a maximum perimeter of 19.31cm 19.31 cm at x=0.785 x = 0.785 radians.

Questions about maximizing/minimizing rate of change

Some questions may ask at what point the rate of change itself changes the fastest. In these cases, you would want to look at the second derivative. You could treat the first derivative as a "normal" function, and the second derivative as the derivative of that "normal" function.

example

A certain stock fluctuates over the course of 33 months. It's price in dollars is determined by p(t)=t3+4t23t+2 p(t) = -t^3 + 4t^2 - 3t + 2 where t is time in months and t[0,3] t \in [0, 3] .

a) If you were to buy one stock at its lowest price, and sell at its highest, how much would you profit off of it?

b) Find the point in time when the stock is most volatile (changes the fastest)

answer

To answer both questions, we will need the first and second derivative of p(t) p(t) :

p(t)=(3)(t31)+(2)(4t21)(1)(3t11)+(0)(2) p'(t) = (3)(-t^{3 - 1}) + (2)(4t^{2 - 1}) - (1)(3t^{1 - 1}) + (0)(2)

 =3t2+8t3 \quad \quad \ = -3t^2 + 8t - 3


p(t)=(2)(3t21)+(1)(8t11)(0)(3) p''(t) = (2)(-3t^{2 - 1}) + (1)(8t^{1 - 1}) - (0)(3)

 =6t+8 \quad \quad \ \, = -6t + 8

a) To calculate the most profit, we need to find where the local minimum occurs (buy) and when the local maximum occurs (sell):

The roots of p(t) p'(t) are x=0.451 x = 0.451 and x=2.215 x = 2.215 (quadratic formula) which are also the critical points of p(t) p(t) .


Now, determine which critical points are the minimums and maximums of p(t) p(t) :

t<0.451 t < 0.451

0.451<t<2.215 0.451 < t < 2.215

t>2.215 t > 2.215

p(t)<0 p'(t) < 0

p(t)>0 p'(t) > 0

p(t)<0 p'(t) < 0

  • p(t) p(t) is decreasing then increasing at t=0.451   t = 0.451 \ - \ Local minimum

  • p(t) p(t) is increasing then decreasing at t=2.215   t = 2.215 \ - \ Local maximum


Now we must get the stock's price at its minimum and maximum value in order to calculate the maximum profits:

p(0.451)=1.369 p(0.451) = 1.369

p(2.215)=4.113 p(2.215) = 4.113

 Max  Profit = max  price min  price =4.1131.369=2.744 \text { Max \ Profit } = \text { max \ price} - \text { min \ price } = 4.113 - 1.369 = 2.744


\therefore The maximum profit you can earn from one stock is 2.744 2.744 dollars.


b) To find the point at which the stock is most volatile (or changes the fastest), we need to find the critical points of p(t) p'(t) (not to be confused with p(t) p(t) ) and find the largest absolute maximum/minimum, since the absolute rate of change of the price is greatest at that point.

p(t)=6t+8 p''(t) = -6t + 8

 0=6t+8 \quad \ \, \, 0 = -6t + 8

 t=431.333 \quad \ \, \, \, t = \frac {4} {3} \approx 1.333


Let's just verify that this is in fact a maximum/minimum, and not a point of inflection for the first derivative:

t<1.333 t < 1.333

t>1.333 t > 1.333

p(t)>0 p''(t) > 0

p(t)<0 p''(t) < 0

The sign of p(t) p''(t) changes, so it is not a point of inflection, but a local maximum.

This means the stock is not only changing the fastest, but it is also increasing.


Just to confirm for yourself, here are the graphs of p(t) p(t) , p(t) p'(t) and p(t) p''(t) :

No description

\therefore The stock changes the most rapidly at t=1.333 t = 1.333 months.