Lesson Explainer: Optimization: Applications on Extreme Values | Nagwa Lesson Explainer: Optimization: Applications on Extreme Values | Nagwa

Lesson Explainer: Optimization: Applications on Extreme Values Mathematics • Third Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to apply derivatives to real-world problems to find the maximum and the minimum values of a function under certain conditions.

The basic idea of all optimization problems is the same; we have a particular quantity, such as cost, area, or volume, that we want to minimize or maximize. That quantity is a dependent variable described by a function of the independent variables, such as time, length, or temperature.

Specific real-world examples of optimization problems include a company wanting to minimize production costs or maximize revenue or profit. In manufacturing, it is often desirable to minimize the amount of material used to package a product with a certain fixed volume; boxes of different dimensions can have the same volume but different surface areas. Many optimization problems also have an additional auxiliary condition or constraint, relating the independent variables, that we have to take into account. For example, we may want to maximize the area of a rectangular garden with a particular constraint on how much wire fencing we have for three sides of the rectangle.

In a real-world optimization problem, the first step is to specify the dependent and independent variables; a diagram may also help to visualize the problem. We then determine which quantity we want to minimize or maximize and express that quantity as a function to be optimized, including any additional constraints relating the independent variables. We then determine the critical (or stationary) points of the function using the first derivative test and classify them as (local) maxima or minima by the second derivative test.

Let’s first remind ourselves of the definition of a critical point.

Definition: Critical Point

The point (𝑐,𝑓(𝑐)) is called a critical point of 𝑦=𝑓(𝑥), provided 𝑥=𝑐 is in the domain of the function 𝑓(𝑥) and 𝑓(𝑥) is continuous at 𝑥=𝑐, and either 𝑓(𝑐)=0𝑓(𝑐).orisundened

A critical point can be classified as either a minimum or maximum according to the second derivative test as follows.

Definition: Second Derivative Test

Suppose 𝑓 is a twice differentiable function defined on some interval containing the critical point 𝑥=𝑐. Then

  • if 𝑓(𝑐)<0, then 𝑓(𝑥) has a local maximum at 𝑥=𝑐;
  • if 𝑓(𝑐)>0, then 𝑓(𝑥) has a local minimum at 𝑥=𝑐;
  • if 𝑓(𝑐)=0, then 𝑓(𝑥) may have a point of inflection at 𝑥=𝑐.

In this explainer, we are interested in maximum and minimum values of functions and their applications to real-world problems. Thus, we will ignore points with 𝑓(𝑐)=0 as the second derivative test says nothing about the point 𝑥=𝑐, a possible inflection point, with respect to optimization.

For these problems, it can be useful to begin by looking at how to apply the process in a specific example with the volume of a hot-air balloon. In particular, we will apply optimization to find the maximum volume, given its expansion function over time.

Example 1: Finding the Maximum Value of a Function Involving a Rational Function Using the Quotient Rule

Given that the volume of a hot-air balloon grows according to the relation 𝑓(𝑡)=7000𝑡𝑡+49+4000, where the time is measured in hours, determine its maximum volume.

Answer

In this example, we want to find the maximum volume of a hot-air balloon, as depicted in the picture, which grows according to a particular relation, 𝑓(𝑡), where 𝑡 is the time measured in hours.

In order to do this, we must find the critical points of the function 𝑓(𝑡), by taking the first derivative with respect to time, 𝑡, setting the derivative equal to zero, and solving for 𝑡. We can then determine the nature of the critical points using the second derivative test.

Since our relation involves a rational function, in order to differentiate, we recall the quotient rule for differentiable functions 𝑢(𝑡) and 𝑣(𝑡): 𝑢𝑣=𝑣𝑢𝑢𝑣𝑣.

Using this with 𝑢(𝑡)=7000𝑡 and 𝑣(𝑡)=𝑡+49, we can find the first derivative of the function 𝑓(𝑡) as 𝑓(𝑡)=700049𝑡(𝑡+49)=0.

Now, solving for 𝑡, we find that 49𝑡=0 and hence 𝑡=±7. However, only nonnegative values of 𝑡 are valid since time is always nonnegative (𝑡0); hence, we have the only critical point 𝑡=7, and we can ignore the solution with 𝑡=7.

We can determine the nature of this critical point using the second derivative test. Applying the quotient rule again with 𝑢(𝑡)=700049𝑡 and 𝑣(𝑡)=𝑡+49, we find the second derivative of the volume function 𝑓(𝑡) as 𝑓(𝑡)=14000𝑡2058000𝑡(𝑡+49).

