Skip to content

KZHU.ai πŸš€

Into the Unknown

Menu
  • πŸ“ˆ Discrete Optimization
    • Mathematics
    • Computer Science
    • Cryptography
    • C++
  • βš›οΈ Quantum Computing
    • Physics
    • Blockchain
  • πŸ€– Machine Learning
    • TensorFlow
    • Python
  • πŸ›° Data Science
    • Statistics
    • Matlab
  • 🌦 Hybrid Cloud
    • Kubernetes
    • Golang
    • Web
  • πŸ“ˆ Business
    • MBA @ Gies
    • Six Sigma
  • 🏦 Finance
    • Law
    • Economics
Menu
Partial derivatives, Least squares, Chain rule, Triple product rule

From Partial Derivatives to Maxwell’s Equations

Posted on November 29, 2021October 22, 2022 by keslerzhu

Table of Contents

Toggle
  • Partial derivatives
    • Chain Rule
    • Triple Product Rule
  • Gradient
  • Del operator βˆ‡
  • Divergence
  • Curl
  • Laplacian operator βˆ‡2
  • Electromagnetic waves
  • My Certificate
  • Related Quick Recap

Partial derivatives

Partial derivative is to differentiate functions of multiple variables. Assume a function f = f(x, y), you are differentiating f with respect x, that is the usual definition of a derivative of a function of one variable, but y is held constant. There is something called mix partial. It does not depend on the order that you take derivative. One important use is Taylor series. We can expend functions in terms of their partial derivatives.

Another important application of using partial derivatives is to find minimum of a function, e.g.: minimizing the sum of the squares. We set the partial derivatives with respect to variables to 0. That will give us a system of equations. Then we can solve by any method you like.



Chain Rule

Total differential tells you how function f is changing when you change both its variables, say x and y.

df = f(x + dx, y + dy) - f(x, y)

Total differential can also be written in partial derivatives.

df = βˆ‚f/βˆ‚x dx + βˆ‚f/βˆ‚y dy

Suppose, x and y are functions of t, when we got chain rule:0

df/dt = βˆ‚f/βˆ‚x dx/dt + βˆ‚f/βˆ‚y dy/dt

Triple Product Rule

Assume we have a function f with 3 variables x, y, and z, f(x, y, z) = 0, but they are related x = x(y, z), z = z(x, y):

βˆ‚x/βˆ‚z βˆ‚z/βˆ‚x = 1           # reciprocity relation
βˆ‚x/βˆ‚y βˆ‚y/βˆ‚z βˆ‚z/βˆ‚x = -1    # triple product rule
Gas law, Gradient, Divergence

Gradient

The gradient takes the partial derivative and puts them in a vector form. It shows up in all the fundamental equations of nature. The gradient is intrinsically a three dimensional object.

f = f(x, y, z)
df = βˆ‚f/βˆ‚x dx + βˆ‚f/βˆ‚y dy + βˆ‚f/βˆ‚z dz
= (βˆ‚f/βˆ‚x i + βˆ‚f/βˆ‚y j + βˆ‚f/βˆ‚z k) βˆ™ (dx i + dy j + dz k)
= βˆ‡f βˆ™ dr

df is maximum when βˆ‡f is parallel to dr. If you want to get the maximum change of f, you have to vary your motion in the direction of the gradient. So the direction of the gradient gives you the direction of the maximum change of f, when you move a little bit dr.

Del operator βˆ‡

Differential operator “del” (also called nabla symbol):

βˆ‡ = i βˆ‚/βˆ‚x + j βˆ‚/βˆ‚y + k βˆ‚/βˆ‚z

Divergence

Divergence is fundamental to Maxwell’s equations. It means you have a source of something that is going out. We have a vector field:

u = u1(x, y, z) i + u2(x, y, z) j + u3(x, y, z) k

Divergence of u is:

