WEBVTT
00:00:00.560 --> 00:00:07.400
In this video, we will see one of the practical applications of differentiation to optimization problems.
00:00:08.120 --> 00:00:16.240
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:16.840 --> 00:00:28.160
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:29.000 --> 00:00:37.800
In some examples, weβll also see how to form the optimization function and any constraints ourselves from a worded description.
00:00:38.760 --> 00:00:45.000
We recall, first of all, some key facts about using differentiation to find the critical points of a function.
00:00:45.840 --> 00:00:56.000
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:56.680 --> 00:01:05.880
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:06.400 --> 00:01:12.560
We can find the value of the function itself at the critical point by substituting our π₯-value or values into the function.
00:01:13.360 --> 00:01:22.760
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:23.440 --> 00:01:36.000
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:36.720 --> 00:01:42.480
Weβll now see how to apply these key principles to some optimization problems.
00:01:43.640 --> 00:01:45.080
A rocket is launched in the air.
00:01:45.440 --> 00:01:59.240
Its height, in meters, as a function of time is given by β of π‘ equals negative 4.9π‘ squared plus 229π‘ plus 234.
00:02:00.000 --> 00:02:02.640
Find the maximum height the rocket attains.
00:02:04.040 --> 00:02:08.240
So, weβve been given an equation for the height β of this rocket in terms of π‘ time.
00:02:08.800 --> 00:02:12.440
And weβre asked to determine the maximum height that the rocket attains.
00:02:13.280 --> 00:02:16.200
We can follow some key steps in order to do so.
00:02:16.720 --> 00:02:20.360
First, we need to find an expression for the first derivative of our function.
00:02:20.920 --> 00:02:24.720
In this case, thatβs β prime of π‘.
00:02:25.480 --> 00:02:42.080
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:43.000 --> 00:02:48.440
Next, we recall that at the critical points of the function, the first derivative is equal to zero.
00:02:49.040 --> 00:02:57.160
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:58.080 --> 00:03:24.920
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:03:25.760 --> 00:03:31.360
Now, this is the value of π‘ at which our function β of π‘ has a critical point.
00:03:32.160 --> 00:03:36.680
We donβt yet know whether it is a maximum.
00:03:37.160 --> 00:03:41.080
And we donβt yet know the height that the rocket attains at this point.
00:03:41.880 --> 00:03:49.680
Our next step, then, is to evaluate the function β of π‘ when π‘ is equal to 23.37.
00:03:50.360 --> 00:04:12.480
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:04:13.040 --> 00:04:25.040
Which evaluates to 2909.56119, or 2909.56 correct to two decimal places.
00:04:25.800 --> 00:04:32.400
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:04:32.960 --> 00:04:36.240
But we must confirm that it is indeed a maximum.
00:04:36.920 --> 00:04:39.960
To do so, weβll perform the second derivative test.
00:04:40.560 --> 00:04:45.920
Weβll evaluate the second derivative β double prime of π‘ at this critical point.
00:04:46.840 --> 00:04:59.800
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:05:00.480 --> 00:05:11.280
And in fact, we donβt need to evaluate the second derivative when π‘ equals 23.37 because it is a constant.
00:05:11.880 --> 00:05:15.520
The second derivative is the same for all values of π‘.
00:05:16.400 --> 00:05:19.000
We note though, that this value is negative.
00:05:19.400 --> 00:05:25.080
And therefore, by the second derivative test, our critical point is a maximum.
00:05:25.720 --> 00:05:34.280
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:05:34.800 --> 00:05:40.480
And therefore, the graph of π‘ against β would be an inverted parabola.
00:05:41.520 --> 00:05:46.400
And we know that it will therefore have a maximum point rather than a minimum.
00:05:47.160 --> 00:06:00.880
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:06:02.040 --> 00:06:06.160
Now, itβs just worth pointing out that in this question, each of the derivatives also have practical interpretations.
00:06:06.760 --> 00:06:17.320
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:06:18.000 --> 00:06:25.920
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:06:26.600 --> 00:06:31.960
Which, we see, is equal to negative 9.8 meters per second squared.
00:06:32.440 --> 00:06:34.920
And thatβs the deceleration due to gravity.
00:06:35.760 --> 00:06:39.760
In this problem, the function we needed to optimize was given to us.
00:06:40.360 --> 00:06:48.800
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:06:49.360 --> 00:06:51.760
Letβs see how this works in our next example.
00:06:52.880 --> 00:07:00.040
Find two numbers whose sum is 156 and the sum of whose squares is the least possible.
00:07:00.760 --> 00:07:05.480
Letβs allow these two numbers, which we donβt yet know, to be π₯ and π¦.
00:07:06.000 --> 00:07:14.280
Then, we can express the fact that their sum is 156 as π₯ plus π¦ equals 156.
00:07:14.840 --> 00:07:20.120
We want to minimize the sum of their squares, which we can call π .
00:07:20.960 --> 00:07:23.800
π is equal to π₯ squared plus π¦ squared.
00:07:24.280 --> 00:07:32.920
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:07:33.720 --> 00:07:37.600
This means that we need to differentiate π with respect to either π₯ or π¦.
00:07:38.480 --> 00:07:42.240
First, though, we need to write π in terms of one variable only.
00:07:42.800 --> 00:07:44.440
The choice is entirely arbitrary in this problem.
00:07:44.960 --> 00:07:59.080
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:59.720 --> 00:08:12.200
Distributing the parentheses and then simplifying gives π is equal to two π₯ squared minus 312π₯ plus 24336.
00:08:13.200 --> 00:08:20.600
Remember, weβre looking to minimize this sum of squares, so we need to find the critical points of π .
00:08:21.320 --> 00:08:29.840
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:08:30.520 --> 00:08:33.800
We can use the power rule to find this derivative.
00:08:34.280 --> 00:08:40.880
And we see that dπ by dπ₯ is equal to four π₯ minus 312.
00:08:41.560 --> 00:08:46.200
We then set this derivative equal to zero and solve for π₯.
00:08:46.800 --> 00:08:55.120
We first add 312 to each side and then divide by four, giving π₯ equals 78.
00:08:55.960 --> 00:09:01.560
So, we found the value of π₯ at which π has a critical point.
00:09:02.240 --> 00:09:04.120
But there are two things we need to do.
00:09:04.520 --> 00:09:08.560
In a moment, weβll confirm that this is indeed a minimum.
00:09:09.000 --> 00:09:16.120
But first, we also need to find the value of π¦, which we can do by substituting the value of π₯ into our linear equation.
00:09:16.640 --> 00:09:23.640
We see that π¦ is equal to 156 minus 78, which is equal to 78.
00:09:24.520 --> 00:09:29.200
To confirm that this critical point is indeed a minimum.
00:09:29.560 --> 00:09:33.360
We need to find the second derivative of the function π with respect to π₯.
00:09:34.120 --> 00:09:41.360
Differentiating dπ by dπ₯ again gives d two π by dπ₯ squared is equal to four.
00:09:41.760 --> 00:09:48.560
The second derivative of π with respect to π₯ is, therefore, constant for all values of π₯.
00:09:49.080 --> 00:09:56.520
And more importantly, it is positive, which confirms that this critical point is indeed a minimum.
00:09:56.520 --> 00:10:07.240
The two numbers then whose sum is 156, which have the minimum sum of squares, are 78 and 78.
00:10:08.360 --> 00:10:15.680
In this example, we saw how to set up the optimization function and any constraints ourselves from information given in the question.
00:10:16.280 --> 00:10:21.760
Weβll, now see how to do this again with a more practical example.
00:10:22.480 --> 00:10:26.560
A wire of length 41 centimeters is used to make a rectangle.
00:10:27.320 --> 00:10:30.240
What dimensions give its maximum area?
00:10:31.400 --> 00:10:34.320
Now, itβs important that we donβt just attempt trial and error here.
00:10:34.680 --> 00:10:50.720
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:10:51.600 --> 00:10:56.160
Letβs consider then a rectangle with a length of π centimeters and a width of π€ centimeters.
00:10:56.760 --> 00:11:01.440
We need to maximize its area, which for a rectangle is its length multiplied by its width.
00:11:02.160 --> 00:11:07.680
Subject to the constraint which is that the perimeter of this rectangle must be equal to 41.
00:11:08.480 --> 00:11:12.000
The perimeter of a rectangle is twice its length plus twice its width.
00:11:12.520 --> 00:11:17.960
So, we have the constraint two π plus two π€ equals 41.
00:11:18.680 --> 00:11:24.920
Now, in order to maximize this area, weβre going to need to use differentiation to find the critical points of this function π΄.
00:11:25.480 --> 00:11:31.080
But before we can do that, we need to write π΄ in terms of one variable only.
00:11:31.720 --> 00:11:34.200
The choice of whether we use π or π€ is entirely arbitrary.
00:11:34.920 --> 00:11:42.400
So, Iβve chosen to rearrange the linear equation to give π equals 41 minus two π€ over two.
00:11:43.000 --> 00:11:51.080
Substituting this expression for π into our area formula gives π΄ equals 41 minus two π€ over two multiplied by π€.
00:11:51.960 --> 00:11:58.080
And distributing the parentheses, we have 41π€ over two minus π€ squared.
00:11:58.680 --> 00:12:11.760
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:12:12.520 --> 00:12:17.480
We then set this expression equal to zero and solve the resulting equation for π€.
00:12:18.120 --> 00:12:24.960
We add two π€ to each side and then divide by two, giving π€ is equal to 41 over four.
00:12:25.680 --> 00:12:30.240
So, weβve found the width of the rectangle at which the area has a critical point.
00:12:30.720 --> 00:12:43.320
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:12:44.000 --> 00:12:47.040
Which also simplifies to 41 over four.
00:12:47.400 --> 00:12:49.280
However, weβre not yet finished.
00:12:50.040 --> 00:12:54.160
We know that these values of π€ and π give a critical point for the area.
00:12:54.840 --> 00:12:59.240
But we havenβt yet confirmed that it is indeed a maximum.
00:12:59.920 --> 00:13:03.360
To check this, we need to perform the second derivative test.
00:13:04.000 --> 00:13:10.120
We find d two π΄ by dπ€ squared, which is equal to negative two.
00:13:10.760 --> 00:13:13.480
Now, this is a constant for all values of π€.
00:13:14.080 --> 00:13:17.200
But more specifically it is a negative constant.
00:13:17.920 --> 00:13:24.600
And as the second derivative is less than zero, this confirms that our critical point is indeed a maximum.
00:13:25.200 --> 00:13:39.280
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:13:40.200 --> 00:13:45.600
Now, we notice that the length and width of this rectangle are actually the same, making it in fact a square.
00:13:46.280 --> 00:13:54.440
This illustrates a general point in optimization problems where weβre looking to maximize an area with respect to a length constraint.
00:13:55.200 --> 00:14:05.160
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:14:05.920 --> 00:14:11.320
In the case of a problem involving a rectangle, it will always turn out that the shape will in fact be a square.
00:14:11.800 --> 00:14:14.440
But of course, we must always go through the working out.
00:14:15.080 --> 00:14:15.960
In order to show this.
00:14:16.360 --> 00:14:26.400
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:14:27.200 --> 00:14:42.160
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:14:43.160 --> 00:14:53.760
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:14:54.440 --> 00:15:00.440
Letβs begin by writing down formulae for the surface areas of both the sphere and the right circular cylinder.
00:15:00.880 --> 00:15:05.160
And as their radii are the same, we can use the same letter π for both.
00:15:05.720 --> 00:15:08.720
For the sphere, first of all, its surface area is given by four ππ squared.
00:15:09.240 --> 00:15:17.560
For the cylinder, its surface area is two ππ squared plus two ππβ, where β represents the height of the cylinder.
00:15:18.120 --> 00:15:33.440
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:15:34.440 --> 00:15:42.880
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:15:44.040 --> 00:15:54.640
We could also divide through by two, as all the coefficients are even, to give three π squared plus πβ equals 500.
00:15:55.320 --> 00:16:01.920
We canβt do anything further with this equation at this point, as we have two unknowns π and β.
00:16:02.640 --> 00:16:05.720
So, next, we recall the formulae for the volume of a sphere and the volume of a cylinder.
00:16:06.520 --> 00:16:12.120
The volume of a sphere is four-thirds multiplied by π multiplied by its radius cubed.
00:16:12.760 --> 00:16:18.640
And the volume of a cylinder is π multiplied by its radius squared multiplied by its height.
00:16:19.320 --> 00:16:27.680
So, we have that the total volume of these two solids is four-thirds ππ cubed plus ππ squared β.
00:16:28.920 --> 00:16:34.120
We want to maximize the sum of these volumes, π total.
00:16:34.920 --> 00:16:45.280
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:16:46.080 --> 00:16:52.440
But before we can differentiate, we need to express π total in terms of a single variable.
00:16:53.240 --> 00:17:02.640
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:17:03.440 --> 00:17:07.920
We have β equals 500 minus three π squared over π.
00:17:08.680 --> 00:17:15.800
We can then substitute this expression for β into our expression for the total volume so that it is in terms of π only.
00:17:16.560 --> 00:17:28.960
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:17:29.800 --> 00:17:33.440
We have an expression for π total in terms of π only.
00:17:34.120 --> 00:17:42.080
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:17:42.720 --> 00:18:02.760
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:18:03.240 --> 00:18:09.440
Next, in order to find critical points, we need to set this derivative equal to zero and solve for π.
00:18:10.080 --> 00:18:15.960
We can divide through by five π, giving zero equals 100 minus π squared.
00:18:16.440 --> 00:18:21.000
Adding π squared to both sides gives π squared equals 100.
00:18:21.480 --> 00:18:24.280
And we then find π by square rooting.
00:18:25.000 --> 00:18:32.080
We only need to take the positive square root as the radius of a solid must be a positive value.
00:18:32.600 --> 00:18:35.120
So, we see that π is equal to 10.
00:18:35.800 --> 00:18:42.880
We now know that the combined volume of these two solids has a critical point when the radius is equal to 10.
00:18:43.560 --> 00:18:47.280
But we must now confirm that it is a maximum.
00:18:48.200 --> 00:18:49.760
We perform the second derivative test.
00:18:50.280 --> 00:18:58.360
Differentiating our expression for dπ total by dπ again, with respect to π, gives negative 10ππ.
00:18:59.040 --> 00:19:03.640
And evaluating this when π is equal to 10 gives negative 100π.
00:19:04.360 --> 00:19:09.880
This is negative, which confirms that the critical point is indeed a maximum.
00:19:10.720 --> 00:19:24.040
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:19:25.160 --> 00:19:28.360
Letβs summarize then the key points that weβve seen in this video.
00:19:29.280 --> 00:19:34.080
Firstly, the key principles of differentiation can be applied to optimization problems.
00:19:34.880 --> 00:19:39.360
Thatβs problems where we want to find the maximum or minimum value of a function.
00:19:40.200 --> 00:19:47.040
We know that the critical points of a function occur when its first derivative is equal to zero or is undefined.
00:19:47.680 --> 00:19:55.720
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:19:56.440 --> 00:20:06.840
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.