Substituting the critical point 𝑡=7 into this, we find 𝑓(7)=14000×72058000×7(7+49)=50049.

Thus, since 𝑓(7)<0, by the second derivative test, the critical point 𝑡=7 is a local maximum of the volume function 𝑓(𝑡) of the hot-air balloon. At this critical point, the volume is given by 𝑓(7)=7000×77+49+4000=500+4000=4500.

The maximum volume of the hot-air balloon is therefore 4‎ ‎500 cubic units.

Let’s consider a further real-world application of optimization to maximize the profit for a particular company. Suppose a company has a nonlinear relationship between its monthly advertising budget, £𝑥 thousand, and profit, £𝑦 thousand, given by the cubic function 𝑦(𝑥)=0.05𝑥1.18𝑥+7.43𝑥7.35.

The company’s monthly advertising budget is never less than £4‎ ‎000 but cannot exceed £14‎ ‎000; in other words, we have 4𝑥14. To determine the maximum profit, we begin by finding the first derivative of this function with respect to 𝑥 and setting it equal to zero: 𝑦(𝑥)=𝑦𝑥=0.15𝑥2.36𝑥+7.43=0.dd

Solving for 𝑥, using the quadratic formula or otherwise, we find the critical points 𝑥=4.35225,𝑥=11.3811(6).sf

Both of these critical points lie within the range of possible 𝑥-values, 4𝑥14. Now, to determine the nature of these points, we use the second derivative test. The second derivative of the profit function 𝑦(𝑥) is given by 𝑦(𝑥)=0.3𝑥2.36.

Now, substituting our critical values into the second derivative, we find 𝑦(4.3522)=0.3×4.352252.36=1.0543,𝑦(11.3811)=0.3×11.38112.36=1.0543.

Therefore, since 𝑦(4.3522)<0 and 𝑦(11.3811)>0, by the second derivative test, 𝑥=4.35225 is a local maximum and 𝑥=11.3811 is a local minimum of the profit function 𝑦(𝑥). This is also shown in the plot of the profit function below.

Given the constraint that the advertising budget is between £4‎ ‎000 and £14‎ ‎000 (4𝑥14), by substituting 𝑥=4.35225 into the profit function 𝑦, we find that the maximum profit the company can make during a month is 𝑦(4.35225)=0.05(4.35225)1.18(4.35225)+7.43(4.35225)7.35=6.75760(6),6757.60.sfor£

We note that when we have a particular constraint for the input values 𝑥, we should also check the value of the function at the edges of the constraint as these could give a higher or lower value compared to the local maximum or minimum respectively. For this problem, it is possible that maximum profit may be at the edges of the constraint values, but this is not the case here as shown on the plot. We can also verify this by substituting the values 𝑥=4 and 𝑥=14 into the profit function: 𝑦(4)=0.05(4)1.18(4)+7.43(4)7.35=6.69,𝑦(14)=0.05(14)1.18(14)+7.43(14)7.35=2.59.

These give lower values than we got from the local maximum with 𝑦(4.35225). Thus, 𝑥=4.35225 is indeed a local maximum of the profit function given the constraint 4𝑥14.

In our next example, we will apply optimization to find the maximum current in an electrical circuit with an alternating current.

Example 2: Finding the Maximum Value of an Alternating Current given Its Expression with Time Using Differentiation

In a circuit of an alternating current, the current 𝐼, measured in amperes, at any moment 𝑡, measured in seconds, is given by the relation 𝐼=16𝑡+19𝑡sincos. What is the maximum value of the current in this circuit rounded to two decimal places?

Answer

In this example, we want to find the maximum value of an alternating current, as depicted in the picture, given its expression as function of time, 𝐼(𝑡).

To do this, we must find the critical points of the current 𝐼, by taking the first derivative, setting it equal to zero, and solving for 𝑡. We can then determine the nature of the critical points using the second derivative test.

Taking the first derivative for the alternating current 𝐼 with respect to 𝑡 and setting it equal to zero gives 𝐼(𝑡)=16𝑡19𝑡=0.cossin

In order to solve for 𝑡, we can rearrange this expression to obtain tan𝑡=1619, and hence the critical points, in radians, from the general solution for 𝑛 are 𝑡=1619+𝑛𝜋=0.6998+𝑛𝜋.tan

