# From Partial Derivatives to Maxwell’s Equations

## 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``````

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

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.

## 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

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

All of your support will be used for maintenance of this site and more great content. I am humbled and grateful for your generosity. Thank you!

 Your generosity and kindness is overwhelming!Donate \$1.99 - Good job!Donate \$4.99 - Keep it up!Donate \$14.99 - Very helpful!Donate \$29.99 - Looking forward to more!