# How to derive the Divergence formula in Cylindrical and Spherical?

Divergence of the vector field is an important operation in the study of Electromagnetics and we are well aware with its formulas in all the coordinate systems. Generally, we are familiar with the derivation of the Divergence formula in Cartesian coordinate system and remember its Cylindrical and Spherical versions intuitively. This article explains the step by step procedure for deriving the Deriving Divergence in Cylindrical and Spherical coordinate systems.

## What is Divergence of vector field?

Divergence of a vector field is a measure of the “outgoingness” of the field at that point. If more and more field lines are sourcing out, coming out of the point then we say that there is a positive divergence. While if the field lines are sourcing in or contracting at a point then there is a negative divergence. The uniform vector field posses a zero divergence. Go through the following article for complete discussion of the Divergence of the vector field.

*What is the Divergence of vector field?*

## Divergence formulas

#### Divergence formula in Cartesian

#### Divergence formula in Cylindrical

#### Divergence formula in Spherical

#### Derivation for the Divergence in Cartesian

The divergence formula in cartesian coordinate system can be derived from the basic definition of the divergence. Go through the following article for intuitive derivation.

*The formulas of the Divergence with intuitive explanation!*

## Deriving Divergence in Cylindrical and Spherical

Let’s talk about getting the divergence formula in cylindrical first. Later by analogy you can work for the spherical coordinate system.

As read from above we can easily derive the divergence formula in Cartesian which is as below.

Now let me present the same in Cylindrical coordinates.

It is quite obvious to think that why some extra terms like (1/ρ) and ρ are present in first and second terms. Where do they come from? What is the logic behind them. Because thinking intuitively, one might expect the formula similar to cartesian one. We know, Cartesian is characterized by x, y and z while Cylindrical is defined by ρ, φ and z. So one can think of getting partial derivatives w.r.t. ρ, φ and z instead of x, y and z and A_{ρ}, A_{φ} and A_{z} instead of A_{x}, A_{y} and A_{z}. Right?

But it is not like that. The answer for this can be found in the steps for deriving the divergence in cylindrical system. Actually we can reach up to the result by two approaches.

#### Approach 1 for deriving the Divergence in Cylindrical

In this approach, you start with the divergence formula in Cartesian then convert each of its element into the cylindrical using proper conversion formulas. The partial derivatives with respect to x, y and z are converted into the ones with respect to ρ, φ and z. The x, y and z components of the vector are equivalently written in terms of ρ, φ and z components. But, for deriving Divergence in Cylindrical and Spherical, I am going to explain with another approach discussed below.

#### Approach 2 for deriving the Divergence in Cylindrical

We know that the divergence of the vector field is given as

Here ∇ is the del operator and A is the vector field. If I take the del operator in cylindrical and dotted with A written in cylindrical then I would get the divergence formula in cylindrical coordinate system.

In cylindrical coordinates, any vector field is represented as follows:

The Cylindrical del operator is as follows

Read here: – *How to convert the Del operator from Cartesian to Cylindrical?*

So let’s take the dot product.

Be careful. This is not the simple dot product consisting of the multiplication of the respective components. You have to take an account of the derivative. For example let us consider the first term,

Let us put dot product outside and consider the derivative first.

Now consider the first derivative,

It is simplified using the product rule of the derivative.

Don’t assume that derivatives of the unit vectors are equal to zero or keep out of the derivation as a constant. No. Because cylindrical and spherical unit vectors are not universally constant. Though their magnitude is always 1, they can have different directions at different points of consideration. So unlike the cartesian these unit vectors are not global constants. I am going to cover the derivatives of the unit vectors in the independent article. But as if now, let us just use their results as follows:

So let us consider the complete terms together,

Now, we know that,

The highlighted terms can be rewritten for consistency as follows

Which is our required divergence operator in cylindrical. Similar steps can be followed for deriving the Divergence in Spherical.

*Suggested Community: Electromagnetics for GATE & ESE*

Tag:Electromagnetism