Since the trigonometric functions are periodic, we only need to consider the critical points for 𝑛=0 and 𝑛=1, corresponding to 𝑡=0.6998 and 𝑡=3.8414, as the current 𝐼 will alternate between the values evaluated at these critical points, the maximum and minimum.

We can determine the nature of these critical points using the second derivative test. The second derivative of the current function 𝐼(𝑡) is given by 𝐼(𝑡)=16𝑡19𝑡.sincos

Substituting the critical points 𝑡=0.6998 and 𝑡=3.8414 into the second derivative gives 𝐼(0.6998)=16(0.6998)19(0.6998)=24.8394847,𝐼(3.8414)=16(3.8414)19(3.8414)=24.8394.sincossincos

Thus, since 𝐼(0.6998)<0 and 𝐼(3.8414>0), by the second derivative test, 𝑡=0.6998 is a local maximum and 𝑡=3.8414 is a local minimum of the function 𝐼(𝑡) of the current.

For the critical points given by the general solution, 𝑡=0.6998+𝑛𝜋, we have a local maximum for even 𝑛 and a local minimum for odd 𝑛.

The maximum current can be found by substituting 𝑡=0.6998: 𝐼(0.6998)=16(0.6998)+24(0.6998)=24.8394.sincos

Therefore, the maximum value of the current rounded to two decimal places is 24.84 A.

So far, for the examples we have considered, we have been given the particular function to find the optimum values for. However, in many real-world examples, we have to derive this function first by the information given or by physical considerations.

Let’s consider an example where we must first derive the function that we want to optimize. An open box is to be constructed from a rectangular piece of card measuring 64 cm by 24 cm. A square of side length 𝑥 cm is to be cut out of each corner so that the box can be made by folding, as shown in the diagrams below. The resulting box is a rectangular prism whose base measures 642𝑥 cm by 242𝑥 cm and whose height is 𝑥 cm.

Recall that the formula for the volume of a rectangular box with side lengths 𝑎 and 𝑏 and height is 𝑉=𝑎𝑏 in cubic units. In our case, the side lengths are 𝑎=642𝑥 and 𝑏=242𝑥 and the height is =𝑥, so the volume of the box is 𝑉(𝑥)=(642𝑥)(242𝑥)𝑥=4𝑥176𝑥+1536𝑥.

In order to find the maximum value for volume 𝑉, we find the critical points of 𝑉 and identify the maxima. Taking the first derivative and setting it equal to zero, 𝑉(𝑥)=12𝑥352𝑥+1536=0.

Solving for 𝑥, using the quadratic formula or otherwise, we find 𝑥=24,𝑥=163.cmcm

Now we take the second derivative of the volume function 𝑉(𝑥) in order to classify these critical points: 𝑉(𝑥)=24𝑥352.

Substituting the critical points into the second derivative 𝑉(𝑥), we find 𝑉(24)=24×24352=224,𝑉163=24×163352=224.

Therefore since 𝑉(24)>0 and 𝑉163<0, by the second derivative test, 𝑥=24 is a local minimum and 𝑥=163 is a local maximum of the volume 𝑉(𝑥) of the open box. The maximum volume of the open box can be found by substituting 𝑥=163: 𝑉163=4163176163+1536163=10240027=3792.59(6).cmsf

So far, the problems we have encountered have involved optimizing a particular function with one variable and without any constraints on the function, but many real-world problems often involve more than one variable and have a given constraint relating the independent variables. The optimization problems we want to solve are in the form maximizeorminimizeconstraint𝑓(𝑥,𝑦),𝜆(𝑥,𝑦)=𝐶.

The constraint 𝜆(𝑥,𝑦)=𝐶 can often be used to rewrite the function 𝑓(𝑥,𝑦) as a function of one variable only, after which the same steps apply when optimizing a one-variable function similar to the examples above.

Let’s look at how we can apply this in a real-world example. Consider a juice carton that has a capacity of 1‎ ‎000 cm3; the design of the carton is that of a closed rectangular prism (rectangular box) where the base measures 𝑥 cm by 2𝑥 cm and height measures cm.

The surface area of the carton, 𝐴 cm2, and volume, 𝑉 cm3, are given by 𝐴=22𝑥+𝑥+2𝑥=4𝑥+6𝑥,𝑉=𝑥(2𝑥)=2𝑥.

Suppose we want to minimize the surface area of the carton given the constraint from the volume 𝑉=1000cm. The optimization problem we want to solve is then given by minimizeconstraint𝐴=4𝑥+6𝑥,𝑉=2𝑥=1000.

