Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Miscellaneous · Q7: Circle and square with total perimeter kk⁠: least total area when s=2rs=2r

Miscellaneous ExerciseOptimisation · Miscellaneous Exercise
The question

The sum of the perimeter of a circle and square is kk⁠, where kk is some constant. Prove that the sum of their areas is least when the side of square is double the radius of the circle.

Exam answer

Let the radius of the circle be rr and the side of the square ss⁠. Then 2πr+4s=k2\pi r + 4s = k⁠, so

s=k−2πr4,0<r<k2πs = \frac{k - 2\pi r}{4},\quad 0 < r < \frac{k}{2\pi}

The sum of the areas is

S=πr2+(k−2πr)216S = \pi r^2 + \frac{(k - 2\pi r)^2}{16} S′(r)=2πr−π(k−2πr)4=π(2r−s)S′′(r)=2π+π22\begin{aligned} S'(r) &= 2\pi r - \frac{\pi(k - 2\pi r)}{4} \\ &= \pi(2r - s) \\ S''(r) &= 2\pi + \frac{\pi^2}{2} \end{aligned}

S′(r)=0⇒s=2rS'(r) = 0 \Rightarrow s = 2r⁠. As S′′(r)>0S''(r) > 0⁠, SS is minimum there. S′S' is negative before this point and positive after it, so this is the least sum.

∴\therefore The sum of the areas is least when s=2rs = 2r⁠, that is, when the side of the square is double the radius of the circle. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The perimeter condition ties the side ss to the radius rr⁠, so the total area is a function of rr alone. Its derivative comes out beautifully as S′(r)=π(2r−s)S'(r) = \pi(2r - s)⁠: it is zero exactly when s=2rs = 2r. Then the positive second derivative, on the whole range, shows this is the least value, not just a local one.

Given, to show, and the plan
Given
A circle of radius rr and a square of side ss⁠, with 2πr+4s=k2\pi r + 4s = k⁠, where k>0k > 0 is a constant.
To show
The total area πr2+s2\pi r^2 + s^2 is least when s=2rs = 2r⁠.
Plan
(1) Write ss in terms of rr and find the range of rr⁠. (2) Build S(r)S(r)⁠. (3) Differentiate. (4) Solve S′=0S' = 0⁠. (5) Prove the least value on the whole range. (6) Record the least area.

Basics you need

1Perimeters and areas

Circle of radius rr⁠: perimeter 2πr2\pi r⁠, area πr2\pi r^2⁠. Square of side ss⁠: perimeter 4s4s⁠, area s2s^2⁠. Basics: area and volume formulas

2Building the function to optimise

Use the constraint to remove one variable and state the range of the other. Basics: building the function to optimise

3Chain rule

ddr(k−2πr)2=2(k−2πr)⋅(−2π)\frac{d}{dr}(k - 2\pi r)^2 = 2(k - 2\pi r)\cdot(-2\pi) (Theorem 4, Section 5.3.1). Basics: the chain rule

4From S′′>0S'' > 0 everywhere to the least value

If S′′>0S'' > 0 on the whole range, then S′S' is strictly increasing (Theorem 1 applied to S′S'⁠), so it can vanish only once, being negative before and positive after. Then SS decreases and increases (Theorem 1 again), and the critical point gives the least value. Lesson: optimisation problems

