Professional Documents
Culture Documents
Cours L3 UFAZ2020 EM Math Part1
Cours L3 UFAZ2020 EM Math Part1
Cours L3 UFAZ2020 EM Math Part1
electromagnetism
Maksim Bano
maksim.bano@unistra.fr
f(x)
df f ( x + ∆x) − f ( x)
f ′( x) = = lim
dx ∆x→0 ∆x
x
UFAZ: EM - L3, October - 2021
Maksim BANO
Derivative
f(x)
h = Δx, let’s see what is happening when Δx 0
f(x)
x
= tg(α)
f(x)
α x
Derivative sum rule ( a f (x) + bg(x) ) ' = a f ' (x) + bg' (x)
Derivative product rule ( f (x) ∙ g(x) ) ' = f ' (x) g(x) + f (x) g' (x)
∫
a
2
Example: 2 3
x x2
I = ∫ ( ax + bx + c) dx = a + b
2
+ cx + d
1 3 2 1
8 1 1 7 3
= a ( − ) + b(2 − ) + c(2 − 1) = a + b + c
UFAZ: EM - L3, October - 2021 3 3 2 3 2
Maksim BANO
Derivative
Function linear approximation (first-order Taylor polynomial)
For small Δx, we can get an approximation to f(x0+Δx), when we know f(x0) and f '(x0).
f(x)
f(x0+∆x) = tg(α)
f(x0)
α x
0 x0+∆x
UFAZ: EM - L3, October - 2021
Maksim BANO
Derivative
Derivatives of Constant
Derivatives of Polynomials
1! 2! n!
And for x = x0 +∆x ∆x = x - x0
1 1 1
f ( x) = f ( x0 ) + f ′( x0 )( x − x0 ) + f ′′( x0 )( x − x0 ) 2 + + f ( n ) ( x0 )( x − x0 ) n +
1! 2! n!
1 2
f (0) = 1; f ′(0) = − 2
= −1; f ′′( 0 ) = 3
= 2;
(1 + x) x=0 (1 + x) x=0
1
f ( x) = = 1 − x + x 2 − x3 +
1+ x
Example 2: 1
Taylor Expansion of the function f ( x) = around the point x = 0
1− x
1
f ( x) = = 1 + x + x 2 + x3 +
1− x
f ( x) = cos x; f ( x) = sin x; f ( x) = e x ; f ( x) = ln x
f ( x) = cos x; f ( x) = sin x; f ( x) = e x ; f ( x) = ln x
1 1
cos x = cos x0 − sin x0 ( x − x0 ) − cos x0 ( x − x0 ) + sin x0 ( x − x0 ) 3 +
2
2 6
1 1
sin x = sin x0 + cos x0 ( x − x0 ) − sin x0 ( x − x0 ) 2 − cos x0 ( x − x0 ) 3 +
2 6
1 1
e = e [1 + (x - x 0 ) + (x - x 0 ) + (x - x 0 ) 3 +
x x0 2
2 3!
(x - x 0 ) (x - x 0 ) 2 (x - x 0 ) 3
ln x = ln x 0 + − 2
+ 3
x0 2x 0 3x 0
f (x,y)
∂f ∂f
df ( x, y ) = dx + dy f+df (x,y)
∂x ∂y
f (x,y)
∂f ∂f
and
∂x ∂y
1! 2! n!
z
d M = OM − OM ′ = ( dx, dy, dz )
- dM is the displacement vector d M = ( dx, dy, dz )
M(x,y,z) Mˊ(x+dx,y+dy,z+dz)
uz
z y
Cartesian coordinates (x, y, z) and
associated base (u x , u y , u z )
O
uy
ux x
y
x
UFAZ: EM - L3, October - 2021
Maksim BANO
Polar coordinates (in a plane)
The point M is perfectly located if we know the distance ρ (Greek letter rhô) and the
angle θ (Greek letter theta) that the segment makes with the axis Ox (see Figure).
Unlike Cartesian coordinates, the polar coordinates ρ and θ are not of the same nature.
The radial coordinate ρ has the dimension of a length like and x and y. The angular
coordinate θ is expressed in radian (dimensionless angle unit). The position vector OM
can be written:
OM = OM u ρ = ρu ρ
- The components of
the position vector OM
are (ρ, 0)
UFAZ: EM - L3, October - 2021 Polar coordinates (ρ, θ) and associated base (u ρ , uθ )
Maksim BANO
Polar coordinates (in a plane)
Relationship between polar and Cartesian coordinates
The relations between cartesian and polar coordinate systems are:
Passage polar Cartesian Passage Cartesian polar
OM = ρ = ( x 2 + y 2 ) ; x = ρ cos θ and y = ρ sin θ
x y
cos θ = and sin θ = u x = (cos θ )u ρ − (sin θ )uθ
ρ ρ
u y = (sin θ )u ρ + (cos θ )uθ
u ρ = (cos θ )u x + (sin θ )u y
uθ = (− sin θ )u x + (cos θ )u y
UFAZ: EM - L3, October - 2021 Polar coordinates (ρ, θ) and associated base (u ρ , uθ )
Maksim BANO
The cylindrical coordinates
To obtain the system of cylindrical
coordinates it suffices to complete the
system of polar coordinates (in the
plane xOy) by a third axis: the Oz
axis with its Cartesian coordinate
(called the height) (see figure).
OM = OP + PM = ρu ρ + zu z
OM = ρ 2 + z 2 = x2 + y2 + z 2
Cylindrical coordinates (ρ, θ, z) and associate base (u ρ , uθ , u z )
UFAZ: EM - L3, October - 2021
Maksim BANO
Spherical coordinates
The spherical coordinates (see figure) make it possible to locate a point on a sphere of
radius OM = r. It is typically the location of a point on the Earth for which it is enough
to specify two angles: the latitude (0< θ < π) and the longitude (0< ϕ< 2π).
x
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector calculation
Parallelogram rule
b
a
a −b
a +b
a
b
Scalar product
α = ab = a x bx + a y by + a z bz = a b cos θ
θ
Properties :
Distributive over vector addition:
a (b + c ) = ab + ac a
Commutative:
ab = b a
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector calculation
Parallelogram rule
b
a c (a ⋅ b) = (c a) ⋅ b = a ⋅ (c b).
a −b
a +b
a
b
Scalar product
Not associative because the dot product between a
scalar (a ⋅ b) and a vector (c) is not defined. θ
( ab )c = a (b c )
However the scalar multiplication property is
a
sometimes called the "associative law for scalar
and dot product"
( ab )c = a (b c)
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector calculation
Cross product:
c = a ∧ b = a ×b c ⊥ to (a , b ) plane
c = a b sin θ −c = b ∧a = b ×a
a × b The parallelogram area built on a and b b
c
ux uy uz
θ
a × b = ax ay az
bx by bz −c
a
a × b = (a y bz − by a z )u x − (a x bz − bx a z )u y + (a x by − bx a y )u z
(a × b ) × c = (a ⋅ c )b − (a ⋅ b )c
dϕ = ϕ ( x + dx, y + dy, z + dz ) − ϕ ( x, y, z )
→
M + dM
The variation of ϕ is given :
∂ϕ ∂ϕ ∂ϕ
dϕ ( x , y , z ) = dx + dy + dz M
∂x ∂y ∂z
→
The variation of ϕ(x,y,z) is the same as the scalar product of two vectors: dM and ∇
→ ∂ ∂ ∂ →
dM = (dx, dy, dz ) and ∇ = ( , , ) → dϕ = dM⋅ ∇ϕ
∂x ∂y ∂z
→
If the points M and M´ are on the same surface of ϕ = c then dϕ = 0 → dM ∇ϕ = 0
nt
which shows that ∇ϕ ⊥ ϕ = c nt and has the direction of increasing ϕ
∇(ϕ1ϕ 2 ) = ϕ1∇ϕ 2 + ϕ 2∇ϕ1 as the derivative product rule: ( fg )′ = f g′ + fg ′
∇(ϕ1 + ϕ 2 ) = ∇ϕ1 + ∇ϕ 2
df
∇f (ϕ ) = ∇ϕ as the derivative chain rule: ( f ( g ))′ = f ′( g ( x)) ⋅ g ′
dϕ
∇ϕ is invariant of Reference System
Example 1: ϕ ( x, y , z ) = x + y 2 + z 3
∂ϕ ∂ϕ ∂ϕ
∇ϕ = ( , , ) = (1, 2 y, 3 z 2 )
∂x ∂y ∂z
If we want to find the direction to move to increase our function the fastest, we plug in our
current coordinates (such as 3, 4, 5) into the gradient and get:
∂x ∂y ∂z z z z
If we want to find the direction to move to increase our function the fastest, we plug in our
current coordinates (such as 2, 0, -1) into the gradient and get:
0 4 0
∇ϕ = (17 − )u x + (− + 0)u y + ( + 0)u z = 17u x + 4u y
−1 −1 1
The gradient of φ at this point lies in the xy plane. Several contours in the xy plane near (2,0,-1)
are shown in the figure below)
∇ϕ = 17u x + 4u y at (2, 0, − 1)
At any point ∇ϕ is orthogonal to φ = cnst
∂ (− x 2 )
∇ ∧ A = 0u x + 0u y + u Z = −2 xu Z
∂x
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector analysis
∂ (− x 2 )
∇ ∧ A = 0u x + 0u y + u Z = −2 xu Z
∂x
The plot describing the curl of A:
∂ 2
A ∂ 2
A ∂ 2
Ax
∆A = ∇ A = ∇∇ ⋅ A − ∇ ∧ (∇ ∧ A) = ( 2 +
2 x x
+ , , )
UFAZ: EM - L3, October - 2021
∂x ∂y 2
∂z 2
Maksim BANO
Vector analysis
Examples:
→ r z
OM ( x, y, z ) = r = r = ur r
r M ( x, y , z )
r 1
ur = = ( xu x + yu y + zu z )
r r
r
r = r = x2 + y2 + z 2 uz
O
uy y
The surface r = cnt corresponds to a sphere
- Calculate the gradient of r ux
∂r ∂r ∂r x P( x, y,0)
grad (r ) = ∇r = ( , , )
∂x ∂y ∂z
2x 2y 2z
∇r = ( , , )
2 x +y +z
2 2 2
x +y +z
2 2 2
x +y +z
2 2 2
x y z 1 r r
∇r = ( , , ) = ( xu x + yu y + zu z ) = = u r ∇r = = u r
r r r r r r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector analysis
Examples:
→ r z
OM ( x, y, z ) = r = r = ur r
r M ( x, y , z )
r 1
ur = = ( xu x + yu y + zu z )
r r
r
r = r = x2 + y2 + z 2 uz
O
uy y
The surface r = cnt corresponds to a sphere
ux
x P( x, y,0)
The gradient of the function φ = r is a vector of unit magnitute,
everywhere directed radially outward.
r
∇r = = u r
r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector analysis
Examples:
∂ 1 −
3
- Calculate the gradient of 1/r
( ) = − x( x 2 + y 2 + z 2 ) 2
1 ∂ 1 ∂r 1 ∂r 1 ∂x r
∇( ) = ( ( ), ( ), ( ))
∂ 1
3
r ∂x r ∂y r ∂z r −
( ) = − y( x 2 + y 2 + z 2 ) 2
∂y r
r = r = x2 + y2 + z 2 ∂ 1 −
3
( ) = − z( x 2 + y 2 + z 2 ) 2
1
∂z r
− − −
3 3 3
∇( ) = − x( x 2 + y 2 + z 2 ) 2 u x − y ( x 2 + y 2 + z 2 ) 2 u y − z ( x 2 + y 2 + z 2 ) 2 u z
r
1 −
3
∇( ) = − ( xu x + yu y + zu z )( x 2 + y 2 + z 2 ) 2
r
1
−3 r u
∇( ) = − r r = − 3 = − 2r
r r r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector analysis
Examples:
- Calculate the gradient of 1/r
We can use the derivative chain rule: ( f ( g ))′ = f ′( g ( x)) ⋅ g ′
df
∇f (ϕ ) = ∇ϕ
dϕ
1 1 1
′
∇ ( ) = ( ) ∇r = − 2 u r with ∇r = u r
r r r
∂ y x 2 + y 2 + z 2 − y 2 ( x 2 + y 2 + z 2 ) −1 / 2
( )=
∂y x 2 + y 2 + z 2 x2 + y2 + z 2
∂ z x 2 + y 2 + z 2 − z 2 ( x 2 + y 2 + z 2 ) −1 / 2
( )=
∂y x + y + z
2 2 2 x2 + y2 + z 2
r 2
∇ ⋅ (u r ) = ∇ ⋅ ( ) =
r r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector
analysis
Examples: ur r
- Calculate the divergence of = 2
r r
u r ( xu x + yu y + zu z )
∇⋅( r ) = ∇⋅( 2 ) = ∇⋅( 2
)
r r r
u r ∂ x ∂ y ∂ z
∇⋅( r ) = ∇⋅( 2 ) = ( 2 ) + ( ) + ( )
r r ∂x x + y + z
2 2
∂y x + y + z
2 2 2
∂z x + y + z
2 2 2
∂ x (x2 + y2 + z 2 ) − 2x2
( 2 )=
∂x x + y + z
2 2
( x2 + y 2 + z 2 )2
∂ y (x2 + y2 + z 2 ) − 2 y2
( 2 )=
∂y x + y + z
2 2
( x2 + y 2 + z 2 )2
∂ z (x + y + z ) − 2z
2 2 2 2 u r 1
( 2 ) = ∇⋅( r ) = ∇⋅( 2 ) = 2
∂y x + y 2 + z 2 ( x2 + y 2 + z 2 )2 r r r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector
analysis
Examples: ur r
- Calculate the divergence of = 2
r r
We can use the derivative product rule : ( fg )′ = f ′g + fg ′
∇ ⋅ (αA) = α∇ ⋅ A + A ⋅ ∇α = αdivA + A ⋅ gradα
u 1 1 1
∇ ⋅ ( ) = ∇ ⋅ ( u r ) = ∇ ⋅ u r + u r ⋅ ∇( )
r
r r r r
1
2 ur
with ∇ ⋅ (u r ) = and ∇( ) = − 2
r r r
u r 12 u
2 1 1
∇⋅( r ) = ∇⋅( 2 ) = + u r (− 2r ) = 2 − 2 = 2
r r r r r r r r
u r 1
∇⋅( r ) = ∇⋅( 2 ) = 2
r r r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector
analysis
Examples: ur r
- Calculate the divergence of 2
= 3
r r
We can also use the derivative product rule rule : ( fg )′ = f ′g + fg ′
∇ ⋅ (αA) = α∇ ⋅ A + A ⋅ ∇α = αdivA + A ⋅ gradα
u 1 1 1
∇ ⋅ ( 2 ) = ∇ ⋅ ( 2 u r ) = ( 2 ∇ ⋅ u r + u r ⋅ ∇( 2 ))
r
r r r r
2 1 u
with ∇ ⋅ (u r ) = and ∇( 2 ) = ∇(r −2 ) = −2r −3∇(r ) = −2 3r
r r r
u r 1 2
u 2 2
∇ ⋅ ( 2r ) = ∇ ⋅ ( 3 ) = ( 2 + ur (−2 3r )) = 3 − 3 = 0
r r r r r r r
u r
∇ ⋅ ( 2r ) = ∇ ⋅ ( 3 ) = 0
r r
UFAZ: EM - L3, October - 2021
Maksim BANO
Vector analysis
Examples:
- Calculate the curl of r
ux uy uz ux uy uz
∂ ∂ ∂ ∂ ∂ ∂
rotA = ∇ ∧ A = =∇∧r = =0
∂x ∂y ∂z ∂x ∂y ∂z
Ax Ay Az x y z
∇∧r =0
r r 1
- Calculate the curl of 3 ∇ ∧ 3 = ∇ ∧( 3 r)
r r r
1
−3 r ur r
∇( ) = − r r = − 3 = − 2 ∇ ⋅ (u r ) = ∇ ⋅ ( ) =
2
r r r r r
1 −2 u u r
∇( 2 ) = ∇(r ) = −2r −3∇(r ) = −2 3r 1
∇⋅( ) = ∇⋅( 2 ) = 2
r
r r r r r
u r
∇ ⋅ ( 2r ) = ∇ ⋅ ( 3 ) = 0
r r
∇∧r =0 r
∇∧ 3 =0
r
Total flux = Integral(Vector Field Strength dot dS )
UFAZ: EM - L3, October - 2021
Maksim BANO
Surface, contour and volume Integrals
Surface Integral (Flux of a vector field )
Let’s calculate the flux of a vector field E ( x, y, z )
going out of an elementary cube of a volume
Δτ = Δ𝑥Δ𝑦Δ𝑧.
E
E = Ex u x + E y u y + Ez u z
C
dΦ 3 ( ABFE + DCGH )
dΦ 2 = [ E x ( x + ∆x, y, z ) − E x ( x, y, z )]∆y∆z
E
dΦ 3 = [ E z ( x, y, z + ∆z ) − E z ( x, y, z )]∆y∆z
C
∂E y E y ( x, y + ∆y, z ) − E y ( x, y, z )
= lim
∂y ∆y →0 ∆y E
∂E x E ( x + ∆x, y, z ) − E x ( x, y, z )
= lim x
∂x ∆x→0 ∆x
∂E z E ( x, y, z + ∆z ) − E z ( x, y, z )
= lim z
∂z ∆z →0 ∆z
Total Flux dΦ = dΦ1 + dΦ 2 + dΦ 3 = div ( E ) = ∇ ⋅ E
∂E y ∂E y ∂E y ∂E y
dC z ≈ − dxdy = − dS z
∂x ∂y ∂x ∂y
∂E y ∂E y
− u z
∂x ∂y
∂E ∂E ∂E ∂E
dC y ≈ x − z dxdz = x − z dS y
∂z ∂x ∂z ∂x
And
∂E ∂E y ∂E z ∂E y
dC x ≈ z − dydz = − dS x
∂y ∂z ∂y ∂z
Here too, we notice that the circulation of the
vector E on each contour is equal to the flux
of a certain physical quantity (vector) through
the surface delimited by the contour.
Geometrical meaning
Curl is simply the circulation per unit area.