How do I deal with huge exponents in the partition function?

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
2 replies · 2K views
Brainfarmer
Messages
2
Reaction score
0

Homework Statement



This is just a general question, not a "problem"

Homework Equations



Z = sum(e^Ej/kT)

The Attempt at a Solution




I'm working on a problem in which I'm asked to find the probabilities of an electron in a hydrogen atom being at one of three energies. The partition function produces something like Z= e^523 + 4e^125 + 9e^57. How do I deal with these huge exponents? My calculator just laughs at me. Is there an approximation I can use? (i'm sorry if this isn't very specific- I don't really have a problem with setting up and solving this, it's just the math that's an issue)

thanks
 
Physics news on Phys.org
The trick is that probabilities are always ratios, with a weighted sum in the numerator, and the partition function in the denominator. So you'll have something like

[tex]\frac{e^{527} + e^{344} + e^{217}}{e^{532} + e^{381} + e^{286}}[/tex]

In this case, the first term in each sum is so unimaginably huge, compared to the rest of the sum, that everything else can be ignored. So you can approximate this as

[tex]\frac{e^{527}}{e^{532}} = e^{-5}[/tex]

which is a perfectly reasonable number.

In general, you might have to do some algebra before you plug things into your calculator, because indeed, taking such sums numerically is complete nonsense.