We can rewrite the constraint as =10002𝑥=500𝑥,

expressing the height in terms of 𝑥. We can then rewrite the surface area 𝐴 as a function of 𝑥 only: 𝐴(𝑥)=4𝑥+6𝑥=4𝑥+6𝑥500𝑥=4𝑥+3000𝑥.

In order to find the minimum surface area, we begin by taking the first derivative of this function and setting it equal to zero: 𝐴(𝑥)=8𝑥3000𝑥=0.

Solving for 𝑥, we find the critical point as 𝑥=30008=53=7.21125(6).cmsf

To determine the nature of this critical point, we substitute it into the second derivative of the surface area and apply the second derivative test. The second derivative of the area function 𝐴(𝑥) is given by 𝐴(𝑥)=8+6000𝑥.

Substituting the critical point 𝑥=53 into the second derivative gives 𝐴53=8+600053.

Thus, since 𝐴53>0, by the second derivative test, the critical point 𝑥=53 is a local minimum of the surface area 𝐴(𝑥). The minimal surface area can be found by substituting 𝑥=53: 𝐴53=453+300053=3009=624.025(6).cmsf

Now let’s look at a few examples to practice and deepen our understanding of solving optimization problems and how they apply to real-world problems. In the first example, we want to find two numbers with the minimum sum of their squares, given their sum. This may seem abstract, but it can also represent a real-world scenario, as we shall see.

Example 3: Finding Two Numbers with the Minimum Sum of Their Squares given Their Sum Using Differentiation

Find two numbers whose sum is 156 and the sum of whose squares is the least possible.

Answer

In this example, we want to find two numbers with a given sum whose sum of squares is minimal.

Let 𝑥 and 𝑦 denote the two numbers whose sum is 156. The optimization problem we want to solve is then given by minimizeconstraint𝑆=𝑥+𝑦,𝑥+𝑦=156.

Subtracting 𝑥 from both sides of the constraint, we have 𝑦=156𝑥. This allows us to rewrite the sum 𝑆 as a function of 𝑥 only: 𝑆(𝑥)=𝑥+(156𝑥)=𝑥+𝑥312𝑥+24336=2𝑥312𝑥+24336.

In order to determine the critical points, we take the first derivative of this function with respect to 𝑥 and set it equal to zero: 𝑆(𝑥)=𝑆𝑥=4𝑥312=0.dd

Solving for 𝑥 then gives us the critical point as 𝑥=78. To determine the nature of this critical point, we can use the second derivative test. The second derivative of 𝑆(𝑥) is given by 𝑆(𝑥)=4.

Since the value of the second derivative is positive for all values of 𝑙 and thus 𝑆(78)>0, by the second derivative test, the critical point 𝑥=78 is a local minimum of the function 𝑆(𝑥). We can now find the second number, 𝑦, by substituting 𝑥=78 into the constraint: 𝑦=156𝑥=15678=78.

Therefore, the two numbers whose sum is 156 and whose sum of squares is the least possible are 78,78.

Although this example deals with an abstract problem, it could represent a mathematical model of a real-world scenario. For example, if we had to place two square shields side by side across a 156 cm gap, we might want to do that in such a way as to minimize the total area of the shields and hence the amount of material needed to make them. We could let 𝑥 be the side length (in centimetres) of the first shield and 𝑦 be the side length (in centimetres) of the second shield. We could have one small shield and one large shield, or maybe they could be roughly the same size, but, either way, to fill the 156 cm gap, the sum of 𝑥 and 𝑦 would need to be equal to 156. For this scenario, we have found from the last example that the two squares which minimize the sum of their areas would be equal and both have lengths of 78 cm.

Now, let’s look at a similar example where we use optimization to maximize the area of a rectangle, given its perimeter. We will determine the maximum area and the dimensions of the rectangle.

Example 4: Finding the Maximum Area of a Rectangular Region given Its Perimeter Using Differentiation

Find the maximum area of a rectangular piece of land that can be surrounded by a fence that is 12 metres long.

Answer

In this example, we want to determine the maximum area of a rectangular piece of land, with a given perimeter.

Let 𝑙 and 𝑤 denote the length and width of the rectangle, respectively, as shown in the diagram; the perimeter of the rectangle is given by 𝑃=2𝑙+2𝑤 which is equivalent to the length of the fence in this problem.

