Duality Symmetry, Two Entropy Functions, and an Eigenvalue Problem in Gibbs' Theory