Hi Lena,
This question is a little difficult to explain without the use of diagrams, but I will try my best to get it through to you.
Draw a semi circle centered on the origin. Then, draw a rectangle inscribed within the semi circle, i.e. the corners of the rectangle are touching the semi circle.
Since the base of the building is 6m long, the radius of the semi circle is 3. Hence, we can describe the circle as
x2 + y2 = 32
x2 + y2 = 9
Further, since the doorway must be at least 1m vertically from the roof of the building, 0≤y≤2. Our constraints for the optimization problem are thus
x2 + y2 = 9
and
0 ≤ y ≤ 2
Now, we can begin to work on our optimization. Say the bottom of the doorway is x. Since our semi circle is centered on the origin, x only covers half of the base of the doorway, so the base of the doorway is 2x. Let y represent the height of the doorway. Then,
A = (2x)y
From our constraint x2 + y2 = 9, we have
y2 = 9 - x2
or
y = √(9 - x2)
Plugging this into our equation for the area of the doorway, we have
A = 2xy
= 2x √(9 - x2)
= 2x(9 - x2)1/2
Then, we take the derivative
dA/dx = 2x ((1/2)(9 - x2)1/2-1(-2x)) + 2(9 - x2)1/2
= -2x2/√(9 - x2) + 2√(9 - x2)
= ( -2x2 + 2√(9 - x2)√(9 - x2) )/√(9 - x2)
= ( -2x2 + 2(9 - x2) ) / √(9 - x2)
= ( -4x2 + 18 ) / √(9 - x2)
Setting this equal to zero amounts to solving
-4x2 + 18 = 0
or
18 = 4x2
Solving this for x yields x = √(9/2). To find y, we plug x = √(9/2) into our constraint
x2 + y2 = 9
(√(9/2))2 + y2 = 9
or just
y2 = 9 - 9/2
= 9/2
So, x = y = √(9/2) which is approximately 2.12.
However, since the top of the doorway must be at least 1m away from the roof of the shed, this optimal value for y will not work as 2.12 is 0.88m away fromt the roof. Our only other choice for y is y = 2. If y = 2, then
x2 + 22 = 9
yields
x2 = 9 - 4
and so
x = √5
The area is then
A = 2xy
= 2(√5)(2)
= 4√5
To the nearest 0.01 m2, A = 8.94 m2, base = 2x = 4.47 m, and height = y = 2m.