PHY103A: Lecture # 2: Semester II, 2017-18 Department of Physics, IIT Kanpur
PHY103A: Lecture # 2: Semester II, 2017-18 Department of Physics, IIT Kanpur
PHY103A: Lecture # 2: Semester II, 2017-18 Department of Physics, IIT Kanpur
PHY103A: Lecture # 2
(Text Book: Introduction to Electrodynamics by David J Griffiths)
3
• Scalars and Vectors
• Vector Algebra
• Vector calculus
3
Differential Calculus (of function 𝑓𝑓 𝑥𝑥 of single variable 𝑥𝑥.)
𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 = 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑
Change in 𝑓𝑓(𝑥𝑥) Change in 𝑥𝑥
Derivative
𝑑𝑑𝑑𝑑
• The magnitude of is the rate of change (slope) of function 𝑓𝑓(𝑥𝑥)
𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑
• If = 0 then 𝑑𝑑𝑑𝑑 = 0, this defines the extremum of function 𝑓𝑓(𝑥𝑥).
𝑑𝑑𝑑𝑑
4
Vector Calculus
Differential Calculus (of function T 𝑥𝑥, 𝑦𝑦, 𝑧𝑧 of three variables.)
Q: How do we find out the rate of change of a function of more than one variable?
Solution:
It is known from a theorem on partial derivatives that a
function of three variables can be written as
• This shows how 𝑇𝑇 changes when the three variables are changed by the
infinitesimal amounts 𝑑𝑑𝑑𝑑, 𝑑𝑑𝑦𝑦, 𝑑𝑑𝑧𝑧.
• The above representation means that one does not require an infinite
number of “slopes” or “rate of changes.” It is sufficient to know just three.
5
Differential Calculus (of function T 𝑥𝑥, 𝑦𝑦, 𝑧𝑧 of three variables.)
Q: How do we find out the rate of change of a function of more than one variable?
Solution: We can rewrite 𝑑𝑑𝑑𝑑 as:
1 2𝑥𝑥 1 𝑦𝑦
= �+
𝒙𝒙 �
𝒚𝒚
2 𝑥𝑥 2 + 𝑦𝑦 2 2 𝑥𝑥 2 + 𝑦𝑦 2
𝑥𝑥 𝑦𝑦
= � + 𝒚𝒚
𝒙𝒙 �
𝑟𝑟 𝑟𝑟
10
= 𝒓𝒓�
5
𝛁𝛁𝑟𝑟
0
5
10
10 5 0 5 10
Differential Calculus (of function T 𝑥𝑥, 𝑦𝑦, 𝑧𝑧 of three variables.)
Example # 2
𝑥𝑥 2 +𝑦𝑦 2
• Find the gradient of g 𝑥𝑥, 𝑦𝑦 = exp −
2
𝜕𝜕𝑔𝑔 𝜕𝜕𝑔𝑔
𝛁𝛁𝑔𝑔 = �+
𝒙𝒙 �
𝒚𝒚
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
𝑥𝑥 2 + 𝑦𝑦 2 𝑥𝑥 2 + 𝑦𝑦 2
= −𝑥𝑥 exp − � − 𝑦𝑦 exp −
𝒙𝒙 �
𝒚𝒚
2 2
3
𝜵𝜵𝑔𝑔(𝑥𝑥, 𝑦𝑦) 1
is a maximum. 3
3 2 1 0 1 2 3
The gradient operator
𝜕𝜕 𝜕𝜕 𝜕𝜕
So, 𝛁𝛁 ≡ �+
𝒙𝒙 � + 𝒛𝒛�
𝒚𝒚
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
If we are dealing with scalar functions then the differential calculus consists of
derivatives only. However, in the case of vector functions/fields, the differential
calculus has two more concepts, namely, the two vector derivatives.
Divergence of a vector 𝛁𝛁 ⋅ 𝐕𝐕
Curl of a vector 𝛁𝛁 × 𝐕𝐕
9
The Divergence
The divergence of a vector 𝐕𝐕 is defined as
𝜕𝜕 𝜕𝜕 𝜕𝜕
𝛁𝛁 ⋅ 𝐕𝐕 = �+
𝒙𝒙 � + 𝒛𝒛� ⋅ (𝑣𝑣𝑥𝑥 𝒙𝒙
𝒚𝒚 � + 𝑣𝑣𝑦𝑦 𝒚𝒚
� + 𝑣𝑣𝑧𝑧 𝒛𝒛)
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
10
The Divergence
Example # 1
2
• Find the divergence of 𝐕𝐕 = 𝑥𝑥 𝑥𝑥� + 𝑦𝑦 𝑦𝑦�
0
=1+1=2
1
2
2 1 0 1 2
11
The Divergence
Example # 2
• Find the divergence of 𝐕𝐕 = 𝑥𝑥� 2
=0
0
1
2
2 1 0 1 2
12
The Divergence
Example # 3
• Find the divergence of 𝐕𝐕 = 𝑥𝑥 𝑥𝑥� 2
=1 0
1
2
2 1 0 1 2
13
The Divergence
Example # 1
• Find the divergence of 𝐕𝐕 = −𝑦𝑦 𝑥𝑥� + 𝑥𝑥 𝑦𝑦�
2
=0+0=0
0
1
2
2 1 0 1 2
14
The Divergence
Example # 5
• Find the divergence of 𝐕𝐕 = 𝑥𝑥 2 𝑥𝑥� + 𝑦𝑦 2 𝑦𝑦�
2
= 2 𝑥𝑥 + 2 𝑦𝑦 0
1
2
2 1 0 1 2
15
The Curl
The curl of a vector 𝐕𝐕 is defined as
𝜕𝜕 𝜕𝜕 𝜕𝜕
𝛁𝛁 × 𝐕𝐕 = �+
𝒙𝒙 � + 𝒛𝒛� × (𝑣𝑣𝑥𝑥 𝒙𝒙
𝒚𝒚 � + 𝑣𝑣𝑦𝑦 𝒚𝒚
� + 𝑣𝑣𝑧𝑧 𝒛𝒛)
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
�
𝒙𝒙 �
𝒚𝒚 𝒛𝒛�
𝜕𝜕 𝜕𝜕 𝜕𝜕 𝜕𝜕𝑣𝑣𝑧𝑧 𝜕𝜕𝑣𝑣𝑦𝑦 𝜕𝜕𝑣𝑣𝑥𝑥 𝜕𝜕𝑣𝑣𝑧𝑧 𝜕𝜕𝑣𝑣𝑦𝑦 𝜕𝜕𝑣𝑣𝑥𝑥
= = − �+
𝒙𝒙 − �+
𝒚𝒚 − 𝒛𝒛�
𝜕𝜕𝜕𝜕 𝜕𝜕𝑦𝑦 𝜕𝜕𝑧𝑧 𝜕𝜕𝜕𝜕 𝜕𝜕𝑧𝑧 𝜕𝜕𝑧𝑧 𝜕𝜕𝑥𝑥 𝜕𝜕𝑥𝑥 𝜕𝜕𝑦𝑦
𝑣𝑣𝑥𝑥 𝑣𝑣𝑦𝑦 𝑣𝑣𝑧𝑧
16
The Curl
Example # 1
• Find the curl of 𝐕𝐕 = −𝑦𝑦 𝑥𝑥� + 𝑥𝑥 𝑦𝑦�
= 2𝒛𝒛� 2
1
2
2 1 0 1 2
17
The Curl
Example # 2
• Find the curl of 𝐕𝐕 = 𝑥𝑥 𝑥𝑥� + 𝑦𝑦 𝑦𝑦�
=0 2
1
2
2 1 0 1 2
18
The Curl
Example # 3
• Find the curl of 𝐕𝐕 = 𝑥𝑥 𝑦𝑦�
= 𝒛𝒛�
1
1
2
2 1 0 1 2
19
The Curl
Example # 4
• Find the curl of𝐕𝐕 = −𝑦𝑦 2 𝑥𝑥� + 𝑥𝑥 2 𝑦𝑦�
= 𝟐𝟐 𝒙𝒙 + 𝒚𝒚 𝒛𝒛� 2
1
2
2 1 0 1 2
20
Vector calculus with gradient operator
Products Rules:
1. 𝛁𝛁 𝑓𝑓𝑓𝑓 = 𝑓𝑓 𝛁𝛁𝑔𝑔 + 𝑔𝑔 𝛁𝛁𝑓𝑓
2. 𝛁𝛁 𝐀𝐀 ⋅ 𝐁𝐁 = 𝐀𝐀 × 𝛁𝛁 × 𝐁𝐁 + 𝐁𝐁 × 𝛁𝛁 × 𝐀𝐀 + 𝐀𝐀 ⋅ 𝛁𝛁 𝐁𝐁 + 𝐁𝐁 ⋅ 𝛁𝛁 𝐀𝐀
3. 𝛁𝛁 ⋅ 𝑓𝑓𝐀𝐀 = 𝑓𝑓 𝛁𝛁 ⋅ 𝐀𝐀 + 𝐀𝐀 ⋅ 𝛁𝛁𝑓𝑓
4. 𝛁𝛁 ⋅ 𝐀𝐀 × 𝐁𝐁 = 𝐁𝐁 ⋅ 𝛁𝛁 × 𝐀𝐀 − 𝐀𝐀 ⋅ 𝛁𝛁 × 𝐁𝐁
5. 𝛁𝛁 × 𝑓𝑓𝐀𝐀 = 𝑓𝑓 𝛁𝛁 × 𝐀𝐀 − 𝐀𝐀 × 𝛁𝛁𝑓𝑓
6. 𝛁𝛁 × 𝐀𝐀 × 𝐁𝐁 = 𝐁𝐁 ⋅ 𝛁𝛁 𝐀𝐀 − 𝐀𝐀 ⋅ 𝛁𝛁 𝐁𝐁 + 𝐀𝐀 𝛁𝛁 ⋅ 𝐁𝐁 − 𝐁𝐁(𝛁𝛁 ⋅ 𝐀𝐀)
Second Derivatives:
1. 𝛁𝛁 ⋅ 𝛁𝛁𝑓𝑓 = 𝛁𝛁 2 𝑓𝑓 𝜕𝜕2 𝜕𝜕2 𝜕𝜕2
• 𝛁𝛁2 ≡ + +
𝜕𝜕𝑥𝑥 2 𝜕𝜕𝑦𝑦 2 𝜕𝜕𝑧𝑧 2
2. 𝛁𝛁 × 𝛁𝛁𝑓𝑓 = 0
• 𝛁𝛁2 is called the Laplacian
3. 𝛁𝛁 (𝛁𝛁 ⋅ 𝐀𝐀)
4. 𝛁𝛁 ⋅ 𝛁𝛁 × 𝐀𝐀 = 0
5. 𝛁𝛁 × 𝛁𝛁 × 𝐀𝐀 = 𝛁𝛁 𝛁𝛁 ⋅ 𝐀𝐀 − 𝛁𝛁𝟐𝟐𝐀𝐀 21