The optimization problem we want to solve is given by maximizeconstraint𝐴=𝑙𝑤,2𝑙+2𝑤=12.

Now, making 𝑤 the subject of the constraint, we have 𝑤=6𝑙.

Using this, we can rewrite 𝐴 as a function of 𝑙 only: 𝐴(𝑙)=𝑙(6𝑙)=6𝑙𝑙.

Now we can determine the critical points of the area 𝐴 by taking the first derivative of this function and setting it equal to zero: 𝐴(𝑙)=62𝑙=0.

Solving for 𝑙 gives us the critical point 𝑙=3. To determine the nature of this critical point, we use the second derivative test. The second derivative of the area function 𝐴(𝑙) is given by 𝐴(𝑙)=2.

Since the value of the second derivative is negative for all values of 𝑥 and thus 𝐴(3)<0, by the second derivative test, the critical point 𝑙=3 is a local maximum of the area function 𝐴(𝑙). At this critical point, the area is given by 𝐴(3)=6(3)3=9.

We also note that we can determine the width 𝑤 of the rectangle from the constraint as 𝑤=6𝑙=63=3, and we find that the area is maximized if the perimeter is a square.

Thus, the maximum area of a rectangular piece of land surrounded by a fence 12 m long is given by 9 m2.

This problem is similar to the abstract one where we have to determine two numbers with a given sum 𝑥+𝑦 that give the maximum product 𝑥𝑦. Abstract optimization problems can often be used to solve real-world problems in the right context.

Now, let’s look at an example where we have to find the dimensions of a rectangular cross section of a block of wood cut from a cylindrical log by maximizing the resistance of the block.

Example 5: Finding the Dimensions of a Rectangular Body Using Differentiation

The rectangular cross section of a block of wood is cut from a cylindrical log of diameter 67 cm. The resistance of this block is proportional to its width and the square of its length. What dimensions give the maximum resistance?

Answer

In this example, we want to find the dimensions of the rectangular cross section, a block of wood cut from a cylindrical log of a given diameter, which maximizes its resistance. Let’s denote the width of the block as 𝑤 and the length as 𝑙, as depicted in the diagram.

The resistance, which we can denote as 𝑅, is a measure of the strength of the rectangular block and it is always positive. Since the resistance is proportional to its width 𝑤 and the square of its length 𝑙, we have the relation, 𝑅=𝑘𝑤𝑙, for some 𝑘. The width and length are also related to the diameter of the log by using the Pythagorean theorem on the right triangle as 𝑤+𝑙=67. The optimization problem we want to solve is then given by maximizeconstraint𝑅=𝑘𝑤𝑙,𝑤+𝑙=4489.

We can rearrange the constraint as 𝑙=4489𝑤 and using this we can rewrite the resistance 𝑅 as a function of 𝑤 only: 𝑅(𝑤)=𝑘𝑤4489𝑤=4489𝑘𝑤𝑘𝑤.

Now we can find the critical points by taking the first derivative of this function and setting it equal to zero: 𝑅(𝑤)=4489𝑘3𝑘𝑤=0.

Solving this for 𝑤 gives us 𝑤=±6733.

Since only nonnegative values of the width are valid, we can ignore the negative solution and the only critical point is 𝑤=6733.

To determine the nature of this critical point, we use the second derivative test. The second derivative of the resistance function 𝑅(𝑤) is given by 𝑅(𝑤)=6𝑘𝑤.

Substituting the critical value 𝑤=6733 into the second derivative gives 𝑅6733=6𝑘6733.

Since 𝑘>0 and thus 𝑅6733<0, by the second derivative test, the critical point 𝑤=6733 is a local maximum of the resistance function 𝑅(𝑤). The length of the rectangular block can also be found from the constraint by substituting the critical point 𝑤=6733 as follows: 𝑙=4489𝑤=44896733=448944893=89783=6763.

Thus, the dimensions of the rectangular cross section that give the maximum resistance are 6733 cm, 6763 cm.

In the next example, we will find the maximum area of a rectangular shaped playground which ends in two semicircles, with a given perimeter.

Example 6: Finding the Maximum Area of a Region Composed of a Rectangle Ending in Two Semicircles given the Perimeter of the Region Using Differentiation

A rectangular-shaped playground ends in two semicircles. Given that the perimeter of the playground is 594 m, determine its maximum area.

Answer

In this example, we want to find the maximum area of a playground, composed of a rectangle ending in two semicircles, with a given perimeter.

