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

Exercise 6.3 · Q22: Wire of 28 m into a square and a circle: least total area

Exercise 6.3Optimisation · Section 6.4
The question

22. A wire of length 28 m is to be cut into two pieces. One of the pieces is to be made into a square and the other into a circle. What should be the length of the two pieces so that the combined area of the square and the circle is minimum?

Exam answer

Let the piece for the square be xx m, so the piece for the circle is (28−x)(28 - x) m, where 0<x<280 < x < 28⁠. The side of the square is x4\frac{x}{4} and the radius of the circle is 28−x2π\frac{28 - x}{2\pi}⁠.

A(x)=x216+π(28−x2π)2=x216+(28−x)24π\begin{aligned} A(x) &= \frac{x^2}{16} + \pi\left(\frac{28 - x}{2\pi}\right)^2 \\ &= \frac{x^2}{16} + \frac{(28 - x)^2}{4\pi} \end{aligned} A′(x)=x8−28−x2πA′′(x)=18+12π\begin{aligned} A'(x) &= \frac{x}{8} - \frac{28 - x}{2\pi} \\ A''(x) &= \frac18 + \frac{1}{2\pi} \end{aligned}

A′(x)=0⇒πx=4(28−x)A'(x) = 0 \Rightarrow \pi x = 4(28 - x)⁠, so x=112π+4x = \frac{112}{\pi + 4}⁠.

As A′′(x)>0A''(x) > 0⁠, AA is minimum there. A′A' is negative before this point and positive after it, so this is the least area.

The other piece is 28−112π+4=28ππ+428 - \frac{112}{\pi + 4} = \frac{28\pi}{\pi + 4} m.

∴\therefore The piece for the square is 112π+4\dfrac{112}{\pi + 4} m and the piece for the circle is 28ππ+4\dfrac{28\pi}{\pi + 4} m.

The answer key prints the same numbers in cm; the unit should be metres, since the wire is 28 m long.

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

The one idea this problem is built on

Once we decide how much wire goes to the square, the rest goes to the circle, so the total area is a function of one length xx⁠. Each shape's area grows like the square of its own wire, so the total is a quadratic in xx that opens upwards, and its lowest point is where the derivative is zero. For the same wire a circle encloses more area than a square, so the minimum is reached by giving the square more wire.

Given, to find, and the plan
Given
A 28 m wire cut into two pieces: one bent into a square, the other into a circle.
To find
The lengths of the two pieces that make the combined area as small as possible.
Plan
Let xx be the length used for the square; write the side and the radius in terms of xx⁠; write the total area A(x)A(x) on 0<x<280 < x < 28⁠; find the critical point; apply the second derivative test; prove from the sign of A′A' that it is the least value on the whole range, and compare with the ends.

Basics you need

1Perimeter and area

A square with perimeter pp has side p4\frac{p}{4} and area (p4)2\left(\frac{p}{4}\right)^2⁠. A circle with circumference qq has radius q2π\frac{q}{2\pi} (from q=2πρq = 2\pi\rho⁠) and area πρ2\pi\rho^2⁠. Bending a wire into a shape uses the whole wire as the perimeter. Basics: area and volume formulas

2Building the function to optimise

Choose one variable, express everything else through it, and state its range. Basics: building the function to optimise

3Second derivative test (Theorem 4, Section 6.4)

A′(c)=0A'(c) = 0 and A′′(c)>0A''(c) > 0 make cc a point of local minima. Lesson: first and second derivative tests

4From local to least

The sign of A′A' on each side of the critical point, all the way to the ends of the range, shows whether it gives the least value of all. Lesson: optimisation problems

