I have to find the maximum area of a rectangle inscribed in the cos(x) function with $0 < x < \pi /2$ (as in the picture below).
The area, which I will call "A", is defined as
$$ A = 2 x \cos(x)$$
I started by differentiating the area in terms of x:
$\frac{dA}{dx} = 2\cos(x) + 2x (-\sin(x))$
$\frac{dA}{dx} = 2\cos(x) -2x\sin(x)$
$\frac{dA}{dx} = 2[\cos(x) -x\sin(x)]$
Now I look for the critical points
$0 = 2[\cos(x) -x\sin(x)]$
$0 = \cos(x) -x\sin(x)$
$x\sin(x) = \cos(x)$
Here sin(x) is not 0 because the domain is restricted to $(0; \pi / 2)$ so I assume I can divide both sides by sin(x) (if this reasoning is wrong please correct me).
$x = \frac{\cos(x)}{\sin(x)}$
$x = \cot(x)$
So this critical point that I'm looking for should be a fixed point of the cotangent on the interval $(0; \pi / 2)$. I made a graph and it seems to match my thinking:
- The red line is $x = \pi /2$
- The cyan line is $y = x$
- The black curve is the original area function $A = 2x \cos(x)$
- The orange curve is $\frac{dA}{dx}$
- The purple curve is $\cot(x)$
So it looks like the x value where the cotangent intersects the $y = x$ line is also where the area function peaks and where the derivative is 0. And here is where I'm stuck. How do I find that fixed point of $\cot(x)$? Or maybe I'm making a mistake and there is a simpler way to solve this problem without involving the cotangent, if that's the case I would like to know .