Professional Documents
Culture Documents
Mathematical Chemistry Nassimi
Mathematical Chemistry Nassimi
Ali Nassimi
a.nassimi@sharif.edu
Chemistry Department
Sharif University of Technology
June 6, 2019
1/125
Aim
2/125
Course Evaluation
3/125
To be covered in the course
4/125
To be covered in the course
5/125
References
6/125
Complex numbers
Real numbers
Fundamental theorem of algebra: ”Every non-constant
single-variable polynomial has at least one complex root.”
√
X 2 + 1 = 0 defines x = i = −1. Complex number
x = a + bi = (a, b) = ce θi .
Complex conjugate, Complex plane, summation, multiplication,
division, and logarithm.
Euler formula, ”our jewel”, e iα = cos(α) + i sin(α) for real α
Proof by Taylor expansion
7/125
Complex numbers
e ix +e −ix e ix −e −ix
cos x = 2 , sin x = 2i .
y −y
cosh(y ) = cos(iy ) = e +e 2 ,
e y −e −y
i sinh(y ) = sin(iy ) → sinh y = 2 .
cos(x) · cos(y ) = 12 [cos(x + y ) + cos(x − y )],
cos(x + y ) = cos x cos y − sin x sin y ,
sin(x + y ) = sin x cos y + cos x sin y .
8/125
Coordinate System
Rectangular cartesian coordinate system is a one to one
correspondence between ordered sets of numbers and points of
space.
Ordinate (vertical) vs. abscissa (horizontal) axes.
Round or curvilinear coordinate system
Curvilinear coordinates are a coordinate system for Euclidean
space in which the coordinate lines may be curved, e.g.,
rectangular, spherical, and cylindrical coordinate systems.
Coordinate surfaces of the curvilinear systems are curved.
Plane polar coordinate system,
x = r cos θ, y = r sin θ, dS = rdrdθ,
Spherical polar coordinates
x = r sin θ cos φ, y = r sin θ sin φ, z = r cos θ, dV =
r 2 sin θdrdφdθ
Rectangular coordinates
9/125
Coordinate System
10/125
Vector analysis
11/125
Vector analysis
~
Direction cosines, projections of A.
Geometric or algebraic representation.
12/125
Vector analysis
~ = Ax x̂ + Ay ŷ + Az ẑ.
Unit vectors, A
Expansion of vectors in terms of a set of linearly independent
basis allow algebraic definition of vector addition and
subtraction, i.e.,
~±B
A ~ = x̂(Ax ± Bx ) + ŷ (Ay ± By ) + ẑ(Az ± Bz ).
|A|, Norm for scalars and vectors.
Ax = |A| cos α, Ay = |A| cos β, Az = |A| cos γ
Pythagorean theorem,
|A|2 = A2x + A2y + A2z , cos2 α + cos2 β + cos2 γ = 1.
Vector field: An space to each point of which a vector is
associated.
Direction of vector r is coordinate system independent.
13/125
Rotation of the coordinate axes
x0
cos φ sin φ x
0 = .
y − sin φ cos φ y
x → x1 , y → x2 , z → x3
xi0 = N aij = cos(xi0 , xj ).
P
j=1 aij xj ; i = 1, 2, · · · , N;
In Cartesian coordinates,
∂xi0
xi0 = cos(xi0 , x1 )x1 + cos(xi0 , x2 )x2 + · · · thus aij = ∂xj .
By considering
P primed coordinate
0 0
P 0 0
P by0 −φ,
axis to rotate
xj = i cos(xj , xi )xi = i cos(xi , xj )xi = i aij xi resulting in
∂xj
∂x 0
= aij .
i
A is the matrix whose effect is the same as rotating the
coordinate axis, whose elements are aij .
15/125
Matrices
A two dimensional array of elements is called a matrix.
A matrix with m rows and n columns is called an m by n
matrix.
If number of rows and columns are equal matrix is called
square matrix.
Matrix A is determined by determining its elements aij .
A+B = C iff aij + bij = cij
P
AB = C iff cij = k aik bkj
1 0 ··· 0
0 1 ··· 0
The identity matrix I = . . . . .
.. .. . . ..
0 0 ··· 1
If metrix A is composed of elements aij , transpose of A, AT , is
composed of elements aji .
Inverse of the sqare matrix A is defined by AA−1 = A−1 A = I .
16/125
Vectors and vector space
17/125
Group
18/125
Group
19/125
Group
20/125
Field
a field is a set on which addition, subtraction, multiplication,
and division are defined, and behave as the corresponding
operations on rational and real numbers do.
There exist an additive inverse -a for all elements a, and a
multiplicative inverse b-1 for every nonzero element b.
An operation is a mapping that associates an element of the
set to every pair of its elements.
Associativity of addition and multiplication
Commutativity of addition and multiplication
Additive and multiplicative identity
Additive inverses
Multiplicative inverses
Distributivity of multiplication over addition
The best known fields are the field of rational numbers, the
field of real numbers and the field of complex numbers.
21/125
Linear vector spaces
22/125
Linear vector spaces
Axiom Meaning
Associativity of addition u + (v + w ) = (u + v ) + w
Commutativity of addition u+v =v +u
Identity element of addition ∃0 ∈ V , called the zero vector,
such that v + 0 = v ∀v ∈ V .
Inverse elements of addition for ∃−v ∈ V , called the addi-
every v ∈ V , tive inverse of v, such that v +
(−v ) = 0
Compatibility of scalar multiplica- a(bv) = (ab)v
tion with field multiplication
Identity element of scalar multipli- 1 denotes the multiplicative
cation 1v = v, identity in F
Distributivity of scalar multiplica- a(u + v) = au + av
tion with respect to vector addi-
tion
Distributivity of scalar multiplica- (a + b)v = av + bv
tion with respect to field addition
23/125
Scalar or dot product
B~ 0 · C~ 0 = P B 0 C 0 = P P P ali Bi alj Cj =
l l l
P P Pl i j P ~ ~
ij ( l ali alj )Bi Cj = ij δij Bi Cj = i Bi Ci = B · C ; thus dot
product is scalar.
C~ = A ~ + B,
~ C~ · C~ = (A ~ + B) ~ · (A
~ + B)
~ =
~·A ~+B ~ ·B~ + 2A ~·B →
− →
−
~ → A · B = 1 (C 2 − A2 − B 2 ).
A 2
→
− → −
Therefore, A · B is a scalar.
Another derivation for cosine law, C 2 = A2 + B 2 + 2AB cos θ
25/125
The sine law
a b c
This reminds us of the sine law: sin A = sin B = sin C =d
Triangle area,
S = 12 aha = 21 a(b sin C ) = 12 a(c sin B) = 12 chc = 12 c(b sin A).
1
2 a(b sin C ) = 21 a(c sin B) = 12 c(b sin A)
26/125
Vector or cross product
→
− →
− → − →
−
Geometric definition: C = A × B C = AB sin θ, C is a
→
− →
− →
−
vector perpendicular to the plane of A and B such that A
→
− →
−
and B and C form a right-handed system.
→
− → − →
− → −
Cross product is non-commutative. A × B = − B × A
x̂ × x̂ = ŷ × ŷ = ẑ × ẑ = 0
x̂ × ŷ = ẑ,x̂ × ẑ = −ŷ , ẑ × ŷ = −x̂
→
− →
−
Angular momentum, L = → −r ×→− τ =→
p ; torque, →
− −
r × F and
→
− →
−
magnetic force, F M = q → −v × B.
Treating area as a vector quantity.
27/125
Vector or cross product
→
− → − →
−
A × B ≡ C = (Cx , Cy , Cz ) =
(Ax x̂ + Ay ŷ + Az ẑ) × (Bx x̂ + By ŷ + Bz ẑ) =
(Ax By −Ay Bx )x̂ × ŷ +(Ax Bz −Az Bx )x̂ × ẑ +(Ay Bz −Az By )ŷ × ẑ
Cx = Ay Bz −Az By , Cy = Az Bx −Ax Bz , Cz = Ax By −Ay Bx .
Ci = Aj Bk − Ak Bj , i,j and k are different.
28/125
Vector or cross product
x̂ ŷ ẑ
→
−
C = Ax Ay Az
Bx By Bz
→
− → − →
− → − → −
A · C = A · (A × B) =
Ax (Ay Bz − Az By ) + Ay (Az Bx − Ax Bz ) + Az (Ax By − Ay Bx ) = 0.
→
− → − →
− → − → −
B · C = B · ( A × B ) = 0.
→
− → − →
− → −
( A × B ) · ( A × B ) = A2 B 2 sin2 θ.
29/125
Levi-Civita symbol
i1 i2 ···in
+1
if (i1 , i2 , · · · , in ) is an even permutation of (1, 2, · · · , n)
= −1 if (i1 , i2 , · · · , in ) is an odd permutation of (1, 2, · · · , n)
0 otherwise (no permutation, repeated index)
ijk lmn =
δil δjm δkn + δim δjn δkl + δin δjl δkm − δim δjl δkn − δil δjn δkm − δin δjm δkl
P3 P3
i=1 ijk imn = i=1 (δii δjm δkn + δim δjn δki + δin δji δkm −
δim δji δkn − δii δjn δkm − δin δjm δki ) = δkn δjm − δjn δkm
30/125
Levi-Civita symbol—applications
31/125
Triple scalar product
→
− → − → − →
− P P
A · B × C = A · ( ijk ijk Bj Ck êi ) = ijk ijk Ai Bj Ck =
P →
− → − → − →
− → − → −
jki ijk Bi Cj Ak = B · C × A = C · A × B =
→
− → − → −
− A · C × B = −C~ · B ~ × A.
~
Ax Ay Az
→
− → − → −
A · B × C = Bx By Bz . Volume of the parallelepiped
Cx Cy Cz
→
− → − →
−
defined by A , B and C .
32/125
Triple vector product
→
− →
− → − →
− →
−
A × (B × C ) = x B + y C
→
− → − →
− → − →
− →− →
− → −
0=xA · B +yA · C →x =zA · C y = −z A · B
→
− →
− → − →
−→ − → − → −→− → −
A × ( B × C ) = z( B A · C − C A · B )
z is magnitude independent.
33/125
BAC-CAB
34/125
Taylor series
35/125
Taylor series
Taylor series for log x at some a = x0 is:
2
log(x0 ) + x10 (x − x0 ) − x12 (x−x
2
0)
+ ···.
0
The Taylor series for the exponential function e x at a = 0 is
x0 x1 x2 x3 x4 x5
0! + 1! + 2! + 3! + 4! + 5! + · · · =
2 3 4 5 xn
1 + x + x2 + x6 + 24x x
+ · · ·= ∞
P
+ 120 n=0 n! .
If f(x) is given by a convergent power series in an open disc
centered at b in the complex plane, it is analytic in this disc.
For x inP this disc, f is given by a convergent power series
f (x) = ∞ n=0 an (x − b) .
n
37/125
Gradient, O
dφ = C1 − C2 = ∆C = (∇φ) · dr
38/125
Gradient, O
∂ ∂ ∂
∇ · ~r = (x̂ ∂x + ŷ ∂y + ẑ ∂z ) · (x̂x + ŷ y + ẑz) = 3,
∇ · (~r f (r )) =?, ∇ · (~r r n−1 ) =?.
~ ) · ∇f (r )d 3 r = − f (r )∇ · A(r ~ )d 3 r where A or f vanish
R R
A(r
at infinity.
40/125
Divergence, O
~, ∇· V ~ = ∂Vx + ∂Vy ∂Vz
Divergence of V ∂x ∂y + ∂z
~ ) for a compressible fluid.
∇ · (ρV
The flow going through a differential volume per unit time is:
∂
Net rate of flow out|x = ∂x (ρvx )|(0,0,0) dxdydz
lim∆x→0 ρvx (∆x,0,0)−ρv
∆x
x (0,0,0)
≡ ∂[ρvx∂x
(x,y ,z)]
|(0,0,0)
Net flow out (per unit time) = ∇ · (ρ~v ) dxdydz.
Continuity equation: ∂ρ
∂t + ∇ · (ρ~
v ) = 0.
~ ) = ∇f · V
∇ · (f V ~ +f∇·V ~
~ is solenoidal if and only if ∇ · B = 0
B
A circular orbit can be represented by ~r = x̂r cos ωt + ŷ r sin ωt.
Evaluate r × ~r˙ and ~¨r + ω 2~r =
Divergence of electrostatic field due to a point charge,
∇ · E~ = ∇ · 4πqˆr0 r 2 .
42/125
Curl, ∇×
x̂ ŷ ẑ
~ =
∇×V ∂ ∂ ∂
.
∂x ∂y ∂z
Vx Vy Vz
~ ~ + (∇f ) × V
∇ × (f V ) = f ∇ × V ~
∇ × (~r F (r )) = 0
Show that electrostatic and gravitational forces are irrotational.
Show that the curl of a vector field is a vector field.
Curl can be measured by inserting a paddle wheel inside the
vector field.
43/125
Circulation
44/125
Successive applications of ∇
45/125
Electromagnetic wave equation
46/125
Electromagnetic wave equation
46/125
Review: Integrals
x(x + a)n dx =
R
1
R
a2 +x 2
dx =
x
R
a2 +x 2
dx
x2
R
a2 +x 2
dx =
R x 3
a2 +x 2
dx =
R
tan(ax + b)dx =
R
cotan(ax + b)dx =
47/125
Review: Integrals
x(x + a)n dx =
R
1
R
a2 +x 2
dx =
R x
a2 +x 2
dx
1
= 2 ln |a2 + x 2 |
R x2
a2 +x 2
dx =
R x3
a2 +x 2
dx =
R
tan(ax + b)dx =
− 1a ln | cos(ax + b)|
R
cotan(ax + b)dx =
1
a ln | sin(ax + b)|
47/125
Review: Integrals
R
sec(ax + b)dx =
R
cosec(ax + b)dx =
sec2 (x)dx =
R
cosec 2 (x)dx =
R
R
tan(x) sec(x)dx =
R
cotan(x)cosec(x)dx =
48/125
Review: Integrals
R
sec(ax + b)dx =
1
a ln | sec(ax + b) + tan(ax + b)|
R
cosec(ax + b)dx =
− 1a ln |cosec(ax + b) + cotan(ax + b)|
sec2 (x)dx =
R
tan(x)
cosec 2 (x)dx =
R
cotan(x)
R
tan(x) sec(x)dx =
sec(x)
R
cotan(x)cosec(x)dx =
cosec(x)
48/125
Review: Integrals
1 dx 1 dx
R R R
ax 2 +bx+c
dx = b 2 2 = a b2
=
a(x+ 2a ) +c− b4a b 2
(x+ 2a ) +c/a−
4a2
b
x+ 2a
1 du 1
tan−1 ( q u 1
tan−1 ( q
R
a b2
= a b2
)= a b2
)
u 2 +(c/a− ) c/a− c/a−
4a2 4a2 4a2
1
R
(x+a)(x+b) dx =
x
R
ax 2 +bx+c
dx =
√ 1 dx =
R
x±a
R √
x x − adx
R√
ax + bdx =
R x
√
x±a
dx =
Rq x
a−x dx
49/125
Vector integration over a contour
R
CR φd~
r = R R
x̂ C φ(x, y , z)dx + ŷ C φ(x, y , z)dy + ẑ C φ(x, y , z)dz
~ · d~r , e.g., w = F · d~r =
R R
C V
~
R R R
C Fx (x, y , z)dx + C Fy (x, y , z)dy + C Fz (x, y , z)dz
~
R
CR V × d~ r= R R
x̂ C (Vy dz − Vz dy ) − ŷ C (Vx dz − Vz dx) + ẑ C (Vx dy − Vy dx)
Reduce each vector integral to scalar integrals.
R 1,1 R 1,1 R 1,1
E.g., 0,0 r 2 dr = 0,0 (x 2 + y 2 )dr = 0,0 (x 2 + y 2 )(x̂dx + ŷ dy )
E.g., Calculate W for F = −x̂y + ŷ x
50/125
Surface and volume integration
R
φd~σ
~ · d~σ (flow or flux through a given surface),
R
V
~ × d~σ
R
V
Convention for the direction of surface normal: Outward from
a closed surface. In the direction of thumb when contiguous
right hand fingers are traversing the perimeter of the surface.
Volume integrals:
~
R R R R
v V dτ = x̂ v Vx dτ + ŷ v Vy dτ + ẑ v Vz dτ
51/125
Integral definition of gradient
R
Sdτ φd~
σ
∇φ = limdτ →0 dτ
dτ = dxdydz. Place origin at the center of the differential
volume.
σ = −i EFHG (φ − ∂φ dx
R R R
Sdτ φd~ ∂x 2 )dydz + i ABDC (φ +
∂φ dx R ∂φ dy R
∂x 2 )dydz − j AEGC (φ − ∂y 2 )dxdz + j BFHD (φ +
∂φ dy R ∂φ dz R ∂φ dz
∂y 2 )dxdz − k ABFE (φ − ∂z 2 )dydx + k CDHG (φ + ∂z 2 )dydx
φd~σ = (i ∂φ ∂φ ∂φ
R
∂x + j ∂y + k ∂z )dxdydz
52/125
Integral definitions of divergence and curl
~ ·d~
R
V σ
~ = limdτ →0
∇·V
Sdτ
dτ
~ · d~σ = ~ ~ · d~σ + ~
R R R R
Sdτ V EFHG V · d~σ + ABDC V AEGC V · d~
σ+
~ · d~σ + ~ ~ · d~σ =
R R R
BFHD V ABFE V · d~
σ + CDHG V
(Vx − ∂x 2 )dydz + ABDC (Vx + ∂V
∂Vx dx x dx
R R
− ∂x 2 )dydz −
R EFHG ∂V ∂Vy dy
(Vy − ∂yy dy
R
RAEGC 2 )dxdz + R BFHD (Vy + ∂y 2 )dxdz −
∂Vz dz ∂Vz dz
ABFE (Vz − ∂z 2 )dydx + CDHG (Vz + ∂z 2 )dydx =
∂Vy
( ∂V ∂Vz
∂x + ∂y + ∂z )dxdydz
x
53/125
Integral definitions of divergence and curl
~
R
σ ×V
d~
∇×V ~ = limdτ →0 Sdτ
dτ
~ × d~σ = ~ × d~σ + ~ ~×
R R R R
Sdτ V EFHG V ABDC V × d~ σ + AEGC V
~ × d~σ + ~ ~ × d~σ =
R R R
d~σ + BFHD V ABFE V × d~ σ + CDHG V
−dydz V ~ (−dx/2, 0, 0) × x̂ + dydz V ~ (dx/2, 0, 0) × x̂ −
~ ~
dxdz V (0, −dy /2, 0) × ŷ + dxdz V (0, dy /2, 0) × ŷ −
~ (0, 0, −dz/2) × ẑ + dxdy V
dxdy V ~ (0, 0, dz/2) × ẑ =
−dydz(Vz (−dx/2, 0, 0)ŷ − Vy (−dx/2, 0, 0)ẑ) +
dydz(−Vz (dx/2, 0, 0)ŷ − Vy (dx/2, 0, 0)ẑ) −
dxdz(−Vz (0, −dy /2, 0)x̂ + Vx (0, −dy /2, 0)ẑ) +
dxdz(−Vz (0, dy /2, 0)x̂ + Vx (0, dy /2, 0)ẑ) −
dxdy (Vy (0, 0, −dz/2)x̂ − Vx (0, 0, −dz/2)ŷ ) +
dxdy (Vy (0, 0, dz/2)x̂ − Vx (0, 0, dz/2)ŷ )
54/125
Theorems
~ · d~σ = ~
R R
Gauss’s theorem, S V V ∇ · V dτ , equates the flow out
of a surface S with the sources inside the volume enclosed by it.
~ = φ(x, y , z)~a
R R
Alternate form: S φd~σ = V ∇φdτ using V
~= ~ ~ = ~a × P ~
R R
Alternate form: S d~σ × P V ∇ × Pdτ using V
Prove Green’s theorem, R
2 2
R
V (u∇ v − v ∇ u)dτ = S (u∇v − v ∇u) · d~ σ , by applying
Gauss’s theorem to the difference of
∇ · (u∇v ) = u∇2 v + ∇u · ∇v and ∇ · (v ∇u).
Alternative form, S u∇v · d~σ = V (u∇2 v + ∇u · ∇v )dτ
R R
55/125
Theorems
~ · d ~λ = ~ · d~σ
H R
Stokes theorem: V S ∇×V
~ = ~aφ
R H
Alternate form: S dσ × ∇φ = ∂S φdλ using V
56/125
Potential theory
Scalar potential
Conservative force H
⇐⇒ F = −∇φ ⇐⇒ ∇ × F = 0 ⇐⇒ F · dr = 0
∇ × F = −∇ × ∇φ = 0
H H H
F · dr = − ∇φ · dr = − dφ = 0
H R R
RACBDA F · dr = 0 ⇐⇒ ACB F · dr = − BDA F · dr =
ADB F · dr ⇐⇒ the work is path independent.
57/125
Potential theory
RB
Thus A F · dr = φ(A) − φ(B) → F · dr = −dφ = −∇φ · dr .
Therefore (F + ∇φ) · dr = 0
H R
F · dr = ∇ × F · dσ by integrating overHthe perimeter of an
arbitrary differentil volume dσ we see that F · dr = 0 result
in ∇ × F = 0.
Scalar potential for the gravitational force on a unit mass m1 ,
FG = − Gmr12m2 rˆ = − kr 2rˆ?
Scalar potential for the centrifugal force and simple harmonic
oscillator on a unit mass m1 , F~c = ω 2~r and F~SHO = −k~r .
Exact differentials. How to know if integral of
df = P(x, y )dx + Q(x, y )dy is path dependent or independent.
Vector potential B~ =∇×A ~
58/125
Gauss’s law, Poisson’s equation
Only a point charge at the origin E~ = 4πqˆr0 r 2
(
0 S does not contain the origin,
Gauss’s law: S E~ · d~σ = q
R
0 S contains the origin.
Closed surface
R rˆ·d~σ R S not including the origin
rˆ
S r 2 = V ∇ · ( r 2 )dτ
rˆ·d~
σ σ0
rˆ·d~
R R
S r2
+ S0 δ2
=0
59/125
Gauss’s law, Poisson’s equation
dσ 0 = −ˆ r δ 2 dΩ
~ · d~σ = q = ρ ~ σ= ∇ · E~ dτ
R R R R
S E 0 V 0 dτ . Further, S E · d~ V
ρ
Maxwell equation: ∇ · E~ = 0
Poisson’s equation: ∇2 φ = − ρ0 .
Laplace’s equation ∇2 φ = 0
Substitute φ for E into the Gauss’s law.
60/125
Dirac delta function
(
R 2 1 −4π 0 ∈ v ,
v ∇ ( r )dτ = Thus
0 0 6∈ v .
∇2 ( 1r ) = −4πδ(~r ) = −4πδ(x)δ(y )δ(z).
(
δ(x) = 0 x 6= 0,
Dirac Delta properties R∞
f (0) = −∞ f (x)δ(x)dx.
See functions
approximating δ in a Mathematica notebook.
1
0
x < − 2n ,
1 1
δn (x) = n, − 2n < x < 2n ,
1
0 x > 2n .
2 2
δn (x) = √n e −n x .
π
n 1
δn (x) = π 1+n2 x 2 .
sin nx
R n ixt
1
δn (x) = πx = 2π−n e dt.
R∞ R∞
−∞ f (x)δ(x)dx = limn→∞ −∞ f (x)δn (x)dx
61/125
Dirac delta function
62/125
Representation of Dirac delta by orthogonal functions
Consider an infinite dimensional vector space where elements of
the underlying set are functions.
(f + g )(x) = f (x) + g (x) (cf )(x) = cf (x).
Rb
Inner product maybe defined as f (x) · g (x) = a f (x)g (x)dx
where either a, b or both can be ∞.
No good and natural example but Real orthogonal functions
{φn (x), n = 0, 1, 2, · · · } form a basis for this vector space.
Their orthonormality
Rb relation is
φm · φn = a φm (x)φn (x)dx = δmn
Around any point x0 an example is the set
{(x − x0 )0 , (x − x0 ), (x − x0 )2 , · · · } which is not orthonormal.
Use Gram-Schmidt orthonormalization.
For square integrable functions use {sin(nπx), cos(nπx)}
Expanding delta
P∞ function in this bases:
δ(x − t) = n=0 an (t)φn (x): closure.
Take the inner product of both sides by φm (x) to derive
coefficients.
63/125
Fourier transform
δ(x − t) = ∞
P
n=0 φn (t)φn (x) = δ(t − x)
R R P∞ P∞
PF∞(t)δ(x − t)dt = P∞ p=0 ap φp (t) n=0 φn (t)φn (x)dt =
a φ
n,p=0 p n (x)δ np = a
p=0 p pφ (x) = F (x)
Fourier integral translatesR a function from one domain into
∞
another, F(f (t)) = √12π −∞ f (t)e iωt dt = F (ω),
R∞
F(ψ(x)) = √12π −∞ ψ(x)e ixp dx = ψ(p)
Inverse Fourier transform
R ∞ is
−1 1
F (F (ω)) = 2π −∞ F (ω) exp(−iωt)dω = f (t),
√
R∞
F −1 (ψ(p)) = √12π −∞ ψ(p) exp(−ixp)dp = ψ(x)
F(δ(x)) = √1 ,
2π R∞
δ(x) = F −1 (F(δ(x))) = F −1 ( √12π ) = 1
2π −∞ exp(−ixp)dp
64/125
Probability distributions
PM
uj p(uj )
Average of a discrete random variable, ū = Pj=1
M
j=1 p(uj )
PM
Average of any function of u: f (u) = j=1 f (uj )p(uj )
m’th moment of distribution u m
m’th central moment of distribution (u − ū)m including
variance.
am e −a
Poisson distribution: P(m) = m!
R
f (u) = f (u)p(u)du
(x−x̄)2
Gauss distribution: p(x) = 1
(2πσ 2 )1/2
e− 2σ 2
65/125
Important equations in physics
66/125
Important equations in physics
67/125
Curvilinear coordinates
A point can be specified as the intersection of the 3 planes x =
constant, y = constant and z = constant.
A point can be desdcribed by the intersection of three
curvilinear coordinate surfaces q1 = constant, q2 = constant,
q3 = constant.
Associate a unit vector q̂i normal to the surface qi = constant
and in the direction of increasing qi .
General vector V ~ = q̂1 V1 + q̂2 V2 + q̂3 V3 .
While coordinate or position vectors can be simpler, e.g.,
~r = r rˆ in spherical polar coordinates and ~r = ρρ̂ + z ẑ for
cylindrical coordinates.
q̂i2 = 1, for a right handed coordinate system q̂1 · (q̂2 × q̂3 ) > 0.
ds 2 = dx 2 + dy 2 + dz 2 = ij hij2 dqi dqj
P
71/125
Differential vector operations
Gradient is the vector of maximum space rate of change
Since dsi is the differential length in the direction of increasing
qi , this direction is depicted by the unit vector q̂i .
∂ψ
∇ψ · q̂i = ∇ψ|i = ∂s i
= h∂ψ
i ∂qi
.
∂ψ ∂ψ ∂ψ
∇ψ(q1 , q2 , q3 ) = q̂1 ∂s1
+ q̂2 ∂s2
+ q̂3 ∂s3
=
q̂1 h1∂ψ ∂ψ ∂ψ
∂q1 + q̂2 h2 ∂q2 + q̂3 h3 ∂q3
dψ =
~ ·d~
R
V σ
~ (q1 , q2 , q3 ) = limdτ →0
∇·V
Sdτ
dτ
72/125
Differential vector operations: Divergence
73/125
Differential vector operations: Curl
Assuming the surface s to lay on q1 = constant surface.
~ · d~σ = q̂1 · (∇ × V
~ )h2 h3 dq2 dq3 =
R H
lims→0 s ∇ × V ∂s V̂ · d~
r
x = ρ cos φ, y = ρ sin φ, z = z
∂x ∂x ∂y ∂y ∂z ∂z
Using: hij2 = ∂qi ∂qj
+ ∂qi ∂qj
+ ∂q i ∂qj
h1 = hρ = 1, h2 = hφ = ρ, h3 = hz = 1.
~r = ρ̂ρ + ẑz, ~ = ρ̂Vρ + φ̂Vφ + ẑVz
V
75/125
Spherical polar coordinates
76/125
Matrices
77/125
Matrices
Such
a system can be written
in
matrix
form
a11 a12 · · · a1n x1 b1
a21 a22 · · · a2n x2 b2
. . = .
.. .. . .
. . . .. .. ..
an1 an2 · · · ann xn bn
AX = B
−1
6= 0, X = A B and is uniquely determined.
If Det(A)
0
0
If B = . the above system of linear equations is called
..
0
homogeneous.
In order for this system
to have any solution other than the
0
0
trivial X = . , Det(A) must equal zero.
..
78/125 0
Leibniz integral rule
R
d b(x)
dx a(x) f (x, t) dt =
d d
R b(x)∂
f x, b(x) · dx b(x) − f x, a(x) · dx a(x) + a(x) ∂x f (x, t) dt,
A generalisation
Rx of the fundamental theorem of calculus; if
F (x) = a f (t) dt then F’(x)=f(x),
R x +∆x Rx
F (x1 + ∆x) − F (x1 ) = a 1 f (t) dt − a 1 f (t) dt =
R x1 +∆x
x1 f (t) dt.
F (x1 + ∆x) − F (x1 ) = f (c) · ∆x.
F (x1 +∆x)−F (x1 )
lim∆x→0 ∆x = lim∆x→0 f (c).
79/125
Differential equations
80/125
Ordinary differential equations
81/125
Ordinary differential equations
y (4) + 4y 000 + 3y = x; y1 = x3 , y2 = e −x + x
3
x 2 y 00 + 5xy 0 + 4y = 0, x > 0; y1 = x −2 , y2 = x −2 ln x
2 Rx 2 2
y 0 − 2xy = 1; y = e x 0 e −t dt + e x
uxx + uyy = 0; u1 = x 2 + y 2 , u2 = xy
utt − c 2 uxx = 0; u1 = sin(x + ct), u2 = sin(x − ct), u3 =
f (x + ct) + g (x − ct)
uxx + uyy + uzz = 0; u = (x 2 + y 2 + z 2 )−1/2
x 2 y 00 + xy 0 + y = 0, y (1) = 1, y 0 (1) = −1; y=
cos(ln x) − sin(ln x)
82/125
First order differential equations
83/125
First order differential equations
84/125
First order differential equations
y 0 + yx = 3 cos 2x, x > 0
y 0 + 3y = x + e −2x
(x 2 + 1)y 0 + y + 1 = 0
y 0 sin 2x = y cos 2x
xy 0 + y + 4 = 0, x > 0
x 2 y 0 − xy = x 2 + 4, x > 0
y 0 + 2y = xe −2x ; y (1) = 0
y 0 + x2 y = cos
x2
x
; y (π) = 0
2
y 0 + y cot x = 2x − x 2 cot x, y ( π2 ) = π4 + 1
y 0 − x 3 y = −4x 3 ; y (0) = 6
y 0 + y tan x = sin 2x; y (0) = 1
sin xy 0 + cos xy = cos 2x, x ∈ (0, π); y ( π2 ) = 1/2
2
y 0 + yx = e x , x > 0; y (1) = 0
y 0 + y = xe −x ; y (0) = 1
85/125
Nonlinear First order DEs
(x − 1)dx → y /4 − y /2 + ln |y | = x 4 /4 − x + c
3 4 2
86/125
Complete first order DE
p(x,y )
y 0 = − q(x,y ) → p(x, y )dx + q(x, y )dy = 0 this equation is
complete in a region D if and only if there is a g such that
dg (x, y ) = p(x, y )dx + q(x, y )dy
∂g ∂g
∂x = p(x, y ), ∂y = q(x, y )
E.g., For
(4x − y )dx + (2y − x)dy = 0, g (x, y ) = 2x 2 − xy + y 2 , g is
an integral of the differential equation and the curves
g (x, y ) = c are its integral curves.
Theorem: The necessary and sufficient condition for
completeness of p(x, y )dx + q(x, y )dy = 0 in a region D of the
∂p
xy plane is to have ∂y = ∂q
∂x , (x, y ) ∈ D
87/125
Complete first order DE
88/125
Completing a first order DE
g (x, y ) = 2x 2 − xy + h(y ) so
−x + h0 (y ) = 2y − x h(y ) = y 2 + c,
g (x, y ) = 2x 2 − xy + y 2 + c
Integration factor
µ(x, y )p(x, y )dx + µ(x, y )q(x, y )dy = 0
∂ ∂
∂y (µp) = ∂x (µq)
p(x, y ) ∂µ ∂µ
∂y − q(x, y ) ∂x
∂p
+ ( ∂y − ∂q
∂x )µ = 0. This PDE must be
solved to find the integrating factor.
E.g., x 2 − y 2 + 2xyy 0 = 0, Assuming
µ = µ(x), µ(x)(x 2 − y 2 )dx + µ(x)(2xy )dy = 0
∂
∂y [µ(x
2 − y 2 )] = ∂
∂x [µ(2xy )] → xµ0 + 2µ = 0 → µ(x) = x −2
2
(1 − yx 2 )dx + ( 2y 2 2 2
x )dy = 0 → x + y /x = c → y + (x − a) = a
2
89/125
Completing a first order DE: excersize
y 0 = x 3 y −2
(1 + x 2 )1/2 y 0 = 1 + y 2
y 0 = xy 2 + y 2 + xy + y ; Y (1) = 1
(x + 1)y 0 + y 2 = 0; y (0) = 1
(2x − y )dx − xdy = 0
(x − 2y )dx + (4y − 2x)dy = 0
ydx−xdy
y2
+ xdx = 0
3(x − 1)2 dx − 2ydy = 0
2 2
e x y (1 + 2x 2 y )dx + x 3 e x y dy = 0
(x 2 + y 2 )2 (xdx + ydy ) + 2dx + 3dy = 0
(x 2 + y 2 )dx + 2xydy = 0, y (1) = 1
ydx
x 2 +y 2
− x 2xdy
+y 2
= 0, y (2) = 2
(x − y )dx + (2y − x)dy = 0, y (0) = 1
py −qx
If µ = µ(x), ∂µ
∂y = 0,
dµ
µ = q dx
90/125
Completing a first order DE
q −p
If µ = µ(y ), dµ µ =
x y
p dy
(x 2 − y 2 ) − 2xyy 0 = 0
y + (y 2 − x)y 0 = 0
(3xy + y 2 ) + (x 2 + xy )y 0 = 0
(3xy + y 2 )dx + (3xy + x 2 )dy = 0
Ln [y ] = f (x)
Existence and uniqueness theorem: If p1 , p2 , · · · , pn and f are
continuous on the interval I, ∀x0 ∈ I the above equation has
one and only one solution y = φ(x) satisfying
φ(x0 ) = α1 , φ0 (x0 ) = α2 , φ00 (x0 ) = α3 , · · · , φ(n−1) (x0 ) = αn .
y 00 + p(x)y 0 + q(x)y = 0; y (x0 ) = 0, y 0 (x0 ) = 0 only has the
trivial solution.
92/125
Linear differential equations
93/125
Homogeneous Linear differential equations
L2 [y ] = y 00 − y = 0
y 000 + y 0 = 0
m functions g1 , g2 , · · · , gm are linearly independent on the
interval I iff c1 g1 (x) + c2 g2 (x) + · · · + cm gm (x) = 0 implies
that c1 = c2 = · · · = cm = 0.
The set of functions g1 , g2 , · · · , gm are linearly dependent on
the interval I if there is a set of constants c1 , c2 , · · · , cm
including at least one non zero ci such that for
∀x ∈ I c1 g1 (x) + c2 g2 (x) + · · · + cm gm (x) = 0.
E.g., {e r1 x , e r2 x }.
E.g., {e x , e −x , cosh x}.
94/125
Wronskian
95/125
Wronskian
96/125
Wronskian
97/125
Wronskian
98/125
Wronskian
Rx
− p1 (t)dt
W (φ1 , · · · , φn )(x) = W (φ1 , · · · , φn )(x0 )e x0
, x ∈I
y 000
− 4y 00
+ 5y 0
− 2y = 0 has solutions
φ1 = e , φ2 = xe x , φ3 = e 2x , these constitute a fundamental
x
set of solutions.
Theorem: Linear homogeneous differential equation of order n
has n linearly independent solutions.
Proof: consider
99/125
# of solutions of a LHDE
Substitute x = x0 to derive c1 = c2 = · · · = cn = 0
n linearly independent solutions of a linear differential equation
of order n are called a fundamental set of that equation.
100/125
Linear vector space of solutions
101/125
Linear vector space of solutions
102/125
Linear nonhomogeneous differential equations
103/125
Linear nonhomogeneous differential equations
104/125
Linear differential equations: Exercise
105/125
Linear differential equations: Exercise
y 0 − 3y 2/3 = 0 has the general solution y = (x + c)3 . Test if
linear combinations of these solutions are solutions. Test the
independence of different ( solutions? Consider the following
(x − a)3 x ≤ a
solutions: a) φ(x) = b)
0 x >a
3
(x − a) x ≤ a
(
0 x ≤b
φ(x) = c) φ(x) = 0 b>x >a
(x − b)3 x > b
3
(x − b) x ≥ b
2 n
Show that functions 1, x, x , · · · , x constitute a linearly
independent set.
Prove that n solutions of the DE
L[y ] = y (n) + p1 (x)y (n−1) + · · · + pn (x)y = 0 are linearly
independent iff their Wronskian is nonzero.
Drive the Abel relation for n=3. To this end show that
φ1 φ2 φ3
w 0 = φ01 φ02 φ03
106/125 φ000
1 φ000
2 φ000
3
Linear DE with constant coefficients
107/125
Linear DE with constant coefficients: exercise
108/125
L homogeneous second order DE with constant coefficients
For a second order DE L[y ] = y 00 + ay 0 + by = 0 try solutions
of the form φ(x) = e sx
L[e sx ] = p(s)e sx p(s) = s 2 + as + b is called characteristic
polynomial of the DE.
p(s) = 0 is the characteristic equation of the DE.
p(s) = 0 → s = s1 , s2
s1 6= s2 φ(x) = c1 e s1 x + c2 e s2 x including the case of complex
conjugate roots.
If s1 = a + bi then s2 = a − bi. {e (a+bi)x , e (a−bi)x } or
{e ax cos bx, e ax sin bx}
A homogeneous equation in x is said to have a double root, or
repeated root, at a if is a factor of the equation. At the double
root, the graph of the equation is tangent to the x-axis.
∂ ∂ sx
s1 = s2 ∂s L[e sx ] = L[ ∂s e ] = L[xe sx ]
L[xe s1 x ] = p 0 (s1 )e s1 x + p(s1 )xe s1 x = 0
φ(x) = (c1 + c2 x)e s1 x
109/125
L homogeneous second order DE with constant coefficients
110/125
Higher order LHDE with constant coefficients
{e s1 x , xe s1 x , · · · , x n1 −1 e s1 x , e s2 x , xe s2 x , · · · , x n2 −1 e s2 x ,
· · · , e sj x , xe sj x , · · · , x nj −1 e sj x }
111/125
Higher order LHDE with constant coefficients: Exercise
112/125
Finding private solutions: Variation of parameters
L[y ] = y 00 + p(x)y 0 + q(x)y = f (x) with {φ1 , φ2 } as a
fundamental set.
Assume φp = u1 φ1 + u2 φ2
φ0p = u10 φ1 + u20 φ2 + u1 φ01 + u2 φ02
Assume u10 φ1 + u20 φ2 = 0. Thus φ0p = u1 φ01 + u2 φ02 .
φ00p = u1 φ001 + u2 φ002 + u10 φ01 + u20 φ02 .
L[φp ] = φ00p + p(x)φ0p + q(x)φp = u1 φ001 + u2 φ002 + u10 φ01 +
u20 φ02 + p(x)(u1 φ01 + u2 φ02 ) + q(x)(u1 φ1 + u2 φ2 ) =
u1 (−pφ01 − qφ1 ) + u2 (−pφ02 − qφ2 ) + u10 φ01 + u20 φ02 +
p(x)(u1 φ01 + u2 φ02 ) + q(x)(u1 φ1 + u2 φ2 ) = f (x)
u 0 0 0 0
1 φ1 + u2 φ2= f0
φ1 φ2 u1 0
=
φ01 φ02 u20 f (x)
By Cramer’s rule: u10 = −f (x)φ2 (x)
W (φ1 ,φ2 ) u20 = W f (x)φ1 (x)
(φ1 ,φ2 )
R x f (s)φ2 (s) R x f (s)φ
u1 (x) = − x0 W (φ1 ,φ2 )(s) ds, u2 (x) = x0 W (φ1 ,φ12(s) )(s) ds
R x φ2 (x)φ1 (s)−φ1 (x)φ2 (s)
Finaly, φp (x) = x0 W (φ1 ,φ2 )(s) f (s)ds
113/125
Finding private solutions: Variation of parameters
dny d n−1
Suppose dt n + p1 (t) dt n−1 y + · · · + pn (t)y = g (t)
114/125
Finding private solutions: Variation of parameters
ex
y 00 − 2y 0 + y = 1+x 2
where the fundamental set is {e x , xe x }
y 000 + y 0 = tan x
y 000 − y 0 + 2y = e −x sin x
y 00 + y = 1
cos x
(e 2x +1)2
(D 2 + 10D − 12)y = e 2x
(4D 2 − 8D + 5)y = e tan2 (x/2)
x
y (4) + y = g (t)
115/125
Undetermined multipliers method for finding PS
One can guess the general form of the private solution and
substitute in the DE to find the undetermined multipliers in the
general form.
y 00 + y = 3x 2 + 4 → (D 2 + 1)y = 3x 2 + 4
Note that D 3 (3x 2 + 4) = 0 → D 3 (D 2 + 1)y = 0
y = c1 + c2 x + c3 x 2 + c4 cos x + c5 sin x
Substituting y into original DE determines multiples except for
cos x and sin x multiples as they are solutions of the
corresponding homogeneous equation and cancel out.
E.g., y 00 + 2y = e x
116/125
Undetermined multipliers method for finding PS
y 000 + y 0 = sin x
Since (D 2 + 1) sin x = 0, (D 2 + 1)(D 3 + D)y = 0
(D − 2)3 y = 3e 2x
Since (D − 2)(3e 2x ) = 0, (D − 2)4 y = 0. Thus φp (x) = cx 3 e 2x
The method of undetermined multiples has the following
limitations.
In L[y ] = f (x), L must contain only constant coefficients.
f(x) must contain functions which satisfy a homogeneous linear
DE with constant coefficient.
117/125
Undetermined multipliers method for finding PS
118/125
Undetermined multipliers method for finding PS
y 00 + 4y = xe x + x sin 2x
y 000 + 3y 00 = 2 + x 2
y 00 + 4y 0 + 4y = xe −x
y 00 + 9y = 2x sin 3x
d 2y
dt 2
− 4 dy 2t
dt + 8y = e (1 + sin 2t)
119/125
Euler differential equation
d 2y
dt 2
+ (a − 1) dy
dt + by = 0
Characteristic equation: s 2 + (a − 1)s + b=0
Depending on ∆ for the characteristic equation fundamental
set is {e s1 t = x s1 , e s2 t = x s2 }, {e s1 t = x s1 , te s1 t =
x s1 ln x}, {x α cos(β ln x), x α sin(β ln x)}
If we substitute x s for y, L[x s ] = [s 2 + (a − 1)s + b]x s = 0
120/125
Euler differential equation
s1 s2 s1 6= s2 ∈ <
c1 ζ + c2 ζ
s s
φ(ζ) = c1 ζ + c2 ζ ln ζ
1 1 s1 = s2 ∈ <
α α
c1 ζ cos(β ln ζ) + c2 ζ sin(β ln ζ) s = α ± iβ
121/125
Euler differential equation
Combining
solutions for x > 0 and x < 0.
s1 s2
c1 |x| + c2 |x|
φ(|x|) = c1 |x|s1 + c2 |x|s1 ln |x|
c1 |x|α cos(β ln |x|) + c2 |x|α sin(β ln |x|)
122/125
Series
P∞
k=o ak (x − a)k = a0 + a1 (x − a) + a2 (x − a)2 + · · · where
ak ∈ R, k ∈ N
The sequence {sn (x)} where sn (x) = nk=o ak (x − a)k is a
P
partial sum sequence for the above series.
The above power series is convergent at point x0 if the partial
sum sequence {sn (x)} is convergent at point x0 . I.e.,
limn→∞ sn (x0 ) = s(x0 )
s(x0 ) is the sum of the above series at point x0 .
limn→∞ nk=o ak (x0 − a)k = ∞ k
P P
k=o ak (x0 − a) = s(x0 )
Pn k 2
Set a = 0, k=o ak x =Pa0 + ka1 x + a2 x + · · · . This is
absolutely convergent iff |ak x | is convergent.
Convergence radius, convergence interval or region of
convergence.
n+1
limn→∞ | an+1 x
an x n |
123/125
Series
Every power series defines a continuous
P∞ differentiable function
over its radius of convergence. a x k = f (x)
P∞ k
P∞ k
P∞k=0 kk
( k=0 ak x )( k=0 bk x ) = k=0 ck x where
ck = km=0 ak−m bm = km=0 bk−m am
P P
125/125
Numeric solution to a differential equation
126/125