Solution

  1. Choose the variable and its range

    Let the piece bent into the square have length xx m. The piece for the circle then has length 28−x28 - x m. Both pieces must have positive length, so

    0<x<28.0 < x < 28.
    x (for the square) 28 − x (for the circle) 0 28 m cut side x/4 radius (28 − x)/(2π) At the minimum the side of the square equals the diameter of the circle
    The wire is cut at xx m; the first piece becomes a square of side x4\frac{x}{4}⁠, the second a circle of radius 28−x2π\frac{28 - x}{2\pi}⁠. Drawn at the best cut, x≈15.68x \approx 15.68 m, with the square and circle on the same scale.
    Everything about the two shapes is decided by where we cut, so one variable is enough. "Cut into two pieces" means neither piece is empty, which is why the ends 0 and 28 are excluded; Step 6 shows that the ends would not be best anyway.
    An open interval (0,28)(0, 28) contains every number strictly between 0 and 28. Basics: interval notation
  2. Side of the square and radius of the circle

    The square's perimeter is xx⁠, so its side is x4\frac{x}{4}⁠. The circle's circumference is 28−x28 - x⁠, so its radius ρ\rho satisfies 2πρ=28−x2\pi\rho = 28 - x⁠:

    side=x4,ρ=28−x2π.\text{side} = \frac{x}{4}, \qquad \rho = \frac{28 - x}{2\pi}.
    The wire becomes the boundary of each shape, so the lengths are perimeters. We need the side and the radius because the area formulas are written in terms of them.
    Perimeter of a square =4×= 4 \times side; circumference of a circle =2π×= 2\pi \times radius (Basic 1). We write ρ\rho for the radius to keep rr free.
  3. The combined area as a function of xx

    A(x)=(x4)2+π(28−x2π)2=x216+(28−x)24π,0<x<28.\begin{aligned} A(x) &= \left(\frac{x}{4}\right)^2 + \pi\left(\frac{28 - x}{2\pi}\right)^2 \\ &= \frac{x^2}{16} + \frac{(28 - x)^2}{4\pi}, \quad 0 < x < 28. \end{aligned}
    This is the quantity to make as small as possible. In the circle's term, π⋅(28−x)24π2=(28−x)24π\pi \cdot \frac{(28-x)^2}{4\pi^2} = \frac{(28-x)^2}{4\pi}⁠: one factor π\pi cancels.
    Area of a square =side2= \text{side}^2⁠; area of a circle =πρ2= \pi\rho^2⁠. Basics: building the function to optimise
  4. Differentiate and find the critical point

    By the chain rule, ddx(28−x)2=2(28−x)⋅(−1)\frac{d}{dx}(28 - x)^2 = 2(28 - x)\cdot(-1)⁠. So

    A′(x)=x8−28−x2π=πx−4(28−x)8π=(π+4)x−1128π.\begin{aligned} A'(x) &= \frac{x}{8} - \frac{28 - x}{2\pi} \\ &= \frac{\pi x - 4(28 - x)}{8\pi} \\ &= \frac{(\pi + 4)x - 112}{8\pi}. \end{aligned}

    A′(x)=0A'(x) = 0 exactly when (π+4)x=112(\pi + 4)x = 112⁠, that is

    x=112π+4.x = \frac{112}{\pi + 4}.

    Call this value cc⁠. Since π+4≈7.14\pi + 4 \approx 7.14⁠, c≈15.68c \approx 15.68⁠, which lies in (0,28)(0, 28)⁠. AA is a polynomial, so this is the only critical point.

    Inside an open interval, a minimum can only occur where A′=0A' = 0 (Theorem 2, Section 6.4). Putting A′A' over the common denominator 8π8\pi turns it into a single straight-line expression whose zero and sign are easy to see.
    Chain rule with inner function 28−x28 - x (derivative −1-1⁠) and outer function u2u^2 (derivative 2u2u⁠). The common denominator of 8 and 2π2\pi is 8π8\pi⁠: multiply the first fraction by ππ\frac{\pi}{\pi} and the second by 44\frac{4}{4}⁠.
  5. Second derivative test

    A′′(x)=18+12π>0for every x.A''(x) = \frac{1}{8} + \frac{1}{2\pi} > 0 \quad\text{for every } x.

    In particular A′′(c)>0A''(c) > 0⁠, so by the second derivative test x=cx = c is a point of local minima.

    A positive second derivative means the graph bends upwards, so the flat point is the bottom of a valley. Here A′′A'' is a positive constant: AA is an upward-opening parabola.
    Theorem 4 (ii), Section 6.4. Lesson: first and second derivative tests
  6. It is the least value, and the ends are worse

    From Step 4, A′(x)A'(x) has the sign of (π+4)x−112(\pi + 4)x - 112⁠, which increases with xx⁠: it is negative for 0<x<c0 < x < c and positive for c<x<28c < x < 28⁠. So AA decreases on (0,c](0, c] and increases on [c,28)[c, 28)⁠, and A(x)>A(c)A(x) > A(c) for every other allowed xx⁠.

    For comparison, the two extreme ways of using the wire (not allowed here, since each would leave an empty piece) give

    A(0)=7844π=196π≈62.39,A(28)=78416=49,A(0) = \frac{784}{4\pi} = \frac{196}{\pi} \approx 62.39, \qquad A(28) = \frac{784}{16} = 49,

    both larger than the value at cc found in Step 8.

    The second derivative test alone only compares cc with nearby cuts. The sign of A′A' over the whole range settles that cc beats every possible cut: the area falls all the way to cc and rises all the way after it.
    Theorem 1, Section 6.3: a negative derivative means decreasing, a positive one increasing (its proof by the Mean Value Theorem gives strict inequalities). Lesson: increasing and decreasing functions
  7. Lengths of the two pieces

    square piece=112π+4≈15.68 m,circle piece=28−112π+4=28π+112−112π+4=28ππ+4≈12.32 m.\begin{aligned} \text{square piece} &= \frac{112}{\pi + 4} \approx 15.68 \text{ m}, \\ \text{circle piece} &= 28 - \frac{112}{\pi + 4} \\ &= \frac{28\pi + 112 - 112}{\pi + 4} \\ &= \frac{28\pi}{\pi + 4} \approx 12.32 \text{ m}. \end{aligned}
    The question asks for the lengths of both pieces, so we finish by computing the second one. Writing 28 as 28(π+4)π+4\frac{28(\pi + 4)}{\pi + 4} puts both terms over the same denominator.
    π≈3.14159\pi \approx 3.14159⁠, so π+4≈7.14159\pi + 4 \approx 7.14159⁠.
  8. The shapes, and the least area

    At x=cx = c the side of the square is c4=28π+4\frac{c}{4} = \frac{28}{\pi + 4} and the radius is 12π⋅28ππ+4=14π+4\frac{1}{2\pi}\cdot\frac{28\pi}{\pi + 4} = \frac{14}{\pi + 4}⁠. So the side of the square equals the diameter of the circle. The least combined area is

    A(c)=784(π+4)2+196π(π+4)2=196(4+π)(π+4)2=196π+4≈27.44 m2.\begin{aligned} A(c) &= \frac{784}{(\pi + 4)^2} + \frac{196\pi}{(\pi + 4)^2} \\ &= \frac{196(4 + \pi)}{(\pi + 4)^2} = \frac{196}{\pi + 4} \approx 27.44 \text{ m}^2. \end{aligned}
    This extra fact is a neat way to remember the answer and gives the minimum area for the check. It also explains the condition A′=0A' = 0⁠: at the best cut, moving a little wire from one shape to the other changes the two areas by equal and opposite amounts.
    784=282784 = 28^2 and 196=142196 = 14^2⁠; 784=4×196784 = 4 \times 196⁠.