Let’s denote the width of the inner rectangle as 𝑥, which is also the diameter of the semicircles, and the length of the rectangle as 𝑦. Since there are two semicircles, one on each end of the rectangle, the area and perimeter of the two ends combined are that of a whole circle, of radius 𝑟=𝑥2, given by 𝐴=𝜋𝑟=𝜋𝑥2=𝜋𝑥4,𝑃=2𝜋𝑟=2𝜋𝑥2=𝜋𝑥.circlecircle

The area of the playground, 𝐴pg, will be the sum of the area of the inner rectangle and the total area of the two semicircles (or whole circle): 𝐴=𝑥𝑦+𝜋𝑥4.pg

The perimeter is the length of the outline of the playground, which includes the length of the inner rectangle twice and the perimeter or circumference of the two semicircles (or whole circle): 𝑃=2𝑦+𝜋𝑥.pg

Since we are given that the perimeter of the playground is 594 m, the optimization problem we want to solve is then given by maximizeconstraint𝐴=𝑥𝑦+𝜋𝑥4,𝑃=2𝑦+𝜋𝑥=594.pgpg

Now, making 𝑦 the subject of the constraint, we have 𝑦=297𝜋𝑥2.

Using this, we can rewrite the total area of the playground 𝐴pg as a function of 𝑥 only: 𝐴(𝑥)=𝑥297𝜋𝑥2+𝜋𝑥4=297𝑥𝜋𝑥4.pg

Now, we can find the critical points by taking the first derivative of this function and setting it equal to zero: 𝐴(𝑥)=297𝜋𝑥2=0.pg

Solving for 𝑥 gives 𝑥=594𝜋.

To determine the nature of this critical point, we use the second derivative test. The second derivative of the area function 𝐴(𝑥)pg is given by 𝐴(𝑥)=𝜋2.pg

Since the value of the second derivative is negative for all values of 𝑥 and thus 𝐴594𝜋<0, by the second derivative test, the critical point 𝑥=594𝜋 is a local maximum of the area function 𝐴(𝑥)pg of the playground. At this critical point, the area is given by 𝐴594𝜋=297594𝜋+𝜋4594𝜋=176418𝜋3528364𝜋=88209𝜋.pg

Thus, the maximum area of the playground with a perimeter of 594 m is 88209𝜋 m2.

Again, the perimeter in this example could represent the wire fencing placed around the edge of the playground.

Now, let’s consider an example where we find the radius of a circular sector with a given area that minimizes the perimeter.

Example 7: Finding the Radius of the Circular Sector with a Given Area That Has the Minimum Perimeter Using Differentiation

A sector of a circle has area 16 cm2. Find the radius 𝑟 that minimizes its perimeter, and then determine the corresponding angle 𝜃 in radians.

Answer

In this example, we want to find the radius of a circular sector, as shown in the diagram, that has the minimal perimeter for a given area and the corresponding angle 𝜃.

The area, 𝐴sector, and perimeter, 𝑃sector, of a sector with radius 𝑟 and angle 𝜃 are given by 𝐴=12𝑟𝜃,𝑃=𝑟𝜃+2𝑟,sectorsector where 𝑟𝜃 is the arc length of the sector. The optimization problem we want to solve is then minimizeconstraint𝑃=𝑟𝜃+2𝑟,12𝑟𝜃=16.sector

Now making 𝜃 the subject in the constraint, we have 𝜃=32𝑟.

Using this, we can rewrite the sector perimeter 𝑃sector as a function of 𝑟 only: 𝑃(𝑟)=𝑟32𝑟+2𝑟=32𝑟+2𝑟.sector

Now, we can determine the critical points by taking the first derivative of this function and setting it equal to zero: 𝑃(𝑟)=32𝑟+2=0.sector

Solving this for 𝑟 gives us 𝑟=±4. However, only nonnegative values of 𝑟 are valid since the radius is always nonnegative (𝑟0) and we have the only critical point 𝑟=4. To determine the nature of this critical point, we use the second derivative test. The second derivative of the perimeter function 𝑃(𝑟)sector is given by 𝑃(𝑟)=64𝑟.sector

Substituting the critical point 𝑟=4 into the second derivative, we have 𝑃(4)=644.sector

Thus, since 𝑃(4)>0sector, by the second derivative test, the critical point 𝑟=4 is a local minimum of the perimeter function 𝑃(𝑟)sector. We can find the value of the angle 𝜃 by substituting 𝑟=4 into the constraint: 𝜃=32𝑟=324=2.

