Q3. Use Lagrange multiplier method to answer the following questions.
3.1 Consider the Entropy definition:
If we are given a probability distribution P = (p1, p2, ..., pn),
then the information conveyed by this distribution, also called the
Entropy of P, is I(P) = -(p1 x log p1 + p2 log p2 + ... + pn log pn)
What is the range of entropy of P and which distribution gives maximum entropy? Show the details of your answer.