Result

Cut the wire into a piece of 112π+4\frac{112}{\pi + 4} m (about 15.68 m) for the square and a piece of 28ππ+4\frac{28\pi}{\pi + 4} m (about 12.32 m) for the circle. The least combined area is 196π+4≈27.44\frac{196}{\pi + 4} \approx 27.44 m².

(Textbook answer: 112π+4\frac{112}{\pi + 4} cm, 28ππ+4\frac{28\pi}{\pi + 4} cm. The numbers agree; the unit in the answer key should be metres, since the wire is 28 m long.)

Check it with numbers

A(x)=x216+(28−x)24πA(x) = \frac{x^2}{16} + \frac{(28 - x)^2}{4\pi} (in m²):

xx (m)101515.68281620
A(x)A(x)32.033127.511127.444927.459230.0930

The smallest value is at x≈15.6828=112π+4x \approx 15.6828 = \frac{112}{\pi + 4}⁠, and it matches 196π+4≈27.4449\frac{196}{\pi + 4} \approx 27.4449⁠.

Common mistakes
  1. Using the length of wire as the side or the radius. The wire is the perimeter: side =x4= \frac{x}{4}⁠, radius =28−x2π= \frac{28 - x}{2\pi}⁠.
  2. Losing the minus sign in the chain rule. ddx(28−x)2=−2(28−x)\frac{d}{dx}(28 - x)^2 = -2(28 - x)⁠, not +2(28−x)+2(28 - x)⁠.
  3. Swapping the pieces. The longer piece, about 15.68 m, is the one for the square.
  4. Thinking "all into the circle" is smallest. A circle encloses the most area for its length, so giving it all the wire gives the largest total (62.39 m²), not the smallest.
What to take away
  1. When a fixed total is split into two parts, let xx be one part and the total minus xx the other.
  2. A sum of squares of linear expressions is an upward parabola: its single critical point is automatically the least value on any interval containing it.
  3. Miscellaneous Exercise 6, Q7 is the same problem with a general length kk⁠: at the minimum the side of the square is twice the radius of the circle.

Every fact used, and where it comes from

FactUsed inSource
Perimeter, circumference, areas of square and circleSteps 2, 3Mensuration (Basics: formulas)
Chain ruleStep 4Theorem 4 (Chain Rule), Section 5.3.1, Chapter 5
Extrema in an open interval only at critical pointsStep 4Theorem 2, Section 6.4
Second Derivative TestStep 5Theorem 4, Section 6.4 (Lesson: tests)
Sign of the derivative and increasing/decreasingStep 6Theorem 1, Section 6.3
Answer key unitResultAnswers, Exercise 6.3, Q22 (printed "cm")
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 →