Thus, we find that the radius 𝑟 and corresponding angle 𝜃, in radians, that minimize the perimeter are given by 𝑟=4,𝜃=2.cmrad

The sector in this example can represent a slice of pizza, where you want to find the radius and angle of the slice that minimizes its perimeter, with a fixed area.

In the next example, we will find the maximum volume of a cylinder, with a given surface area.

Example 8: Finding the Maximum Volume of a Cylinder with a Given Surface Area

What is the maximum volume of a right circular cylinder with surface area 24𝜋 cm2? Give your answer in terms of 𝜋.

Answer

In this example, we want to find the maximum volume of a cylinder with a fixed given surface area, as shown in the diagram.

The surface area and volume of a right circular cylinder with radius 𝑟 and height are given by 𝐴=2𝜋𝑟+2𝜋𝑟,𝑉=𝜋𝑟.cylindercylinder

The optimization problem we want to solve is given by maximizeconstraint𝑉=𝜋𝑟,2𝜋𝑟+2𝜋𝑟=24𝜋.cylinder

Now, making the subject in the constraint, we have =12𝑟𝑟.

Using this, we can rewrite the cylinder volume 𝑉cylinder as a function of 𝑟 only: 𝑉(𝑟)=𝜋𝑟12𝑟𝑟=𝜋𝑟12𝑟.cylinder

Now, we can determine the critical points by taking the first derivative of this function and setting it equal to zero: 𝑉(𝑟)=12𝜋3𝜋𝑟=0.cylinder

Solving this for 𝑟 gives us 𝑟=±2. However, only nonnegative values of 𝑟 are valid since the radius is always nonnegative (𝑟0) and we have the only critical point 𝑟=2. We can determine the nature of this critical point using the second derivative test. The second derivative of the volume function 𝑉(𝑟)cylinder is given by 𝑉(𝑟)=6𝜋𝑟.cylinder

Substituting the critical point 𝑟=2 into the second derivative, we have 𝑉(2)=12𝜋.cylinder

Thus, since 𝑉(2)<0cylinder, by the second derivative test, the critical point 𝑟=2 is a local maximum of the volume function 𝑉(𝑟)cylinder. At this critical point, the volume is given by 𝑉(2)=𝜋×2×122=16𝜋.cylinder

The maximum volume of the cylinder with a fixed surface area is therefore 16𝜋 cm3.

The cylinder in this example can depict a soda can or a tin containing food, and you want to maximize the volume of the cylinder from the amount of material you have available, such as aluminum, corresponding to the surface area.

In the next example, we will demonstrate how to use the properties of a sphere and cylinder to maximize the sum of their volumes.

Example 9: Finding the Radius of a Sphere and a Cylinder That Maximizes the Sum of Their Volumes given the Sum of Their Surface Areas Using Differentiation

Given that the sum of the surface areas of a sphere and a right circular cylinder is 1000𝜋 cm2 and their radii are equal, find the radius of the sphere that makes the sum of their volume at its maximum value.

Answer

In this example, we want to find the radius that maximizes the sum of the volumes of a sphere and cylinder, as depicted in the diagram, given a fixed sum of their surface areas.

The surface area and volume of a sphere and right circular cylinder of radius 𝑟 and height are given by 𝐴=4𝜋𝑟,𝑉=43𝜋𝑟,𝐴=2𝜋𝑟+2𝜋𝑟,𝑉=𝜋𝑟.spherespherecylindercylinder

We are given the constraint that the sum of their surface areas is given by 1000𝜋 cm2, so we have 𝐴=𝐴+𝐴=4𝜋𝑟+2𝜋𝑟+2𝜋𝑟=1000𝜋.totalspherecylinder

This expression simplifies to the constraint 3𝑟+𝑟=500. The optimization problem we want to solve is then given by maximizeconstraint𝑉=𝑉+𝑉=43𝜋𝑟+𝜋𝑟,3𝑟+𝑟=500.totalspherecylinder

Now, making the subject of the constraint, we have =5003𝑟𝑟.

Using this, we can rewrite the total volume 𝑉total as a function of 𝑟 only: 𝑉(𝑟)=43𝜋𝑟+𝜋𝑟5003𝑟𝑟=43𝜋𝑟+500𝜋𝑟3𝜋𝑟.total

Now we can find the critical points by taking the first derivative of this function and setting it equal to zero: 𝑉(𝑟)=500𝜋5𝜋𝑟=0.total