βˆ‡ βˆ™ u = (i βˆ‚/βˆ‚x + j βˆ‚/βˆ‚y + k βˆ‚/βˆ‚z) βˆ™ (i u1 + j u2 + k u3)
= βˆ‚u1/βˆ‚x + βˆ‚u2/βˆ‚y + βˆ‚u3/βˆ‚z

An important example is the divergence of the electric field from a point charge is zero.

βˆ‡ βˆ™ (r / |r|3) = 0, |r| β‰  0
Curl, Laplacian, Vector derivative identities

Curl

If a vector field has a non-zero curl, it usually means that there’s some swirling motion, some vorticity in the vector field. The curl of a vector field is del cross u, the vector product, which can be calculated using 3 by 3 determinant.

βˆ‡ Γ— u = (i βˆ‚/βˆ‚x + j βˆ‚/βˆ‚y + k βˆ‚/βˆ‚z) Γ— (i u1 + j u2 + k u3)
= (βˆ‚u3/βˆ‚y - βˆ‚u2/βˆ‚z) i + (βˆ‚u1/βˆ‚z - βˆ‚u3/βˆ‚x) j + (βˆ‚u2/βˆ‚x - βˆ‚u1/βˆ‚y) k

An important example is the curl of gradient id zero.

βˆ‡ Γ— (βˆ‡f) = 0

and divergence of a curl is zero:

βˆ‡ βˆ™ (βˆ‡ Γ— u) = 0

Laplacian operator βˆ‡2

Laplacian operator is defined as below. It can act on both a scalar field or a vector field. It shows up in a lot of PDEs.

βˆ‡2 = βˆ‡ βˆ™ βˆ‡ = βˆ‚2/βˆ‚x2 + βˆ‚2/βˆ‚y2 + βˆ‚2/βˆ‚z2

Electromagnetic waves

Light waves, radio waves, x-rays are all waves consisting of electric fields E and magnetic fields B. Free space means there is no charges, no currents. Maxwell’s equations in free space can be written:

βˆ‡ βˆ™ E = 0
βˆ‡ βˆ™ B = 0
βˆ‡ Γ— E = - βˆ‚B/βˆ‚t
βˆ‡ Γ— B = ΞΌ0Ξ΅0 βˆ‚E/βˆ‚t

To derive electromagnetic waves, we condense these equations into a single equation for the electric field.

Electromagnetic waves, Maxwell's equations


My Certificate

For more on From Partial Derivatives to Maxwell’s Equations, please refer to the wonderful course here https://www.coursera.org/learn/vector-calculus-engineers

My #81 course certificate from Coursera

Related Quick Recap

Vector Calculus: Basics

I am Kesler Zhu, thank you for visiting my website. Check out more course reviews at https://KZHU.ai

American Contract Law I Andrew Ng Anna Koop Brenda Gunderson Christopher Millard Computer Communications Specialization Cryptography Economics of Money and Banking Evgenii Vashukevich Garud Iyengar Ivan Vybornyi Jeffrey Chasnov John Daily Jonathan Katz Kevin Webster Ling-Chieh Kung Machine Learning: Algorithms in the Real World Martin Haugh Mathematics for Engineers Specialization Matthew Hutchens Michael Donohoe Michael Fricke Microsoft Azure Fundamentals AZ-900 Exam Prep Specialization Operations Research (3): Theory Perry Mehrling Petro Lisowsky Physical Basics of Quantum Computing Practical Reinforcement Learning Rebekah May Search Engine Optimization (SEO) Specialization Sergey Sysoev Statistical Thermodynamics Specialization Statistics with Python Specialization Taxation of Business Entities I: Corporations TensorFlow 2 for Deep Learning Specialization U.S. Federal Taxation Specialization Wounjhang Park Xiaobo Zhou Yi Wang БысоСв Π‘Π΅Ρ€Π³Π΅ΠΉ Π‘Π΅Ρ€Π³Π΅Π΅Π²ΠΈΡ‡

Subscribe to our newsletter!

© 2025 KZHU.ai πŸš€ | Powered by Superbs Personal Blog theme

Privacy Policy - Terms and Conditions