# Thread: Determining the minimum and maximum (optimization problem)

1. ## Determining the minimum and maximum (optimization problem)

A piece of wire 40cm long is to be cut in two. One piece is bent to form a square and the other is bent to form a circle.

a) Determine the length of each piece of wire so t he sum of the areas is a minimum.

b) Determine the length of each piece of wire so the sum of the areas is a maximum.

How would I go about solving this?

2. Let $x$ be length of the wire for the Circle $C$, then $40-x$ is the length of the wire for the square $S$.

observe that: $2\pi r = x \rightarrow r = \frac{x}{2\pi}$. Hence the area of $C$ is given by $\pi r^2=\frac{x^2}{4\pi}$. And the area of $S$ is given by $\frac{(40-x)^2}{4^2}$ (why?)

Hence for (a)/(b) we must find $0\leq x\leq 40$ such that

$f(x)=\frac{x^2}{4\pi} +\frac{(40-x)^2}{4^2}$ is maximal/minimal

You can see by plotting $f(x)$ for example that the maximum is reached by $x=40$, and the minimum is when $f'(x)=0$. (you can easily solve that)

3. Originally Posted by Dinkydoe
Let $x$ be length of the wire for the Circle $C$, then $40-x$ is the length of the wire for the square $S$.

observe that: $2\pi r = x \rightarrow r = \frac{x}{2\pi}$. Hence the area of $C$ is given by $\pi r^2=\frac{x^2}{4\pi}$. And the area of $S$ is given by $\frac{(40-x)^2}{4^2}$ (why?)

Hence for (a)/(b) we must find $0\leq x\leq 40$ such that

$f(x)=\frac{x^2}{4\pi} +\frac{(40-x)^2}{4^2}$ is maximal/minimal

You can see by plotting $f(x)$ for example that the maximum is reached by $x=40$, and the minimum is when $f'(x)=0$. (you can easily solve that)
What exactly is 2pir = x --> r = x/2pi coming from? I don't really get what you mean by that I understand that the area of a circle, C, is given by pir^2, but why are you changing it to x^2/4pi (and how did you change it to that?) I also don't understand why the area of the square, S, is given by (40-x)^2 / 4^2 (I don't get where that comes from.) Sorry

4. Originally Posted by kmjt
What exactly is 2pir = x --> r = x/2pi coming from? I don't really get what you mean by that I understand that the area of a circle, C, is given by pir^2, but why are you changing it to x^2/4pi (and how did you change it to that?) I also don't understand why the area of the square, S, is given by (40-x)^2 / 4^2 (I don't get where that comes from.) Sorry
an extended explanation of what Dinkydoe correctly posted ...

the wire of length 40 cm is cut into two pieces.

one piece has length $x$

the other piece has length $40-x$

the piece of length $x$ is bent to form a circle ... this tells you that $x$ = the circumference of the circle, or $x = 2\pi r$

solve for $r$ in terms of $x$ ...

$r = \frac{x}{2\pi}$

area of the circle is $A = \pi r^2$

substitute $\frac{x}{2\pi}$ for $r$ in the circle area equation ...

$A = \pi \cdot \left(\frac{x}{2\pi}\right)^2 = \frac{x^2}{4\pi}$

... the second piece has length of $40-x$ which is bent to form a square.

since $40-x$ = perimeter of the square, each side of the square is $s = \frac{40-x}{4}
$

area of the square is $s^2 = \frac{(40-x)^2}{16}$

total area = circle area + square area

so, total area of both the circle and the square in terms of $x$ is ...

$A = \frac{x^2}{4\pi} + \frac{(40-x)^2}{16}$

find $\frac{dA}{dx}$ and determine the value(s) of x that optimizes the combined area.

5. Why aren't you simplifying

into (1600-x^2) / 16?

6. Originally Posted by kmjt
Why aren't you simplifying

into (1600-x^2) / 16?
You may want to revisit how to expand polynomials. $(40 - x)^2$ is not equal to $1600 - x^2$.

7. Originally Posted by kmjt
Why aren't you simplifying

into (1600-x^2) / 16?
is this what you meant?

$\frac{(40-x)^2}{16} = \frac{1600-80x+x^2}{16}
$

note that expansion of a binomial is not "simplifying" it.

besides, taking the derivative of $\frac{(40-x)^2}{16}$ is rather simple ...

$\frac{d}{dx} \frac{(40-x)^2}{16} = \frac{x-40}{8}$

8. Still having a bit of trouble with this. This is what I have done so far:

x represents the circumference of the circle
40-x represents the perimeter of the square

the circumference of the circle = 2pir
x=2pir

r= x / 2pi

Area of a circle = pir^2

subbing in r:
A = pi (x/2pi)^2

Area of circle = x^2 / 4pi

the length of one side of the square = (40-x) / 4

Area of a square = lw
= [(40-x)/4)][(40-x)/4)]
=(40-x)(40-x) / 16
= x^2 -80x +1600 / 16

So the area of the circle and square = x^2 / (4pi) + (x^2 -80x +1600) / 16

I then derived that to:

A' = x / (2pi) + (32x - 1280) / 256

And I know to find the max and min I have to first find the critical numbers and than make a table using intervals of my critical numbers. But how would I set x / (2pi) + (32x - 1280) / 256 equal to 0? And what would my intervals be in my table?

9. I told you it was easier if you left the area function in the following form ...

$A = \frac{x^2}{4\pi} + \frac{(40-x)^2}{16}$

$\frac{dA}{dx} = \frac{x}{2\pi} - \frac{(40-x)}{8} = 0$

$\frac{x}{2\pi} = \frac{(40-x)}{8}$

$8x = 80\pi - 2\pi x$

$4x = 40\pi - \pi x$

$4x + \pi x = 40\pi$

$x(4 + \pi) = 40\pi$

$x = \frac{40\pi}{4+\pi} \approx 17.6$

there is your single critical value ... you should be able to tell this value yields a minimum, based on the fact the original area function is a quadratic.

it should also tell you that the area function has an endpoint maximum.