Solving this for 𝑟 gives us 𝑟=±10. However, only nonnegative values of 𝑟 are valid since the radius is always nonnegative (𝑟0) and we have the only critical point 𝑟=10. To determine the nature of this critical point, we use the second derivative test. The second derivative of the volume function 𝑉(𝑟)total is given by 𝑉(𝑟)=10𝜋𝑟.total

Substituting the critical value 𝑟=10 into the second derivative, we have 𝑉(10)=100𝜋.total

Thus, since 𝑉(10)<0total, by the second derivative test, the critical point 𝑟=10 is a local maximum of the total volume function 𝑉(𝑟)total. Therefore, the radius of the sphere that makes the sum of their volume at its maximum value is 10 cm.

This example could represent a garden feature or decoration, a wooden sphere or a dome light, placed on a cylindrical support.

In the next example, we will look at how to find the points on a curve that are closest to a given point using optimization.

Example 10: Finding the Points on a Given Curve Closest to a Given Point Using Differentiation

Find the points on the curve 𝑦=2𝑥+21 that are closest to the point (6,0).

Answer

In this example, we want to find the points on a particular curve, as shown in the diagram below, with minimal distance to a given point.

By the Pythagorean theorem, the distance between two points (𝑥,𝑦) and (𝑎,𝑏) is given by 𝐿=(𝑥𝑎)+(𝑦𝑏).

Thus, for any points (𝑥,𝑦) on the curve and for (𝑎,𝑏)=(6,0), this distance is given by 𝐿=(𝑥+6)+𝑦.

The optimization problem we want to solve is therefore minimizeconstraint𝐿=(𝑥+6)+𝑦,𝑦=2𝑥+21.

Using the constraint given by the equation of the curve and substituting for 𝑦, we can write 𝐿 as a function for 𝑥 only: 𝐿(𝑥)=(𝑥+6)+(2𝑥+21)=(𝑥+12𝑥+36)+(2𝑥+21)=𝑥+14𝑥+57.

We can now determine the critical points of this function by taking the first derivative and setting it equal to zero. Using the chain rule for two differentiable functions 𝑓 and 𝑔, (𝑓(𝑔(𝑥)))=𝑔(𝑥)𝑓(𝑔(𝑥)), with 𝑓(𝑥)=𝑔(𝑥) and 𝑔(𝑥)=𝑥+14𝑥+57, we obtain 𝐿(𝑥)=𝑥+7𝑥+14𝑥+57=0.

Solving for 𝑥 gives us the critical point 𝑥=7. We can determine the nature of this critical point using the second derivative test. Again, using the chain rule, the second derivative of the length function 𝐿(𝑥) is given by 𝐿(𝑥)=8(𝑥+14𝑥+57).

Substituting the critical point 𝑥=7 into the second derivative, we have 𝐿(7)=8(7)+14(7)+57=24.

Thus, since 𝐿(7)>0, by the second derivative test, the critical point 𝑥=7 is a local minimum of the distance function 𝐿(𝑥) from the curve. The 𝑦-coordinate can be found from the constraint or equation of the curve: 𝑦=2𝑥+21=2(7)+21=7.

Therefore, 𝑦=±7. Thus, the points on the curve that are closest to (6,0) are 7,7, 7,7.

In celestial mechanics, a parabolic trajectory is a Kepler orbit, with the eccentricity equal to 1, that is exactly on the border between an elliptical and hyperbolic orbit.

The parabolic curve 𝑦=2𝑥+21 can represent the trajectory of an object around a massive body, such as the Sun, located at a particular point, (6,0), shown by the red dot in the plot in the previous example. The abstract optimization problem can be used to find the points in the trajectory of an object around a massive body, at which the object is closest to the massive body.

Key Points

A real-world optimization problem can be solved in the following way:

  • Define the problem: specify the variables and the function to be optimized (minimized or maximized), subject to a constraint relating the independent variables.
  • Where appropriate, use the constraint to rewrite the function to be optimized as a function of one variable.
  • Differentiate the function to be optimized, setting the derivative to zero and solving for the variable, to determine the critical points.
  • Find the second derivative and substitute the critical points to determine their nature using the second derivative test: 𝑓(𝑥)<0 at a maximum and 𝑓(𝑥)>0 at a minimum.
  • The maximum or minimum is then found by substituting the appropriate critical point into the function to be optimized. The constraint can also be used to determine the other independent variables.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy