AbiAxo
DE
← Mathematics · Step 4 of 28

Calculus (Analysis)ca. 50 min

Solving optimisation problems

In short

In an optimisation problem (Extremwertproblem) you set up an objective function in a single variable, find its domain and look for the maximum or minimum there. You must always check the ends of the domain as well.

Your goal: You can turn a word problem into a main condition and a constraint, optimise the objective function and state the result with a justification.

Practise now

Helpful first: Curve sketching of polynomial functions, Product, chain and quotient rule

The method in five steps

  1. Main condition (Hauptbedingung): a formula for the quantity that is to be optimal (area, volume, cost). It usually has two variables.
  2. Constraint (Nebenbedingung): an equation from the text that links the variables (fixed perimeter, fixed volume, a point lying on a graph).
  3. Objective function (Zielfunktion): solve the constraint for one variable and substitute it. Now everything depends on a single variable.
  4. Domain (Definitionsbereich): which values make sense in the context?
  5. Optimise: set the derivative to zero, check the type, compare the values at the ends, and write an answer sentence.

Area example: a flower bed against a wall

A rectangular flower bed lies against a wall. For the other three sides you have \(40\,\text{m}\) of fencing. What is the largest possible area?

Main condition: \(A=x\cdot y\), where \(x\) is the side perpendicular to the wall. Constraint: \(2x+y=40\), so \(y=40-2x\).

Objective function: \(A(x)=x(40-2x)=40x-2x^2\) with \(D=(0;20)\).

\(A'(x)=40-4x=0\) gives \(x=10\). \(A''(x)=-4\lt 0\): maximum. \(y=20\), \(A(10)=200\,\text{m}^2\). At the ends \(A=0\), so the local maximum is also the global one.

The domain and its ends

The derivative only finds points with a horizontal tangent in the interior of the domain. But the absolute maximum or minimum can also lie at an end (boundary) of the domain.

So: if \(D\) is a closed interval \([a;b]\), you also calculate the objective function at \(a\) and \(b\) and compare. If \(D\) is open, you check which values the function approaches at the ends.

Example: \(A(x)=x(8-x)\) has a maximum at \(x=4\). But if \(x\) may be at most 3, \(A\) is increasing on \([0;3]\) and the maximum is at \(x=3\) with \(A(3)=15\).

Volume and cost

Volume: from a square metal sheet with side \(30\,\text{cm}\) you cut squares of side \(x\) out of the corners and fold up the edges. \(V(x)=x(30-2x)^2\) with \(D=(0;15)\). More on this in the example below.

Cost: a cylindrical tin should hold \(1000\,\text{cm}^3\) and use as little metal as possible. Main condition \(O=2\pi r^2+2\pi rh\) (\(O\) for Oberfläche, surface area), constraint \(\pi r^2h=1000\). Substituting gives \(O(r)=2\pi r^2+\frac{2000}{r}\). From \(O'(r)=4\pi r-\frac{2000}{r^2}=0\) you get \(r=\sqrt[3]{\frac{500}{\pi}}\approx 5{,}42\,\text{cm}\) and \(h=2r\approx 10{,}84\,\text{cm}\).

Tip for distances: instead of \(d=\sqrt{\dots}\) you may minimise \(d^2\). The square root is strictly increasing, so the minimum is at the same place.

Worked example

An open-top box is made from a square metal sheet with side \(30\,\text{cm}\): a square of side \(x\) is cut from each corner and the edges are folded up. For which \(x\) is the volume largest?

Main condition: \(V=a^2\cdot x\), where \(a\) is the side of the base.

Constraint: \(a=30-2x\).

Objective function: \(V(x)=x(30-2x)^2\), \(D=(0;15)\), because the height must be positive and \(2x\lt 30\).

Derivative: product and chain rules: \(V'(x)=(30-2x)^2+x\cdot 2(30-2x)\cdot(-2)=(30-2x)(30-2x-4x)=(30-2x)(30-6x)\).

Zeros: \(x=15\) (not in \(D\)) or \(x=5\).

Type: for \(x\) just below 5, \(V'\gt 0\); just above, \(V'\lt 0\): maximum. At the ends \(V\) tends to 0.

Result: \(V(5)=5\cdot 20^2=2000\,\text{cm}^3\). Cut out squares with side \(5\,\text{cm}\); the box then measures \(20\,\text{cm}\times 20\,\text{cm}\times 5\,\text{cm}\).

Remember

Set up an objective function in one variable and its domain, then find the extreme point and compare it with the values at the ends.

Typical exam mistakes

Practice

Flashcards

Main condition (Hauptbedingung)

A formula for the quantity that is to be as large or as small as possible. It often has two variables.

Constraint (Nebenbedingung)

An equation from the text that links the variables. Solve it for one variable and substitute into the main condition.

Why check the values at the ends?

The global extremum can lie at an end of the domain, where \(f'(x)\neq 0\) is possible.

Rectangle with a fixed perimeter: largest area?

The square.

Minimising a distance: the trick?

Minimise \(d^2\) instead of \(d\), because the square root is strictly increasing.

What belongs in the answer sentence?

The optimal point, the second quantity and the optimal value with its unit.

Exam-style task 10 marks

Let \(f(x)=9-x^2\). A rectangle is inscribed with two corners on the \(x\)-axis and two corners on the graph of \(f\), so that it is symmetric about the \(y\)-axis. The bottom right corner is \(P(u\mid 0)\) with \(0\lt u\lt 3\). (BE = Bewertungseinheiten, the marks in the German exam; FE and LE are area and length units.)

  1. Set up a function \(A(u)\) for the area and state its domain. (2 BE)
  2. Determine \(u\) so that the area is as large as possible, and state the maximum area. (5 BE)
  3. Determine \(u\) so that the perimeter of the rectangle is as large as possible. (3 BE)
Show solution
  1. Width \(2u\), height \(f(u)=9-u^2\). \(A(u)=2u(9-u^2)=18u-2u^3\), \(D=(0;3)\).
  2. \(A'(u)=18-6u^2=0\iff u^2=3\iff u=\sqrt3\) (the negative solution is not in \(D\)). \(A''(u)=-12u\), \(A''(\sqrt3)\lt 0\): maximum. At the ends \(A\) tends to 0, so this is the global maximum. \(A(\sqrt3)=2\sqrt3\cdot 6=12\sqrt3\approx 20{,}78\) FE.
  3. \(U(u)=2\cdot 2u+2(9-u^2)=-2u^2+4u+18\) (\(U\) for Umfang, perimeter). \(U'(u)=-4u+4=0\) gives \(u=1\), \(U''=-4\lt 0\): maximum with \(U(1)=20\) LE. At the ends: \(U\to 18\) as \(u\to 0\) and \(U\to 12\) as \(u\to 3\), both smaller.
Report a mistake

Reporting needs JavaScript. Or write to us via Contact.

Step 4 of 28

A topic counts as learned once you get 80% of the practice right first time.

Practise now Back to the path