57
Chapter 2 The Second Law

Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Embed Size (px)

Citation preview

Page 1: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Chapter 2

The Second Law

Page 2: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Why does Q (heat energy) go from high temperature to low temperature?

coldcold hothot

Q flow

Thermodynamics explains the direction of time.The Big Bang

32 NkBT 1

2 mv 2

Hot objects are faster so they are more quick to move to the cold side.

BUT in a solid objects aren’t actually moving from one side to the other. ? . ? . ?

Page 3: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Why does Q (heat energy) go from high temperature to low temperature?

coldcold hothot

Q flow

Let’s look at how probability tells us which way energy should flow.

How many ways can energy be arranged?

Which arrangements are most likely?EE

EEEE

EEEE

EE

EE

EEEE

EE

EE

EE

EE

EE

EE EE EE

EE

EEEEEE

EE EE

ENTROPY

Page 4: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Simple ProbabilityIn the mid-1960s, the Adams gum company acquired American Chicle and introduced a new slogan for Trident: "4 out of 5 Dentists surveyed would recommend sugarless gum to their patients who chew gum." The phrase became strongly associated with the Trident brand.

Page 5: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Some New Terms• Mutually Exclusive

– Outcomes of events have a single possibility, others are excluded• A coin flip is heads or tails, not both

• Collectively Exhaustive– The full set of propositions or outcomes

• Heads and tails are all possible outcomes

• Independent– An event or outcome does not depend of previous or future events or

outcomes• A previous heads does not determine the next coin flip

• Multiplicity– The number of ways to get a particular outcome

• W or W is typically used as the variable

• Conditional Probability– An outcome depends on a previous event

• Drawing colored balls from a bag

Page 6: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Distributions Continued• Discrete

– Coin flips• List the macrostates, probability, microstates, & multiplicity

One coin

Two coins

Three coins

Page 7: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Distributions Continued• Discrete

– Four coin flip

How can we predict what will happen?

How can we talk about outcomes in percentages?

Page 8: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Distributions Continued• Discrete

– Four coin flip

Page 9: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Pascal’s Triangle

Page 10: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Paramagnets

B = 0

B ≠ 0

(N ) N!

N !N !

N!

N !(N N )!