Solution

  1. One variable, and its range

    From 2πr+4s=k2\pi r + 4s = k⁠:

    s=k−2πr4.s = \frac{k - 2\pi r}{4}.

    Range. Both shapes must exist: r>0r > 0 and s>0s > 0⁠. The second means k−2πr>0k - 2\pi r > 0⁠, that is r<k2πr < \frac{k}{2\pi}⁠. So

    0<r<k2π.0 < r < \frac{k}{2\pi}.
    r perimeter 2πr s s perimeter 4s 2πr + 4s = k
    A circle of radius rr and a square of side ss⁠, sharing a total perimeter kk⁠. Drawn (equal scales) at the best split, s=2rs = 2r⁠: the square is exactly as wide as the circle.
    Any length of wire kk can be cut into a piece for the circle and a piece for the square; rr decides how much goes to the circle, and the rest fixes ss⁠. The range records that each piece must have positive length.
  2. The total area as a function of rr

    S(r)=πr2+s2=πr2+(k−2πr)216.S(r) = \pi r^2 + s^2 = \pi r^2 + \frac{(k - 2\pi r)^2}{16}.
    s2=(k−2πr4)2=(k−2πr)216s^2 = \left(\frac{k - 2\pi r}{4}\right)^2 = \frac{(k - 2\pi r)^2}{16}⁠. Now SS depends on rr only (kk is a constant).
    Areas (Basic 1).
  3. Differentiate

    Power rule for πr2\pi r^2⁠; chain rule for the second term, inner function k−2πrk - 2\pi r with derivative −2π-2\pi⁠:

    S′(r)=2πr+2(k−2πr)(−2π)16=2πr−π⋅k−2πr4=2πr−πs=π(2r−s).\begin{aligned} S'(r) &= 2\pi r + \frac{2(k - 2\pi r)(-2\pi)}{16} \\ &= 2\pi r - \pi\cdot\frac{k - 2\pi r}{4} \\ &= 2\pi r - \pi s = \pi(2r - s). \end{aligned}
    2⋅2π16=π4\frac{2 \cdot 2\pi}{16} = \frac{\pi}{4}⁠, and k−2πr4\frac{k - 2\pi r}{4} is exactly ss (Step 1). Writing the derivative back in terms of ss makes the condition in the question appear by itself.
    Chain rule, Theorem 4, Section 5.3.1 (Basic 3).
  4. The only critical point is where s=2rs = 2r

    S′(r)=0  ⟺  s=2r  ⟺  k−2πr4=2r  ⟺  r=k2π+8.S'(r) = 0 \iff s = 2r \iff \frac{k - 2\pi r}{4} = 2r \iff r = \frac{k}{2\pi + 8}.

    So r∗=k2(π+4)r^* = \frac{k}{2(\pi + 4)} and s∗=2r∗=kπ+4s^* = 2r^* = \frac{k}{\pi + 4}⁠. This r∗r^* lies in the range, since 0<k2π+8<k2π0 < \frac{k}{2\pi + 8} < \frac{k}{2\pi}⁠.

    Multiply k−2πr4=2r\frac{k - 2\pi r}{4} = 2r by 4: k−2πr=8rk - 2\pi r = 8r⁠, so k=(8+2π)rk = (8 + 2\pi)r⁠. A critical point outside the range would be useless, so we check that this one is inside.
  5. It gives the least area on the whole range

    Differentiate again: S′(r)=2πr−πk4+π2r2S'(r) = 2\pi r - \frac{\pi k}{4} + \frac{\pi^2 r}{2}⁠, so

    S′′(r)=2π+π22>0for every r.S''(r) = 2\pi + \frac{\pi^2}{2} > 0 \quad\text{for every } r.

    So S′S' is strictly increasing (Theorem 1 applied to S′S'⁠). It is zero at r∗r^*⁠, hence S′<0S' < 0 on (0,r∗)(0, r^*) and S′>0S' > 0 on (r∗,k2π)\left(r^*, \frac{k}{2\pi}\right)⁠. By Theorem 1, SS is decreasing on (0,r∗](0, r^*] and increasing on [r∗,k2π)\left[r^*, \frac{k}{2\pi}\right)⁠, so S(r)>S(r∗)S(r) > S(r^*) for every other rr in the range. In particular S′′(r∗)>0S''(r^*) > 0⁠, so Theorem 4 (ii) also names r∗r^* a point of local minima.

    Therefore the sum of the areas is least exactly when s=2rs = 2r: the side of the square is double the radius of the circle.

    The second derivative test alone would give "local minimum". Because S′′S'' is positive everywhere, the graph of SS bends upward along the whole range, so its single lowest point is the lowest of all.
    Theorem 1, Section 6.3; Theorem 4, Section 6.4 (Basic 4). Lesson: derivative tests
  6. The least total area

    At s=2rs = 2r⁠: S=πr2+4r2=(π+4)r2S = \pi r^2 + 4r^2 = (\pi + 4)r^2⁠. With r∗=k2(π+4)r^* = \frac{k}{2(\pi + 4)}⁠:

    Smin⁡=(π+4)⋅k24(π+4)2=k24(π+4).S_{\min} = (\pi + 4)\cdot\frac{k^2}{4(\pi + 4)^2} = \frac{k^2}{4(\pi + 4)}.
    Not asked for, but useful for the numerical check. Compare the extremes: all wire to the square gives about k216\frac{k^2}{16}⁠, all to the circle gives about k24π\frac{k^2}{4\pi}⁠; both are larger, since 4(π+4)>16>4π4(\pi + 4) > 16 > 4\pi⁠.
