WEBVTT
00:00:02.570 --> 00:00:08.170
In this video, we will see one of the practical applications of differentiation to optimization problems.
00:00:08.390 --> 00:00:15.500
That is, problems where weβre asked to determine the maximum or minimum value of a given function such as time, area, or perimeter.
00:00:15.890 --> 00:00:26.630
Weβll be able to answer questions like what does the maximum area I can enclose with a given length of fencing or what is the highest point reached by a rocket following a given curve.
00:00:27.220 --> 00:00:34.730
In some examples, weβll also see how to form the optimization function and any constraints ourselves from a worded description.
00:00:36.800 --> 00:00:42.280
We recall, first of all, some key facts about using differentiation to find the critical points of a function.
00:00:42.760 --> 00:00:50.990
The critical points of a function are those points in its domain where its first derivative, π prime of π₯, is equal to zero or is undefined.
00:00:52.570 --> 00:01:02.310
To find the π₯-value at a critical point, we can differentiate the function to find its gradient, or slope, function and then set this equal to zero and solve the resulting equation.
00:01:02.770 --> 00:01:09.610
We can find the value of the function itself at the critical point by substituting our π₯-value or values into the function.
00:01:11.160 --> 00:01:18.540
We must also remember to confirm that our critical point is indeed a maximum or a minimum by applying the second derivative test.
00:01:18.810 --> 00:01:28.870
We recall that at a local maximum, the second derivative π double prime of π₯ will be negative, whereas at a local minimum, the second derivative π double prime of π₯ will be positive.
00:01:30.190 --> 00:01:34.740
Weβll now see how to apply these key principles to some optimization problems.
00:01:36.880 --> 00:01:38.640
A rocket is launched in the air.
00:01:38.840 --> 00:01:48.430
Its height, in meters, as a function of time is given by β of π‘ equals negative 4.9π‘ squared plus 229π‘ plus 234.
00:01:48.930 --> 00:01:51.720
Find the maximum height the rocket attains.
00:01:53.250 --> 00:01:58.480
So, weβve been given an equation for the height β of this rocket in terms of π‘ time.
00:01:58.840 --> 00:02:02.960
And weβre asked to determine the maximum height that the rocket attains.
00:02:03.160 --> 00:02:06.040
We can follow some key steps in order to do so.
00:02:07.200 --> 00:02:11.040
First, we need to find an expression for the first derivative of our function.
00:02:11.040 --> 00:02:13.200
In this case, thatβs β prime of π‘.
00:02:14.450 --> 00:02:27.660
By applying the power rule of differentiation, we see that β prime of π‘ is equal to negative two multiplied by 4.9π‘ plus 229, which simplifies to negative 9.8π‘ plus 229.
00:02:29.180 --> 00:02:33.950
Next, we recall that at the critical points of the function, the first derivative is equal to zero.
00:02:34.150 --> 00:02:42.040
So, weβre going to take that expression weβve found for β prime of π‘, set it equal to zero, and then solve the resulting equation for π‘.
00:02:43.330 --> 00:02:58.750
We add 9.8π‘ to both sides and then divide by 9.8 to give π‘ equals 229 over 9.8, which, as a decimal, is 23.36734, or 23.37 to two decimal places.
00:02:59.890 --> 00:03:04.640
Now, this is the value of π‘ at which our function β of π‘ has a critical point.
00:03:04.760 --> 00:03:07.200
We donβt yet know whether it is a maximum.
00:03:07.350 --> 00:03:11.440
And we donβt yet know the height that the rocket attains at this point.
00:03:12.450 --> 00:03:18.980
Our next step, then, is to evaluate the function β of π‘ when π‘ is equal to 23.37.
00:03:19.540 --> 00:03:33.390
Substituting into our equation β of π‘ gives β of 23.37 equals negative 4.9 multiplied by 23.37 squared plus 229 multiplied by 23.37 plus 234.
00:03:34.580 --> 00:03:44.590
Which evaluates to 2909.56119, or 2909.56 correct to two decimal places.
00:03:45.780 --> 00:03:52.160
So, we believe that this is the maximum height that the rocket attains as this occurs at the only critical point of the function.
00:03:52.410 --> 00:03:55.330
But we must confirm that it is indeed a maximum.
00:03:56.430 --> 00:03:59.040
To do so, weβll perform the second derivative test.
00:03:59.150 --> 00:04:04.130
Weβll evaluate the second derivative β double prime of π‘ at this critical point.
00:04:05.530 --> 00:04:15.600
Differentiating our expression for β prime of π‘, which was negative 9.8π‘ plus 229, we find that β double prime of π‘ is equal to negative 9.8.
00:04:15.830 --> 00:04:23.370
And in fact, we donβt need to evaluate the second derivative when π‘ equals 23.37 because it is a constant.
00:04:23.540 --> 00:04:26.670
The second derivative is the same for all values of π‘.
00:04:28.010 --> 00:04:30.600
We note though, that this value is negative.
00:04:30.600 --> 00:04:35.420
And therefore, by the second derivative test, our critical point is a maximum.
00:04:36.670 --> 00:04:45.430
Now, we could also have seen this if we considered that the expression we were given for β in terms of π‘ is a quadratic expression with a negative leading coefficient.
00:04:45.650 --> 00:04:49.940
And therefore, the graph of π‘ against β would be an inverted parabola.
00:04:50.210 --> 00:04:54.200
And we know that it will therefore have a maximum point rather than a minimum.
00:04:55.750 --> 00:05:06.620
So, we can conclude that the maximum height the rocket attains, and we have confirmed that it is indeed a maximum, is 2909.56 meters, correct to two decimal places.
00:05:08.040 --> 00:05:13.650
Now, itβs just worth pointing out that in this question, each of the derivatives also have practical interpretations.
00:05:13.880 --> 00:05:24.310
The first derivative of our function, thatβs negative 9.8π‘ plus 229, gives the velocity of the rocket, which we see is decreasing as time increases.
00:05:24.670 --> 00:05:32.590
The second derivative, which we saw is just the constant negative 9.8, gives the acceleration of the rocket, or in fact the deceleration.
00:05:32.870 --> 00:05:36.630
Which, we see, is equal to negative 9.8 meters per second squared.
00:05:36.830 --> 00:05:39.100
And thatβs the deceleration due to gravity.
00:05:40.570 --> 00:05:43.780
In this problem, the function we needed to optimize was given to us.
00:05:43.940 --> 00:05:50.660
But it will more often be the case in optimization problems that weβll need to form these functions ourselves from a worded description.
00:05:51.150 --> 00:05:53.880
Letβs see how this works in our next example.
00:05:56.310 --> 00:06:02.410
Find two numbers whose sum is 156 and the sum of whose squares is the least possible.
00:06:03.900 --> 00:06:08.470
Letβs allow these two numbers, which we donβt yet know, to be π₯ and π¦.
00:06:09.700 --> 00:06:16.340
Then, we can express the fact that their sum is 156 as π₯ plus π¦ equals 156.
00:06:17.820 --> 00:06:22.130
We want to minimize the sum of their squares, which we can call π .
00:06:22.250 --> 00:06:24.790
π is equal to π₯ squared plus π¦ squared.
00:06:25.090 --> 00:06:33.590
In order to do so, we need to find the values of π₯ and π¦ for which the rate of change of π with respect to either π₯ or π¦, is equal to zero.
00:06:35.090 --> 00:06:39.630
This means that we need to differentiate π with respect to either π₯ or π¦.
00:06:39.890 --> 00:06:43.760
First, though, we need to write π in terms of one variable only.
00:06:44.860 --> 00:06:47.380
The choice is entirely arbitrary in this problem.
00:06:47.760 --> 00:07:01.500
We could perform a simple rearrangement of our first equation to give π¦ equals 156 minus π₯ and then substitute this expression for π¦ into our equation for π to give an equation in terms of π₯ only.
00:07:02.820 --> 00:07:13.670
Distributing the parentheses and then simplifying gives π is equal to two π₯ squared minus 312π₯ plus 24336.
00:07:14.980 --> 00:07:21.120
Remember, weβre looking to minimize this sum of squares, so we need to find the critical points of π .
00:07:21.310 --> 00:07:28.110
To do so, we need to find where the first derivative of π with respect to π₯, thatβs dπ by dπ₯, is equal to zero.
00:07:29.410 --> 00:07:31.830
We can use the power rule to find this derivative.
00:07:31.830 --> 00:07:36.460
And we see that dπ by dπ₯ is equal to four π₯ minus 312.
00:07:37.730 --> 00:07:41.620
We then set this derivative equal to zero and solve for π₯.
00:07:42.680 --> 00:07:48.680
We first add 312 to each side and then divide by four, giving π₯ equals 78.
00:07:50.140 --> 00:07:53.710
So, we found the value of π₯ at which π has a critical point.
00:07:53.860 --> 00:07:55.660
But there are two things we need to do.
00:07:56.020 --> 00:07:59.140
In a moment, weβll confirm that this is indeed a minimum.
00:07:59.400 --> 00:08:06.580
But first, we also need to find the value of π¦, which we can do by substituting the value of π₯ into our linear equation.
00:08:07.830 --> 00:08:13.260
We see that π¦ is equal to 156 minus 78, which is equal to 78.
00:08:14.780 --> 00:08:17.610
To confirm that this critical point is indeed a minimum.
00:08:17.610 --> 00:08:21.760
We need to find the second derivative of the function π with respect to π₯.
00:08:22.200 --> 00:08:27.640
Differentiating dπ by dπ₯ again gives d two π by dπ₯ squared is equal to four.
00:08:28.840 --> 00:08:33.700
The second derivative of π with respect to π₯ is, therefore, constant for all values of π₯.
00:08:33.820 --> 00:08:39.890
And more importantly, it is positive, which confirms that this critical point is indeed a minimum.
00:08:41.290 --> 00:08:48.790
The two numbers then whose sum is 156, which have the minimum sum of squares, are 78 and 78.
00:08:50.640 --> 00:08:57.930
In this example, we saw how to set up the optimization function and any constraints ourselves from information given in the question.
00:08:58.300 --> 00:09:02.010
Weβll, now see how to do this again with a more practical example.
00:09:04.050 --> 00:09:07.890
A wire of length 41 centimeters is used to make a rectangle.
00:09:08.280 --> 00:09:10.750
What dimensions give its maximum area?
00:09:12.020 --> 00:09:15.010
Now, itβs important that we donβt just attempt trial and error here.
00:09:15.010 --> 00:09:26.560
We need to use a proper optimization method to find the dimensions which will give the largest possible area for this rectangle, subject to the constraint that we only have 41 centimeters of wire.
00:09:27.620 --> 00:09:32.890
Letβs consider then a rectangle with a length of π centimeters and a width of π€ centimeters.
00:09:34.010 --> 00:09:39.250
We need to maximize its area, which for a rectangle is its length multiplied by its width.
00:09:40.510 --> 00:09:45.940
Subject to the constraint which is that the perimeter of this rectangle must be equal to 41.
00:09:46.220 --> 00:09:49.670
The perimeter of a rectangle is twice its length plus twice its width.
00:09:49.860 --> 00:09:53.820
So, we have the constraint two π plus two π€ equals 41.
00:09:55.180 --> 00:10:01.630
Now, in order to maximize this area, weβre going to need to use differentiation to find the critical points of this function π΄.
00:10:01.920 --> 00:10:06.470
But before we can do that, we need to write π΄ in terms of one variable only.
00:10:07.680 --> 00:10:11.070
The choice of whether we use π or π€ is entirely arbitrary.
00:10:11.280 --> 00:10:17.250
So, Iβve chosen to rearrange the linear equation to give π equals 41 minus two π€ over two.
00:10:18.440 --> 00:10:26.480
Substituting this expression for π into our area formula gives π΄ equals 41 minus two π€ over two multiplied by π€.
00:10:26.770 --> 00:10:32.190
And distributing the parentheses, we have 41π€ over two minus π€ squared.
00:10:33.590 --> 00:10:43.950
To find the critical points of π΄, we first find its first derivative, dπ΄ by dπ€, which, using the power rule of differentiation, is equal to 41 over two minus two π€.
00:10:45.320 --> 00:10:50.310
We then set this expression equal to zero and solve the resulting equation for π€.
00:10:51.470 --> 00:10:57.690
We add two π€ to each side and then divide by two, giving π€ is equal to 41 over four.
00:10:57.960 --> 00:11:03.160
So, weβve found the width of the rectangle at which the area has a critical point.
00:11:04.500 --> 00:11:15.240
We also need to find the length though, which we do by substituting this value of π€ back into our expression for π, giving 41 minus two times 41 over four all over two.
00:11:16.510 --> 00:11:19.620
Which also simplifies to 41 over four.
00:11:19.930 --> 00:11:21.600
However, weβre not yet finished.
00:11:21.690 --> 00:11:26.450
We know that these values of π€ and π give a critical point for the area.
00:11:26.670 --> 00:11:30.050
But we havenβt yet confirmed that it is indeed a maximum.
00:11:31.110 --> 00:11:34.320
To check this, we need to perform the second derivative test.
00:11:34.520 --> 00:11:39.490
We find d two π΄ by dπ€ squared, which is equal to negative two.
00:11:40.720 --> 00:11:43.500
Now, this is a constant for all values of π€.
00:11:43.630 --> 00:11:46.380
But more specifically it is a negative constant.
00:11:46.500 --> 00:11:52.960
And as the second derivative is less than zero, this confirms that our critical point is indeed a maximum.
00:11:54.200 --> 00:12:05.040
So, we found that the length and width which give this rectangle its maximum area, subject to the given perimeter constraint, as decimals, are both 10.25 centimeters.
00:12:06.300 --> 00:12:11.880
Now, we notice that the length and width of this rectangle are actually the same, making it in fact a square.
00:12:12.290 --> 00:12:19.210
This illustrates a general point in optimization problems where weβre looking to maximize an area with respect to a length constraint.
00:12:19.540 --> 00:12:28.530
The maximum area will be achieved when the dimensions are as similar as possible i.e. when the ratio between the dimensions is as close as possible to one to one.
00:12:29.230 --> 00:12:34.990
In the case of a problem involving a rectangle, it will always turn out that the shape will in fact be a square.
00:12:35.240 --> 00:12:38.100
But of course, we must always go through the working out.
00:12:38.100 --> 00:12:39.340
In order to show this.
00:12:41.050 --> 00:12:49.080
In our final example, weβll see how to maximize the sum of the volumes of two three-dimensional shapes subject to a surface area constraint.
00:12:51.220 --> 00:13:04.440
Given that the sum of the surface areas of a sphere and a right circular cylinder is 1000π centimeters squared, and their radii are equal, find the radius of the sphere that makes the sum of their volume at its maximum value.
00:13:06.070 --> 00:13:15.230
So, in this question, weβre asked to maximize the sum of the volumes of two three-dimensional solids, subject to a constraint about the sum of their surface areas.
00:13:15.570 --> 00:13:20.980
Letβs begin by writing down formulae for the surface areas of both the sphere and the right circular cylinder.
00:13:21.240 --> 00:13:25.650
And as their radii are the same, we can use the same letter π for both.
00:13:26.940 --> 00:13:31.630
For the sphere, first of all, its surface area is given by four ππ squared.
00:13:32.950 --> 00:13:39.990
For the cylinder, its surface area is two ππ squared plus two ππβ, where β represents the height of the cylinder.
00:13:41.300 --> 00:13:52.120
As the sum of these surface areas is 1000π centimeters squared, we can form an equation, four ππ squared plus two ππ squared plus two ππβ equals 1000π.
00:13:53.400 --> 00:14:00.790
We can then combine the like terms on the left-hand side and then divide through by a π, as this is a common factor in all terms.
00:14:02.000 --> 00:14:08.790
We could also divide through by two, as all the coefficients are even, to give three π squared plus πβ equals 500.
00:14:10.210 --> 00:14:15.670
We canβt do anything further with this equation at this point, as we have two unknowns π and β.
00:14:15.860 --> 00:14:20.290
So, next, we recall the formulae for the volume of a sphere and the volume of a cylinder.
00:14:21.780 --> 00:14:26.470
The volume of a sphere is four-thirds multiplied by π multiplied by its radius cubed.
00:14:26.610 --> 00:14:31.490
And the volume of a cylinder is π multiplied by its radius squared multiplied by its height.
00:14:31.740 --> 00:14:38.050
So, we have that the total volume of these two solids is four-thirds ππ cubed plus ππ squared β.
00:14:39.370 --> 00:14:42.490
We want to maximize the sum of these volumes, π total.
00:14:42.780 --> 00:14:51.290
Now, this will be maximized when its rate of change with respect to either π or β is equal to zero, which will be when its first derivative is equal to zero.
00:14:51.700 --> 00:14:57.290
But before we can differentiate, we need to express π total in terms of a single variable.
00:14:58.320 --> 00:15:06.470
Itβs much more straightforward to rearrange our surface area constraint to give an expression for β in terms of π than it is to give an expression for π in terms of β.
00:15:06.600 --> 00:15:10.520
We have β equals 500 minus three π squared over π.
00:15:11.790 --> 00:15:18.900
We can then substitute this expression for β into our expression for the total volume so that it is in terms of π only.
00:15:20.120 --> 00:15:31.780
We can cancel a factor of π in the second term and then distribute the parentheses to give four-thirds ππ cubed plus 500ππ minus three ππ cubed.
00:15:31.970 --> 00:15:35.510
We have an expression for π total in terms of π only.
00:15:36.830 --> 00:15:44.010
Next, we need to find the first derivative dπ total by dπ, so weβll create a little bit of space in order to do this.
00:15:45.290 --> 00:16:05.400
By applying the power rule of differentiation, we see that the derivative of π total with respect to π is equal to four-thirds π multiplied by three π squared plus 500π minus three π multiplied by three π squared, which all simplifies to 500π minus five ππ squared.
00:16:05.960 --> 00:16:11.080
Next, in order to find critical points, we need to set this derivative equal to zero and solve for π.
00:16:12.130 --> 00:16:17.500
We can divide through by five π, giving zero equals 100 minus π squared.
00:16:18.630 --> 00:16:22.270
Adding π squared to both sides gives π squared equals 100.
00:16:22.430 --> 00:16:24.560
And we then find π by square rooting.
00:16:24.760 --> 00:16:30.970
We only need to take the positive square root as the radius of a solid must be a positive value.
00:16:31.160 --> 00:16:33.310
So, we see that π is equal to 10.
00:16:34.550 --> 00:16:40.280
We now know that the combined volume of these two solids has a critical point when the radius is equal to 10.
00:16:40.480 --> 00:16:43.260
But we must now confirm that it is a maximum.
00:16:44.520 --> 00:16:46.570
We perform the second derivative test.
00:16:46.830 --> 00:16:53.500
Differentiating our expression for dπ total by dπ again, with respect to π, gives negative 10ππ.
00:16:54.490 --> 00:16:58.560
And evaluating this when π is equal to 10 gives negative 100π.
00:16:59.640 --> 00:17:04.070
This is negative, which confirms that the critical point is indeed a maximum.
00:17:05.260 --> 00:17:16.690
So, we found that the radius of the sphere and also the radius of the right circular cylinder which maximizes the sum of their volumes, subject to the given surface area constraint, is 10 centimeters.
00:17:18.210 --> 00:17:21.330
Letβs summarize then the key points that weβve seen in this video.
00:17:21.630 --> 00:17:26.290
Firstly, the key principles of differentiation can be applied to optimization problems.
00:17:26.480 --> 00:17:30.310
Thatβs problems where we want to find the maximum or minimum value of a function.
00:17:31.560 --> 00:17:37.510
We know that the critical points of a function occur when its first derivative is equal to zero or is undefined.
00:17:38.670 --> 00:17:45.690
Once we found a critical point, we must always confirm that it is indeed a maximum or minimum by performing the second derivative test.
00:17:46.980 --> 00:17:55.050
And weβve seen that it may be necessary for us to form both the optimization function and any constraints ourselves from a written description.