Optimization and Complete Study of Functions
A movie theater in the Roma neighborhood fills all 400 of its seats, but the manager wonders: what if the ticket price goes up? Each person would pay more, but fewer people would come. Which price brings in the most money? And a can factory wants to use the least possible sheet metal. These are optimization problems: there is a quantity that changes depending on a decision, and we look for the best decision. The derivative gives us the method.
The general procedure, step by step
At the very top or the very bottom of a smooth curve, the tangent line is horizontal. If it had a nonzero slope, the graph would keep rising or falling to one side. That is why we look for where $f'(x)=0$.
Let $f(x) = x^{2} - 4x + 3$. a) Calculate $f'(x)$ and find the point where it equals zero. b) Is this point a maximum or a minimum? Justify your answer by studying the…
Let $f(x) = x^{2} - 4x + 3$.
- a) Calculate $f'(x)$ and find the point where it equals zero.
- b) Is this point a maximum or a minimum? Justify your answer by studying the sign of $f'$ on both sides.
The derivative of a function is $f'(x) = 2x - 6$. a) At which point does $f'$ equal zero? b) Where is $f$ increasing and where is it decreasing? c) What type of extremum…
The derivative of a function is $f'(x) = 2x - 6$.
- a) At which point does $f'$ equal zero?
- b) Where is $f$ increasing and where is it decreasing?
- c) What type of extremum does $f$ have, and at which point?
The derivative of a function $f$ equals zero at $x = 2$ and at $x = 5$, and its sign is given by the table: In $(-\infty, 2)$: $f'(x) > 0$. In $(2, 5)$: $f'(x) < 0$. In…
The derivative of a function $f$ equals zero at $x = 2$ and at $x = 5$, and its sign is given by the table:
-
In $(-\infty, 2)$: $f'(x) > 0$.
-
In $(2, 5)$: $f'(x) < 0$.
-
In $(5, +\infty)$: $f'(x) > 0$.
Classify the points $x = 2$ and $x = 5$ as relative maximum or relative minimum, justifying your answer.
Determine whether the statement is true or false: "if $f'(3) = 0$, then $f$ has a relative maximum or minimum at $x = 3$". If false, give a specific counterexample and…
Determine whether the statement is true or false: "if $f'(3) = 0$, then $f$ has a relative maximum or minimum at $x = 3$". If false, give a specific counterexample and explain it.
Extrema with the parabola and the derivative
When the profit is a quadratic function, its graph is a parabola and the extremum is at the vertex. You can find it with the derivative or by symmetry: the vertex is halfway between the two points where the parabola crosses the horizontal axis.
The figure shows the weekly profit of an ice cream shop as a function of the ice cream price: the parabola intersects the price axis at $\$5$ and at $\$25$. a) Using the…
The figure shows the weekly profit of an ice cream shop as a function of the ice cream price: the parabola intersects the price axis at $\$5$ and at $\$25$.
- a) Using the symmetry of the parabola, which price maximises profit?
- b) For which prices is the profit zero? What do these values mean?
- c) For which prices is the profit negative? Interpret this.
The profit of a factory, in thousands of pesos, when producing $x$ metric tons per week is $B(x) = -40x^{2} + 1\,600x - 6\,000$. a) What weekly production level…
The profit of a factory, in thousands of pesos, when producing $x$ metric tons per week is $B(x) = -40x^{2} + 1\,600x - 6\,000$.
- a) What weekly production level maximizes profit?
- b) What is this maximum profit, in pesos?
A market study estimates that the weekly profit of a store, in pesos, when selling $x$ units of a product is $B(x) = -x^{2} + 140x - 3,600$. a) How many units must it…
A market study estimates that the weekly profit of a store, in pesos, when selling $x$ units of a product is $B(x) = -x^{2} + 140x - 3,600$.
- a) How many units must it sell to obtain maximum profit? How much is this profit?
- b) For which sales levels does the store lose money?
- c) If, due to storage limitations, it cannot sell more than $50$ units, what is its best decision then? Justify your answer using the monotonicity of $B$.
Geometric problems
The most common type: a figure with a fixed measurement (perimeter, amount of fencing, sheet metal) and you are asked for the shape that makes another quantity a maximum or a minimum.
There are $40$ m of fencing available to enclose a rectangular pen on all four sides. a) If one side measures $x$, express the area of the pen in terms of $x$. b) What…
There are $40$ m of fencing available to enclose a rectangular pen on all four sides.
- a) If one side measures $x$, express the area of the pen in terms of $x$.
- b) What dimensions maximise the area? What shape is the pen then?
We want to fence $100$ m to make a rectangular vegetable patch against a wall, so that only three sides need to be fenced, as shown in the figure. a) If $x$ is the…
We want to fence $100$ m to make a rectangular vegetable patch against a wall, so that only three sides need to be fenced, as shown in the figure.
- a) If $x$ is the length of each side perpendicular to the wall and $y$ is the length of the parallel side, express $y$ as a function of $x$ and write the area function $A(x)$.
- b) Calculate the dimensions that maximise the area.
- c) What is this maximum area?
From a square sheet of cardboard with side length $24$ cm, four identical squares of side length $x$ are cut out from the corners to construct, by folding, an…
From a square sheet of cardboard with side length $24$ cm, four identical squares of side length $x$ are cut out from the corners to construct, by folding, an open-topped box, as shown in the figure.
- a) Express the volume of the box $V(x)$ as a function of $x$ and state its domain.
- b) Calculate $V'(x)$ and find its critical points, discarding those that do not belong to the domain.
- c) What value of $x$ maximises the volume? What is this maximum volume?
A canning company wants to manufacture a box with a square base and a lid, with a volume of $1\ \text{dm}^{3}$ ($1,000\ \text{cm}^{3}$), using the minimum amount of…
A canning company wants to manufacture a box with a square base and a lid, with a volume of $1\ \text{dm}^{3}$ ($1,000\ \text{cm}^{3}$), using the minimum amount of cardboard.
- a) If $x$ is the side length of the base and $y$ is the height, express $y$ in terms of $x$ using the volume condition.
- b) Write the total surface area function $S(x)$ and calculate its derivative.
- c) Find the dimensions that minimise the surface area. What shape is the optimal box?
Find the point on the parabola $y = x^{2}$ closest to the point $P = \left(0, \frac{3}{2}\right)$. a) Express the square of the distance from a generic point…
Find the point on the parabola $y = x^{2}$ closest to the point $P = \left(0, \frac{3}{2}\right)$.
- a) Express the square of the distance from a generic point $(x, x^{2})$ on the parabola to the point $P$.
- b) Differentiate this expression and find its critical points.
- c) Determine which points on the parabola are at a minimum distance from $P$ and calculate that minimum distance. Why are there two solution points?
A window has the shape of a rectangle surmounted by a semicircle (arched window). The total perimeter of the frame is $12$ m and it is desired to let in as much light as…
A window has the shape of a rectangle surmounted by a semicircle (arched window). The total perimeter of the frame is $12$ m and it is desired to let in as much light as possible, that is, the area should be maximum.
- a) If $r$ is the radius of the semicircle and $h$ the height of the rectangle, write the relation between $r$ and $h$ imposed by the perimeter.
- b) Express the total area $A(r)$ as a function of $r$ only.
- c) Find the value of $r$ that maximises the area, leaving the result in terms of $\pi$, and calculate the full dimensions of the window.
A student solves an optimisation problem as follows: "We have to divide $50$ m of string into two pieces to enclose two square areas of side $x$ and side $y$. The total…
A student solves an optimisation problem as follows: "We have to divide $50$ m of string into two pieces to enclose two square areas of side $x$ and side $y$. The total area is $A = x^{2} + y^{2}$. Since $4x + 4y = 50$, it follows that $y = 12.5 - x$, so $A(x) = x^{2} + (12.5 - x)^{2}$. Differentiating: $A'(x) = 4x - 25 = 0$, hence $x = 6.25$. Therefore, the maximum area is $6.25\ \text{m}^{2}$."
- a) Find the two errors in their conclusion (one regarding the value of $6.25$ and another regarding whether it is a maximum or a minimum).
- b) Solve the problem correctly: how should the string be cut to minimise the total area? And to maximise it? (Think about what happens at the boundaries of the domain of $x$.)
Economic problems: minimum cost and maximum profit
The same strategy works for businesses. Remember: profit = revenue − cost, and the average cost is $CM(q)=C(q)/q$.
A company has a revenue $I(q) = -4q^{2} + 1\,200q$ and costs $C(q) = 400q + 16\,000$, in pesos, where $q$ are the units produced and sold. The figure shows both curves.…
A company has a revenue $I(q) = -4q^{2} + 1\,200q$ and costs $C(q) = 400q + 16\,000$, in pesos, where $q$ are the units produced and sold. The figure shows both curves.
- a) Write the profit function $B(q)$ and calculate its derivative.
- b) What production level maximizes profit? What is this maximum profit?
- c) Calculate the break-even points (the values of $q$ for which $B(q) = 0$) and relate them to the intersection points in the figure.
A cinema with $400$ seats sells tickets for $\$160$ and fills every session. The manager estimates that for every $\$10$ increase in price, they will lose $20$ viewers.…
A cinema with $400$ seats sells tickets for $\$160$ and fills every session. The manager estimates that for every $\$10$ increase in price, they will lose $20$ viewers.
- a) If $x$ is the number of $\$10$ price increases, write the revenue function $I(x)$.
- b) What ticket price maximises the revenue? How much is this maximum revenue?
- c) Above what price would the revenue be less than the current full house revenue?
- d) The manager decides not to raise the price by more than $\$40$ so as not to empty the auditorium. Is it worth raising it by those $\$40$? Justify your answer using the model.
The total cost of producing $q$ units of a product is $C(q) = q^{2} + 30q + 25$, in pesos. a) Write the average cost per unit function, $CM(q) = \frac{C(q)}{q}$, for…
The total cost of producing $q$ units of a product is $C(q) = q^{2} + 30q + 25$, in pesos.
- a) Write the average cost per unit function, $CM(q) = \frac{C(q)}{q}$, for $q > 0$.
- b) Calculate the value of $q$ that minimizes the average cost and verify, by studying the sign of $CM'(q)$, that it is a minimum.
- c) Calculate the marginal cost $C'(q)$ at that same value and check that it coincides with the minimum average cost. Is it a coincidence? Investigate the relationship between $CM'(q)$ and $C'(q) - CM(q)$ and state the general conclusion.
Absolute extrema on a closed interval
A relative maximum is only the highest in its neighborhood; the absolute one is the highest on the whole interval. Sometimes the absolute one is at an endpoint of the interval, not where $f'=0$.
Reasonably assess whether these statements are true or false, providing examples to justify your answer: a) "Every continuous function on a closed interval $[a, b]$…
Reasonably assess whether these statements are true or false, providing examples to justify your answer:
- a) "Every continuous function on a closed interval $[a, b]$ achieves a maximum value and a minimum value on it."
- b) "Every continuous function on an open interval $(a, b)$ achieves a maximum value and a minimum value on it."
- c) "If a function has a local maximum at $x = c$, that is also its absolute maximum over its entire domain."
Find the absolute maximum and minimum values of the function $f(x) = x^{3} - 6x^{2} + 9x + 1$ on the interval $[0, 4]$. a) Calculate the critical points inside the…
Find the absolute maximum and minimum values of the function $f(x) = x^{3} - 6x^{2} + 9x + 1$ on the interval $[0, 4]$.
- a) Calculate the critical points inside the interval.
- b) Evaluate the function at the critical points and at the endpoints of the interval.
- c) Conclude: indicate the absolute maximum and minimum and at which points they are reached. Are you surprised by any of the results? Comment on them.
Complete study of a function
To sketch a graph without testing random points, always follow the same outline.
Let $f(x) = x^{3} - 3x$. a) Calculate $f'(x)$. b) At which points does the derivative equal zero? c) State the intervals where $f$ is increasing.
Let $f(x) = x^{3} - 3x$.
- a) Calculate $f'(x)$.
- b) At which points does the derivative equal zero?
- c) State the intervals where $f$ is increasing.
Study and sketch the function $f(x) = x^{3} - 3x^{2} + 2$: a) Axes intercepts. b) Intervals where the function is increasing and decreasing, and local extrema. c)…
Study and sketch the function $f(x) = x^{3} - 3x^{2} + 2$:
- a) Axes intercepts.
- b) Intervals where the function is increasing and decreasing, and local extrema.
- c) Curvature and point of inflection.
- d) Sketch the graph.
You can do it on paper and send a photo with your answer.
The figure shows the graph of a polynomial function $f$. Read the values you need from the grid. a) State the intervals where the function is increasing and decreasing.…
The figure shows the graph of a polynomial function $f$. Read the values you need from the grid.
- a) State the intervals where the function is increasing and decreasing.
- b) What is the sign of $f'(x)$ in each of those intervals? What is the value of $f'$ at the points where the function changes from increasing to decreasing or from decreasing to increasing?
- c) What are the coordinates of the relative maximum and minimum? Are they also absolute? Justify your answer by looking at the branches of the graph.
Carry out a complete study of the function $f(x) = x^{3} - 12x$ and sketch its graph: a) Domain, axis intercepts and symmetry. b) Intervals where the function is…
Carry out a complete study of the function $f(x) = x^{3} - 12x$ and sketch its graph:
- a) Domain, axis intercepts and symmetry.
- b) Intervals where the function is increasing and decreasing, and local extrema.
- c) Curvature and point of inflection.
- d) Sketch the graph using the information obtained.
You can do it on paper and send a photo with your answer.
Rational functions and asymptotes
For a rational function, the study includes the asymptotes: lines that the graph approaches indefinitely, at the edges of the domain (vertical) or at infinity (horizontal). The graph may cross a horizontal or oblique asymptote at finite values of $x$. They are read with limits.
How to read asymptotes with limits
A one-sided limit tells you what value $f(x)$ approaches as $x$ approaches a number from only one side. It is written $x\to2^-$ if you approach from values less than $2$ (from the left) and $x\to2^+$ if you approach from greater values (from the right).
If as you approach $2$ the values of $f$ grow without bound, the limit is $+\infty$; if they decrease without bound, it is $-\infty$. When any one-sided limit at $x=a$ is $+\infty$ or $-\infty$, the line $x=a$ is a vertical asymptote. Each side can go to a different infinity.
If $\displaystyle\lim_{x\to+\infty}f(x)=L$ (or with $x\to-\infty$), the line $y=L$ is a horizontal asymptote.
Study the function $f(x) = \frac{x}{x^{2} + 1}$: a) Domain and symmetry (check that it is odd). b) Horizontal asymptote (calculate the limit as $x \to +\infty$). c)…
Study the function $f(x) = \frac{x}{x^{2} + 1}$:
- a) Domain and symmetry (check that it is odd).
- b) Horizontal asymptote (calculate the limit as $x \to +\infty$).
- c) Relative extrema and monotonicity.
- d) Using the above information, sketch its complete graph.
You can do it on paper and send a photo with your answer.
The figure shows the graph of a rational function with a vertical asymptote $x = 2$ and a horizontal asymptote $y = 1$. a) State the domain of the function and…
The figure shows the graph of a rational function with a vertical asymptote $x = 2$ and a horizontal asymptote $y = 1$.
- a) State the domain of the function and calculate, from the graph, $\lim_{x \to 2^{-}} f(x)$, $\lim_{x \to 2^{+}} f(x)$ and $\lim_{x \to +\infty} f(x)$.
- b) Estimate the coordinates of the local maximum marked with "?" and explain what condition the derivative must satisfy at that point.
- c) State the intervals where each branch is increasing and decreasing, and reason why the function has no extrema on the right branch.
- d) A classmate claims that the function could be $g(x) = 1 + \frac{3}{x - 2}$, which has the same asymptotes. Calculate $g'(x)$, study its sign and reason why that function cannot be the one in the graph.
Back to the beginning: the movie theater manager raises the price from $\$80$ to $\$90$ and the revenue goes from $\$32{,}000$ to $\$32{,}400$. Beyond that, the revenue parabola goes back down, and that is why there is an optimal price.