Result

With s=k−2πr4s = \frac{k - 2\pi r}{4} and 0<r<k2π0 < r < \frac{k}{2\pi}⁠, the total area S(r)=πr2+(k−2πr)216S(r) = \pi r^2 + \frac{(k - 2\pi r)^2}{16} has S′(r)=π(2r−s)S'(r) = \pi(2r - s) and S′′(r)=2π+π22>0S''(r) = 2\pi + \frac{\pi^2}{2} > 0⁠. So the sum of the areas is least when s=2rs = 2r, that is r=k2(π+4)r = \frac{k}{2(\pi + 4)}⁠, s=kπ+4s = \frac{k}{\pi + 4}⁠, and the least sum is k24(π+4)\frac{k^2}{4(\pi + 4)}⁠. (A "prove that" question; the answer key has no entry.)

Check it with numbers

Take k=100k = 100⁠. Then r∗=1002π+8≈7.0012r^* = \frac{100}{2\pi + 8} \approx 7.0012⁠, s∗≈14.0025s^* \approx 14.0025 (indeed 2r∗2r^*⁠), and S(r∗)≈350.06S(r^*) \approx 350.06⁠, equal to 10024(π+4)≈350.06\frac{100^2}{4(\pi + 4)} \approx 350.06⁠. Other splits give more: r=5r = 5 gives s≈17.146s \approx 17.146 and S≈372.53S \approx 372.53⁠; r=9r = 9 gives s≈10.863s \approx 10.863 and S≈372.47S \approx 372.47⁠.

Common mistakes
  1. Losing the factor −2π-2\pi from the chain rule when differentiating (k−2πr)2(k - 2\pi r)^2⁠.
  2. Using πr2\pi r^2 and 4s4s mixed up: the constraint uses perimeters, the function uses areas.
  3. Proving only a local minimum. The sign of S′′S'' on the whole range (or the sign of S′S'⁠) is what proves "least".
  4. Forgetting the range: rr cannot exceed k2π\frac{k}{2\pi}⁠, or the square's side would be negative.
What to take away
  1. After differentiating, rewrite the result in the original variables; the answer often appears in the form the question asks for.
  2. A function with f′′>0f'' > 0 on a whole interval has at most one critical point there, and it is the least value.
  3. Splitting a fixed length between a circle and a square, the best split makes the square's side equal to the circle's diameter.

Every fact used, and where it comes from

FactUsed inSource
Perimeter and area of a circle and a squareSteps 1, 2Class X mensuration
Power rule; chain ruleSteps 3, 5Table 5.3; Theorem 4, Section 5.3.1
f′>0f' > 0 (or <0< 0⁠) on an interval gives (strictly) increasing (decreasing)Step 5Theorem 1 and its proof, Section 6.3
Second derivative testStep 5Theorem 4 (ii), Section 6.4
All decimal valuesCheckRecomputed in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →