# How to Calculate Divergence and Curl

Two Parts:DivergenceCurl

In vector calculus, divergence and curl are two important types of operators used on vector fields. Because vector fields are ubiquitous, these two operators are widely applicable to the physical sciences.

## Steps

### Part 1 Divergence

- 1
**Understand what divergence is.**Divergence is a measure of source or sink at a particular point. – In other words, how much is flowing into or out of a point. Hence, it is only defined for vector fields and outputs a scalar. Below is an example of a field with a positive divergence.- The divergence is recognized by or , where the dot signifies the similarity to taking a dot product.

- 2
**Take the dot product of the partial derivatives with the components of , then sum the results.**- In Cartesian coordinates, the divergence of a function is as follows.

#### Example

- 1
**Define the function:** - 2
**Take the partials of and multiply them with the respective components of like you would a dot product.** - 3
**Sum the results.**- As you can see, we have mapped from a vector field to a scalar field.

### Part 2 Curl

- 1
**Understand what curl is.**The curl, defined for vector fields, is, intuitively, the amount of circulation at any point. The operator outputs another vector field. A whirlpool in real life consists of water acting like a vector field with a nonzero curl. Above is an example of a field with negative curl (because it's rotating clockwise).- The curl is recognized by or , where the times symbol signifies the similarity of taking a cross product.

- 2
**Set up the determinant.**- Here, we see why the curl operator is denoted with a . – It is similar to how we would normally denote the cross product of two vectors.

- 3
**Find the determinant of the matrix.**Below, we do it by cofactor expansion (expansion by minors).

#### Example

- 1
**Define the function:** - 2
**Set up the matrix.**- where and

- 3
**Evaluate the determinant.** - 4
**Arrive at the solution.**- Note that we have mapped to another vector field.

## Tips

- There are several identities that are useful and worth memorizing. Here is a partial list of the more important ones, the second derivatives. You can prove them by direct computation.
- The Laplacian is a compound operator and is defined as the divergence of the gradient We write out the Laplacian in Cartesian coordinates below. The operator is especially useful in physics and engineering. For example, the potential of an electrostatic field can be described using Poisson's equation, which involves the Laplacian.

## Article Info

Featured Article

Categories: Featured Articles | Calculus