✔ 最佳答案
Suppose the two sides of the rectangular are a and 2*b where 2*b is also the diameter of the semi-circle.
We want to maximize 2*a*b+pi*b^2/2 subject to 2*a+(2+pi)*b=12.
Using Lagrange multiplier method,
Consider f(a,b) = 2*a*b+pi*b^2/2 +lambda*(12-(2*a+(2+pi)*b)),
Differentiate f(a,b) with respect to a and b, respectively, we get
2b-2lambda=0
and
2a+pi*b-(2+pi)*lambda=0
solve the two equations
a=b=lamda
then in equation
2*a+(2+pi)*b=12
we replace b=a and solve it to get a=b=12/(4+pi).
so the maximum area is
2*a*b+pi*b^2/2=72 which is obtained by using a=b=12/(4+pi) for the side lengths.