2 min read

Can You Bake The Biggest π?

Table of Contents

Riddler Classic

This Sunday, March 14, is Pi Day! To celebrate, you are planning to bake a pie. You have a sheet of crust laid out in front of you. After baking, your pie crust will be a cylinder of uniform thickness (or rather, thinness) with delicious filling inside.

To maximize the volume of your pie, what fraction of your crust should you use to make the circular base (i.e., the bottom) of the pie?

Solution

Assuming we use the entire sheet of crust without wasting to create the hollow cylinder with uniform thickness. We need to maximize the volume πr2h\pi r^2 h subject to the constraint 2πrh+2πr22\pi r h + 2\pi r^2 is constant.

We have the Lagrangian,

L(r,h)=πr2hλ(2πrh+2πr2k)\begin{align} \mathcal{L}(r,h) = \pi r^2 h - \lambda(2\pi r h + 2\pi r^2 - k) \end{align}

Taking the partial derivatives of the Lagrangian w.r.t hh and rr and setting them to 00, we have

L(r,h)r=2πrhλ(2πh+4πr)=0L(r,h)h=πr22λπr=0\begin{align} \frac{\partial\mathcal{L}(r,h)}{\partial r} &=& 2\pi r h - \lambda(2\pi h + 4\pi r ) &=& 0 \\\\ \frac{\partial\mathcal{L}(r,h)}{\partial h} &=& \pi r^2 - 2 \lambda \pi r &=& 0 \end{align}

Solving the above simultaneous equations, we have

λ=r2h=2r\begin{align} \lambda &=& \frac{r}{2} \\\\ h &=& 2r \end{align}

The fraction of the crust that should be used to make the circular base so as to maximize the volume of the pie is πr22πrh+2πr2=16\frac{\pi r^2}{2\pi r h + 2\pi r^2} = \frac{1}{6}.