If given constraints are , then the maximum value of the function is
Explanation for the correct option.
Given, , .
Now, we have points and check the maximum value of the function .
At point .
At point .
At point .
At point .
At point .
Therefore, the maximum value of the function is .
Hence, the correct option is D.