image

Introduction

Hello everyone, how are you all doing? Just a heads-up: this post is gonna be pretty long! So, I recommend that you use the table of contents to jump to a specific part that you wanna look at. Anyways, in this post, I'm going to be going over one of the most important concepts in calculus: optimization. It's very useful because optimization can be applied to many different real-life scenarios.

For example, let's say you are the owner of a business and you want to minimize your costs because you don't want to spend too much. Well to do this, you would have to use calculus! By the end of this post, you are going to know how to solve this kind of problem.

Not only are you going to learn how to find the minimal cost but you will also learn how to find the maximum/minimum area and the maximum/minimum volume based on the context of a problem! So whether you are studying for a test or you are just curious about what optimization is, then keep reading!

Optimization: A Brief Overview

What is Optimization?

Optimization is all about finding the GLOBAL EXTREMA. Global extrema refers to global minimum and global maximum.

Global Extrema

Global minimum = Lowest value within the domain of the function.

Global maximum = Highest value within the domain of the function.

image

Keep in mind that global extrema represents the value of f(x), NOT the x-value.

So, for example, you would say, "The function f(x) has a global minimum of 5 AT X = 2". You would NOT say "The function f(x) has a global minimum of 2".

The EXTREME VALUE Theorem

If f is continuous on the closed interval a <= x <= b, then f has a global maximum and globam minimum on that interval.

Finding Global Extrema

Critical Points using First Derivative

In order to find global extrema, you must know how to find critical points. Critical points are where the slope of the tangent line is 0 OR undefined.

To find the specific x-values of the critical points, we must find the first derivative of the function, set it equal to 0, and solve for x. We must ALSO find x-values that make the first derivative undefined.

EXAMPLE

image image

To solve this problem, I first found the first derivative and set it equal to 0. Notice that I don't have to worry about finding x-values that are undefined because the first derivative is a quadratic that will never be undefined.

Now that you understand how to find critical points, you must use those points to find the global extrema.

Testing the Critical Points

To find the global extrema, we must TEST the critical points.

Look at the ENDPOINTS of the domain interval

When you are given a question that asks you to find the global min and max of a function within a closed interval, then here's what you do:

  1. Find the critical points of the function by setting the first derivative equal to 0 and finding x-values where the derivative is undefined (if necessary).
  2. Plug in the critical points AND the endpoints of the closed interval into the original function, NOT the derivative of the function.
  3. See which x-value will produce the smallest and greatest values. These values are your global min and max.

Here's the 3 step process in action:

Closed Interval Example

Find the global min and max for the function on the closed interval: image

image

Now, let's look at some tougher problems.

Optimization Word Problems

Here's where the fun begins. Often times, in your calculus class, the questions won't be as easy as the examples that I had above. You're going to have to look at long word problems that require you to either minimize or maximize a certain thing.

Anyways without furtherado, let's dive right into it, and I'm warning you that these problems are gonna be pretty hard. So, if you're up for the challenge, read on!

image Caption: Don't be scared, you'll be fine 😀!

Here is the process of dealing with optimization word problems:

  1. If the question deals with anything related to volume or area, DRAW A PICTURE (if the problem doesn't give you a diagram)
  2. Label the picture with convenient variables such as x, y, or h
  3. Write a "primary" formula for the quantity that needs to be maximized or minimized. Common primary formulas include area = length * width, volume of cylinder = pi(radius * radius)(height), volume of rectangle = length * width * height
  4. Reduce the "primary" formula that you created so that it only has one variable
  5. Create practical endpoints of this one variable. This is essentially your domain interval. This step requires you to analyze the context of the scenario, so you must not only understand what the question is asking you, but you must also understand the context of the question.
  6. Find the critical points of the function (this is why critical points are important). Find the global max or min (recall how we did this in the previous section).
  7. Answer the question IN CONTEXT and draw a box around it to tell the person grading your paper that is is your final answer.

So, here are some big word problems using this process in action. For any of these problems, try to do the problems yourself BEFORE looking at my answer. If you try the problem yourself but can't solve it, THEN you can look at the answer.

Cutting a Box

image

Answer:

image image

We can set up a formula as a function of "x".

image

This is our domain. Our x-value can't be less than 0 because you can't have a side length that is negative. Our x-value can't be greater than 4 because then our width, which we represented as 8-2x, will become a negative value, and that's not possible.

image

Remember when we find critical points, we must eliminate any critical points that are OUTSIDE OF OUR DOMAIN THAT WE CREATED (this is why creating the domain is important!).

image

Now, you plug in the critical points AND THE ENDPOINTS OF THE DOMAIN into your original function, NOT the derivative.

You can see that when x is about 1.569, then the volume of the cut box is maximized.

But, we're not done yet. We gotta answer the question.

image

You MUST answer the question in the end. Do NOT forget the units in the problem.

Okay, let's move on to a trickier problem...

Polygon Inscribed Inside Another Figure

image

Answer:

Based on the information given, you can draw this diagram: image

You might be wondering what the point was to draw the diagonal inside the rectangle. Well, what we drew inside the rectangle was a right triangle, so we can use the Pythagorean Theorem to solve for one of the variables. image

image

This is our primary equation. Since we solved for "w" already, we can substitute our equation for "w" and plug it into our primary equation so that the formula is a function of "L". image

Now, we gotta set our domain. We know that L cannot be less than 0 because a side length cannot be negative. Also, if L is greater than 2, then "w" will become negative, which is not possible. So here's our domain: image

Now, we must find the derivative of the function we created by using the chain rule and product rule. image

After we get our derivative, we need to find the critical points within our domain that we made. image

Plug in critical points and endpoints: image

Answer the question: image

I hope you are seeing a pattern in these questions because once you get a lot of practice of optimization problems, they will get a lot easier!

Minimal Path

image

This problem looks very confusing, but luckily, they give us a diagram: image

Answer: First, we should label the diagram: image

Basically, we need to find the minimal length of the part that I have highlighted in yellow. I've used the Pythagorean theorem to get the hypotenuses (the blue and red part).

Now, we can create an equation as a function of x. I'm gonna call the function D(x) to represent the length of the pipe: image

Notice that I've changed the formula so that I can easily apply the chain rule it since we're going to have to take the derivative later.

Let's create a domain for x now. We know that x can't be less than 0 because it's impossible to have a negative length. Also, if you look at the diagram, you can see that x can't be greater than 4. So, here's our domain: image

Take the derivative of the function using chain rule: image

The derivative looks pretty complicated, but don't let that stop you. Just keep going along with the process! image

So, our only critical point that is within our domain is 0.8. You gotta find the global minimum now: image

I plugged in the endpoints and the critical point into the ORIGINAL function that I created. When x = 0.8, the length is the smallest, so that is our minimal length.

Final answer: image

Don't forget to include UNITS in the context of the problem!

Minimal Cost

image (Credit to Khan Academy)

Answer: Draw a picture: image

The question also gives us info on the length and width, so let's list what we know here: image

Now, you can solve for one of the variables. I'll solve for "h", but you can solve for "w" if you want and you'll still get the right answer. image

Based on the question, the cost depends on the surface area of the box. Also, notice that the question says that the box has an OPEN top. This will affect our surface area because we cannot include the area of the top part of the box. Here's our surface area equation: image

You can see that I basically replaced L with 2w since we know that the length is 2 times the width.

Now, you come up with our cost equation: image

You can write the cost equation as a function of a single variable "w". All I'm gonna do is replace h with 5/w^2: image

"w" has to be greater than 0 because you can't have a negative width and if "w" is 0, then "h" will become undefined. At the same time, "w" also can't be greater than 10 because a single side of a prism can't be greater than its own volume. So, this is our domain for "w": image

Take the derivative of C(w) by using the power rule: image

Find critical points: image

Find global minimum: image

Answer the question: image

Conclusion

If you've gotten all the way here, I wanna congratulate you for reading this long post all the way through! This post provided examples of different kinds of optimization problems. I hope you got a better understanding of optimization using calculus; if not, here are a list of resources that you can use to get more practice!

Resources that I've used

Professor Leonard video: https://www.youtube.com/watch?v=SWZcq_biZLw&t=2317s Khan Academy: https://www.khanacademy.org/math/ap-calculus-ab/ab-diff-analytical-applications-new

That's it for this post! I hope you have a good day and thank you for reading!


<
Previous Post
What are Excel Functions?
>
Next Post
How to Create Charts in Excel