Let $\theta\in\left(0,\frac{\pi}{2}\right)$, then find the maximum value of $\dfrac{2\sin\theta\cos\theta}{(1+\cos\theta)(1+\sin\theta)}$

I found the derivative, which is equal to $\dfrac{(\cos\theta−\sin\theta)(\sin\theta+\cos\theta+1)^2}{(1+\sin\theta+\cos\theta+\sin\theta\cos\theta)^2}$

But there were complicated calculations involved. Is there a simpler way to find the maximum of this function?

  • $\begingroup$ Maximum at $\theta=\operatorname{acos}\left( \frac{\sqrt{5}}{2}-\frac{1}{2}\right)$ $\endgroup$ Aug 22, 2021 at 6:26
  • $\begingroup$ Divide by $\sin\theta\cos\theta$ in the numerator and denominator. This will make the differentiation easy to carry out. $\endgroup$ Aug 22, 2021 at 6:47
  • $\begingroup$ @Asher2211 simultaneously is the key word here. Sometimes you can consider the numerator and denominator separately. $\endgroup$
    – pshmath0
    Aug 22, 2021 at 8:00

4 Answers 4


Change the variable:

$t=\tan{\frac{\theta}{2}}; t\in (0,1)$

$\tan{\frac{\theta}{2}}$ is one to one in this interval.




Now is easy to find the maximum!

  • $\begingroup$ Can you finish your solution? $\endgroup$
    – piteer
    Aug 22, 2021 at 7:26
  • 2
    $\begingroup$ For a shortcut to the final step, $\,2t\frac{1-t}{1+t} = 2\left(3 - \left(t+1 + \frac{2}{t+1}\right)\right) \le 2\left(3 - 2 \sqrt{2}\right)\,$ by AM-GM. $\endgroup$
    – dxiv
    Aug 22, 2021 at 7:39

Step 1: Find the critical points of $f(\theta)$:

For this, it is necessary to find the derivative of the function and do $f'(\theta)=0$, such that:

\begin{align*} f'(\theta)=&-\dfrac{2\cos^2\theta\sin\theta}{(cos\theta+1)(\sin\theta+1)^2} +\\ &+\dfrac{2\cos^2\theta}{(\cos\theta+1)(sin\theta+1)}+ \\ &+\dfrac{2\cos\theta\sin^2\theta}{(\cos\theta+1)^2(\sin\theta+1)} -\\ &-\dfrac{2\sin^2\theta}{(\cos\theta+1)(\sin\theta+1)}=0 \end{align*}

We can rewrite this:

\begin{equation} f'(x)=\dfrac{2(\cos\theta-\sin\theta)(\cos\theta+\cos^2\theta+\sin\theta+\cos\theta\sin\theta+\sin^2\theta)}{(\cos\theta+1)^2(\sin\theta+1)^2}=0 \end{equation}

dividing by 2 both sides and reduce trigonometric functions:

\begin{equation} \dfrac{3\cos\theta+4\cos(2\theta)+\cos(3\theta)-3\sin\theta +\sin(3\theta)}{4(\cos\theta+1)^2(\sin\theta+1)^2}=0 \end{equation}

multiplying both sides by 4 and assuming $(\cos\theta+1)\neq 0$ and $(\sin\theta+1)\neq 0$, we can treat the problem in another way, such that:

\begin{equation} 3\cos\theta+4\cos(2\theta)+\cos(3\theta)-3\sin\theta +\sin(3\theta)=0 \end{equation}

Show that this equation is equal to:

\begin{equation} 16\sqrt{2}\cos^2\left(\dfrac{\theta}{2}\right)\sin\left(-\theta+\dfrac{\pi}{4}\right)\sin^2\left( \dfrac{\theta}{2}+\dfrac{\pi}{4} \right) \end{equation}

This implies that:

\begin{equation} \cos^2\left(\dfrac{\theta}{2}\right)\sin\left(-\theta+\dfrac{\pi}{4}\right)\sin^2\left( \dfrac{\theta}{2}+\dfrac{\pi}{4} \right)=0 \end{equation}

We have 3 possibilities:

\begin{align} \cos^2\left(\dfrac{\theta}{2}\right)&=0 \\ \sin\left(-\theta+\dfrac{\pi}{4}\right)&=0 \\ \sin^2\left( \dfrac{\theta}{2}+\dfrac{\pi}{4} \right)&=0 \end{align}

Solving this 3 equations, you find that:


Step 2: Determine the endpoints of the domain of $f(\theta)$

For $\theta=0^+$ and $\theta=\dfrac{\pi}{2}^{-}$, we have $f(\theta)=0$, this implies:


Is the global maximum of $f(\theta)$.


Let $$f(\theta)=\frac{2\sin\theta\cos\theta}{(\sin\theta+1)(\cos\theta+1)}=\frac{2\sin\theta\cos\theta}{1+\sin\theta+\cos\theta+\sin\theta\cos\theta}$$ Taking $\sin2\theta=t,\ t\in(0,1],$ $$f(t)=\frac t{1+\sqrt{1+t}+\frac t2}=\frac{2t}{2+2\sqrt{1+t}+t}=\frac2{\left(\frac 1t+\sqrt{\frac 1t+1}\right)^2}$$

In order to maximize the given function in the question one needs to find the minimum value of the denominator of the expression after the manipulations done in the image. The minimum value of denominator will be obtained at t=1 and it's easy to see that. Putting t=1 gives the maximum value of function to be $6-4\sqrt2$.

  • 1
    $\begingroup$ Nice, but answers are meant to be presented in MathJax here. $\endgroup$
    – Babu
    Aug 22, 2021 at 9:35
  • $\begingroup$ I don't know how to present in MathJax . Can you please help me. $\endgroup$
    – Ilovemath
    Aug 22, 2021 at 9:40
  • 4
    $\begingroup$ See math.meta.stackexchange.com/questions/5020/… $\endgroup$ Aug 22, 2021 at 9:42

The first derivative is:


which becomes null in:

$\theta=\frac{5\pi}{4}$, $\theta=\frac{-3\pi}{4}$, $\theta=\frac{\pi}{4}$.

The maximum is for $\theta=\frac{\pi}{4}$ and, and is equal to $-4\sqrt{2}+6$.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .