CH 3 Math of Thermodynamics
CH 3 Math of Thermodynamics
CH 3 Math of Thermodynamics
df f ( x h) f ( x )
lim
dx h 0 h instantaneous slope
f ( x h) f ( x h )
lim
h 0 2h
sin(ax) a cos(ax)
cos(ax) a sin(ax)
Partial Derivatives
y2 x
f ( x, y) e x
2
f x2 y 2 x
e (2 x 1)
x y
f x2 y 2 x
e (2 y)
y x
f ( x, y) ln( x 2 2 xy)
f 1
2 (2 x 2 y)
x y x 2 xy
f 1
2 (2 x)
y x x 2 xy
Mixed Derivatives
f f
x y x y y y y
x
f x2 2 xy
e x 2 xy (2 x 2 y )
2
e
x y
f x2 2 xy
e x 2 xy (2 x)
2
e
y x
f
(e )(2 x 2 y)
x 2 2 xy
y x y x y x
2 xy 2 xy
ex (2 x 2 y)(2 x) e x
2 2
(2)
f x2 2 xy
(e )(2 x)
x y x y x
2 xy 2 xy
ex (2 x 2 y)(2 x) e x
2 2
(2)
Order of derivatives does not matter
f 2 f 2 f
x y x y xy yx
In mathematics
one would typically not write out whats kept constant
f f f f
instead of ; f ( x, y, z) instead of
x x y x x y , z
Total Differentials
One dimension
df 1 d2 f 2 1 d3 f 3
df dx dx dx ....
dx 2! dx 2 3! dx3
df
dx for dx infinitesimal
dx
df
f ( x dx) f ( x)
dx x
Two dimensions
f f
df dx dy ....
x y y x
f ( x x, y y) f ( x, y)
f f
df x y
x y xy y x xy
x
in arbitrary direction , We can calculate the change in function f (for small x , y )
y
Curve f ( x, y) 0
f f
df dx dy 0
x y y x
Calculate how much does y change if x x dx
f f
dy x y f f dx y x
dx dy
dx f x y y x dy f
y x x y
y 1
So keeping f constant
x f x
y f
f
y z x ,. y
z x f
y z , x
x z y
Cyclic Rule 1 for f ( x, y, z ) 0
y z x y z x
Proof:
f f f
1
3
x z y y x , z x y , z z x , y
1
y z x y z x f f f
x z , y z x , y y z , x
From the cyclic rule
y z 1 y
z x x y x x z
y
z
Way to remember cyclic rule
z z y
x y y x x z
Application in Thermodynamics
nRT n2
Van der Waals P a 2 nRT (V nb)1 an2V 2
V nb V
P nR
T V V nb
P
nRT (1)(V nb) an (2)V
2 2 3
V T
V V
: first derive V f ( P, T ) then find (very hard)
P T P T
V
How do we calculate ?
P T
V 1
We can use P
P T
V T
V V P
(1) (cyclic rule)
T P P T T V
P P
Calculate using above results
T V V T
Differential Forms
Integrals
n
f ( x)dx lim f ( x1 )dx (Area under function)
b
a x 0
i 1
dF b
Find function F ( x) such that
dx
f ( x) then: a
f ( x)dx F (b) F (a)
Line Integrals
P1 ( x )
df I1 P2 ( x )
df I 2 in general I1 I 2
dP1
y( x) P1 ( x) dy dx
dx
I1
Path
g ( x, y)dx h( x, y)dy df
x2 dP
I1 g x, P1 ( x) dx h x, P1 ( x) 1 dx
x1
dx
x2 dP
I1 g x, P1 ( x) h x, P1 ( x) 1 dx
x1
dx
x2
I1 c( x)dx reduced to 1d integral
x1
Likewise:
x2 dP
I 2 g x, P2 ( x) h x, P2 ( x) 2 dx
x1
dx
integrals are different
But: they are the same if and only df is an exact differential
If df exact differential then I1 I ( x, y) final I ( x, y)initial
d d
Inexact differential: g ( x, y ) h( x, y )
dy x dx y
Path
df gives results but depends on path
How do you get contours for map? Measure the height differences between
neighbouring points
dh hx dx hy dy measure in small steps
h( x, y) defines height function of x, y
dsnow d x dx d y dy
The amount of snow you shovel depends on
the path you take between points A and B
Exact differential:
df 2 xydx x 2 dy
(2 xy ) x ( x 2 ) y
y x
2 x 2 x Therefore, is exact differential
df is independent of path
dF dF
F ( x) such that 2 xy ; x F ( x, y) x y
2 2
dx y dy x
dP1 d ( y x)
P1 ( x) : y x 1
dx dx
dP2 d ( y x 2 )
P2 ( x) : y x 2 2x
dx dx
I1 g ( x, y)dx h( x, y)dy
Path
x 1 dP1
g x, P1 ( x) dx h x, P1 ( x) dx
x 0 dx
1 1
I1 2 x xdx x 2 1dx 3x 2 dx
0 0
3 1
x 1
0
1 1
I 2 2 x x 2 dx x 2 2 xdx 4 x3 dx
0 0
4 1
x 1 (integral result is the same because exact differential)
0
F ( x, y) x 2 y I n F (1,1) F (0,0) 1 0 1
1 1
I1 x 2 1dx 2 x x 1dx 3x 2 dx
0 0
3 1
x 1
0
1 1
I 2 x 2 dx 2 x x 2 2 xdx x 2 4 x 4 dx
0 0
1
1 3 4 5 1 4 17
x x 1
3 5 0 3 5 15
2
( x ) x (2 xy) y ?
y x
0 2y not equal, differential is not exact, I1 I 2 in general
F F
x and 2 xy ?
2
Does F ( x, y) exist such that
x y y x
F 1 3
x F x c
2
x y 3
F
2 xy F xy 2 c Not equal
y x
Hence: for inexact differentials, line integrals can be calculated, but results depends on
path. True for q, w in thermo or shoveling snow!
y 1 y y z
x z x x z z x x y
y z
Exact differential: df g ( x, y)dx h( x, y)dy
y g ( x, y ) x f ( x, y )
x y
Path
df is independent of path
Back to Thermodynamics!
Definition of and
1 V
Define: in units K 0 usually
-1
V T P
V
V : Volumetric thermal Expansion coefficient
T P
1 V
in Bar
-1
0
V P T
V
V : Isothermal compressibility
P T
1 dV
dT
V
f f 1 f dV
Path dP i dT i V
1 Vf
P T ln
Vi
Vf
ln T P
Vi
Dependence of U on T and V
U U
dU dT dV
T V V T
dU q w : inexact differential
q Pext dV assume constant volume
dU q qV CV dT
U CV T if V constant
U
lim
T 0 T
CV
V
U
CV
T V
U P
T P T P (will be derived later)
V T T
Dependence of H on T and P
H H V
CP T V V (1 T )
T P P T T P
(to be derived later too)
Derivations involving dH
dH dU d ( PV )
dH dU VdP PdV
H H U U
dT dP dT dV VdP PdV
T P P T T V V T
H U
CP dT V dP CV dT P dV
P T V T
U P
Use P T (relation stated before)
V T T V
H P
CP dT V dP CV dT T dV
P T T V
assume T is constant (some process)
H P
P V dP T T dV ( T constant)
T V
H P V
V lim T
P T P 0
T V P T
H P V
V T now use cyclic rule
P T T V P T
H V
V T
P T T P
H U
CP dT V dP CV dT P dV
P T V T
Assume P constant
P V
CP CV T
T V T P
CP CV T V
2
CP CV TV (exact)
For ideal gas
P V
CP CV T
T V T P
P nRT nR V nRT nR
;
T V T V V V T P T P P P
nR nR nRT
CP CV T CV nR
V P PV
CP CV nR (used and derived before)
T
CJT (Joule Thompson Coefficient, definition)
P H
H H T
CP CJT
P T T P P H
P1 P2 qtotal 0 qI qII
H is constant during process
If H is constant:
T T T
lim 2 1 CJT
P2 P1 P P
2 1 H P H
H
CP CJT V VT
P T
1 V
CP CJT measures
V T P
CJT 0 for ideal gases
Utotal U I U II w P1V1 P2 V2 q0
U I P1V1 U II P2V2 0
CJT as a function of T , P