How can one prove that the maximum entropy occurs

  • Thread starter Thread starter ehrenfest
  • Start date Start date
  • Tags Tags
    Entropy Maximum
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
ehrenfest
Messages
2,001
Reaction score
1

Homework Statement


I am calculating entropy using the formula:

[tex]S=-\sum_i P_i \ln{P_i}[/tex]

where the sum is over all of the microstates of my system and P_i is the probability to find a particle in microstate i.

How can one prove that the maximum entropy occurs when P_i is the same for all i?

Homework Equations


The Attempt at a Solution

 
Physics news on Phys.org
Enforce [itex]\sum_i P_i=1[/itex] with a Lagrange multiplier; that is, extremize
[tex]-\sum_i P_i\ln P_i + k\bigl(\sum_i P_i-1\bigr)[/tex]
with respect to both [itex]P_i[/itex] and [itex]k[/itex].
 
The sum of the P_i=1, that's a constraint. Add a lagrange multiplier to enforce the constraint, like alpha*(sum(P_i)-1). Now take the partial derivatives wrt all variables and set them equal to zero. The partial wrt alpha gives you sum(P_i)-1=0. The partial wrt to P_i gives you an expression for P_i in terms of alpha. alpha is a constant, so all P_i are equal.
 
Avodyne said:
Enforce [itex]\sum_i P_i=1[/itex] with a Lagrange multiplier; that is, extremize
[tex]-\sum_i P_i\ln P_i + k\bigl(\sum_i P_i-1\bigr)[/tex]
with respect to both [itex]P_i[/itex] and [itex]k[/itex].

Great minds think alike. But some are faster.