Page 11: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Cards

)!(!

!)(

nNn

NN

Page 12: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Harmonic Oscillators – Einstein Solid

)( 21 nEn

U 12 kx 2

Schrodinger Eqn. solutions for energy are

n = 0

n = 1

n = 2

n = 3

n = 4

n = 5

Page 13: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solid

3,2,1,0

3

A

A

n

NTotal energy

0

1

Oscillator #1 #2 #3 W

Page 14: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solid

3,2,1,0

3

A

A

n

NTotal energy

0

1

2

0 0 0

Oscillator #1 #2 #3 W

100

010

001

Page 15: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solid

Total energy

3

Oscillator #1 #2 #3 W

3,2,1,0

3

A

A

n

N

Page 16: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solid

!)!1(

)!1()(

nN

nNn

Page 17: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solids in Thermal Equilibrium

1

3

3

3

B

B

A

A

n

N

n

N

Page 18: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solids in Thermal Equilibrium

1

3

3

3

B

B

A

A

n

N

n

N

n

iBA

BA

innP

0

)()(

Page 19: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solids in Thermal Equilibrium

Page 20: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solids in Thermal Equilibrium

3059

P70/3059 = 0.023350/3059 = 0.114825/3059 = 0.2701100/3059 = 0.360714/3059 = 0.233

1.000sum

Page 21: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solids in Thermal Equilibrium

Normalized probability for an energy arrangement

n

iBA

BA

innP

0

)()(

For NA = NB = 100 oscillatorsP(nA=30) = P(nA=70) = 0.004 = 0.4%

Page 22: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Einstein Solids in Thermal Equilibrium

Normalized probability for an energy arrangement

n

iBA

BA

innP

0

)()(

For NA = NB = 100 oscillatorsP(nA=30) = P(nA=70) = 0.004 = 0.4%

Page 23: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Numbers• Small

– 1, 5, 10, 235, etc.• Large

– 1010, 1023, 10114, etc.• Very Large

The Universe: 1018 s old (Big Bang)~1080 atoms

Page 24: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Computer Numbers and the 2nd Law• 64 bit floating point numbers

– 52 bit mantissa– 11 bit exponent– 1 bit sign

Page 25: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

The Second Law

The second law of thermodynamics: "You can't even break even, except on a very cold day."

Energy will "flow" until the state of maximum multiplicity is obtained.

S = kB ln (W)

Page 26: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Very Large NumbersStirling’s Approximation

Page 27: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Very Large NumbersStirling’s Approximation

n

nxn

e

nndxexn 2!

0

See appendix B

A more rigorous derivation comes from

Page 28: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein Solid

n

nxn

e

nndxexn 2!

0

Page 29: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein Solid

Page 30: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein SolidHigh temperature limit: Assume n >> N

TNknE Bf

n 221 )(

N

N

en

Page 31: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein SolidHigh temperature limit: Assume n >> N

N

N

en

This can’t be plotted for very large systems 25

23

23

10

102

10

total

B

A

n

N

N

N

N

en

ln)ln( Neither can this.

N

enN ln)ln( But this can.

Page 32: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein SolidHigh temperature limit: Assume n >> N

A

AAA N

enN ln)ln(

Page 33: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein SolidHigh temperature limit: Assume n >> N

B

ABB N

nneN

)(ln)ln(

Page 34: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Large Einstein SolidHigh temperature limit: Assume n >> N

B

AB

A

AABABA N

nneN

N

enN

)(lnln)ln()ln()ln(

Page 35: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

W is a Gaussian Function

NA=NB=100n=500

NN

B

B

N

A

Atot N

en

N

en

N

enBA 2

2

2s Nnw 2

222222

maxln2

nx

nxn NNNN

Ne eee

Page 36: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

W is a Gaussian Function

Page 37: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Monatomic Ideal Gas

z

yx

A container of monatomic gas. How can we describe the ways to arrange the atoms and the energy they contain?

Page 38: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Monatomic Ideal Gas

z

yx

In 2D momentum space, constant energy is defined by a circle.

Page 39: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Monatomic Ideal Gas

z

yx

Page 40: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Monatomic Ideal Gas

z

yx

Page 41: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Monatomic Ideal Gas

z

yx

Page 42: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of a Monatomic Ideal Gas

z

yx

Page 43: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of an Ideal GasWhat is the relative probability of a gas taking the full volume of its container to the probability of taking half the volume of its container?

Page 44: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of an Ideal Gas

A 1

NA

VANA

h3NA

23NA

2

3NA2 ! 2mUA

3NA2

B 1

NB

VBNB

h3NB

23NB

2

3NB2 ! 2mUB

3NB2

Page 45: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Multiplicity of an Ideal GasExchanges possibleNA NB : Diffusive EquilibriumVA VB : Pressure EquilibriumUA UB : Thermal Equilibrium

Utotal

2 3N2

Vtotal

2 N

Page 46: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy

S kB ln()

S NkB lnV

N

4mU

3Nh2

32

5

2

Page 47: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy – Ideal Gas

Page 48: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Creating Entropy

Free Expansion

W = 0 because there is nothing to push against in a vacuum.

Q = 0 because this is an adiabatic process, and insulated from the surroundings.

DU = Q + W = 0.

BUT there is a volume change!

Page 49: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy of Mixing

S NkB lnV

N

4mU

3Nh2

32

5

2

Page 50: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy of Mixing

S NkB lnV

N

4mU

3Nh2

32

5

2

Page 51: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy – Einstein Solid

Page 52: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy

Page 53: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy

Page 54: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

W vs. ln(W)

NA=NB=1000n=1000

NA=NB=1023

n=1024

Page 55: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Creating Entropy

Free Expansion

Page 56: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

Entropy

Page 57: Chapter 2 The Second Law. Why does Q (heat energy) go from high temperature to low temperature? cold hot Q flow Thermodynamics explains the direction

• Experiment• Flip n=10 coins• Count and record number of heads, nH• Repeat N=1000 times• Create a histogram from 0 to 10 of nH

• Computer Simulation• Generate n=10 random 1 or 0 (heads or tails)• 1 1 1 0 0 1 1 1 0 1

• Count and record number of heads, nH• Repeat N=1000 times• Create a histogram from 0 to 10 of nH

• Fit a gaussian to the data• My results

• x0 = 4.93 ± 0.04• = 2.27 ± 0.09