Main content

## Multivariable calculus

### Course: Multivariable calculus > Unit 2

Lesson 11: Divergence and curl (articles)# Curl warmup, fluid rotation in two dimensions

Curl measures the rotation in a fluid flowing along a vector field. Formally, curl only applies to three dimensions, but here we cover the concept in two dimensions to warmup.

## Background

Note: Throughout this article I will use the following convention:

represents the unit vector in the$\hat{\mathbf{\text{i}}}$ -direction.$x$ represents the unit vector in the$\hat{\mathbf{\text{j}}}$ -direction.$y$

## What we're building to

- Curl measures the "rotation" in a vector field.
- In two dimensions, if a vector field is given by a function
, this rotation is given by the formula$\overrightarrow{\mathbf{\text{v}}}({x},{y})={{v}_{1}}(x,y)\hat{\mathbf{\text{i}}}+{{v}_{2}}(x,y)\hat{\mathbf{\text{j}}}$

## Rotation in fluid flow

Have yourself a nice swirly vector field:

This particular vector field is defined with the following function:

Now I want you to imagine that this vector field describes a fluid flow, perhaps in a chaotic part of a river. The following video shows a simulation of what this might look like. A sample of fluid particles, shown as blue dots, will flow along the vector field. This means that at any given moment, each dot moves along the arrow it is closest to. Focus in particular on what happens in the four circled regions.

Amidst all the chaos, you might notice that the fluid is rotating within the circled regions. In the left and right circles, the rotation is counterclockwise, and in the top and bottom circles, the rotation is clockwise.

**Key Question**: If we are given a function that defines a vector field, along with some specific point in space,$\overrightarrow{\mathbf{\text{v}}}(x,y)$ , how much does a fluid flowing along the vector field rotate at the point$({x}_{0},{y}_{0})$ ?$({x}_{0},{y}_{0})$

The vector calculus operation

**curl**answer this question by turning this idea of fluid rotation into a formula. It is an operator which takes in a function defining a vector field and spits out a function that describes the fluid rotation given by that vector field at each point.Technically, the curl operation only applies to three dimensions. You can see what that means and how it is computed in the next article, but in this article, we warm up by describing fluid rotation in two dimensions with a formula.

## Capturing two-dimensional rotation with a formula

One of the simplest examples of a vector field which describes a rotating fluid is

Here's what it looks like.

Animated, all the fluid particles just go in circles.

In some sense, this is the most perfect example of counterclockwise rotation, and you can understand the general formula for rotation in a two-dimensional vector field just by understanding why the function $\overrightarrow{\mathbf{\text{v}}}(x,y)=-y\hat{\mathbf{\text{i}}}+x\hat{\mathbf{\text{j}}}$ gives counterclockwise rotation.

## The $\hat{\mathbf{\text{i}}}$ -component

First, let's understand why the $-y\hat{\mathbf{\text{i}}}$ component suggests counterclockwise rotation. Imagine a small twig sitting in our fluid, oriented parallel to the $y$ -axis. More specifically, let's say one end is at the origin $(0,0)$ , and the other is at the point $(0,2)$ . What does the $-y\hat{\mathbf{\text{i}}}$ component of the vector field imply for the fluid velocity at points on this twig?

This means the velocity at the top of the twig is $-2\hat{\mathbf{\text{i}}}$ , a leftward vector, while the velocity at the bottom of the twig is $0$ .

For the twig, this means the important factor for counterclockwise rotation is that $\hat{\mathbf{\text{i}}}$ -component of a vector attached to a point $({x}_{0},{y}_{0})$ decreases as ${y}_{0}$ increases.

**vectors point more to the left as we move up the vector field**. Said with a few more symbols, the important point here is that theSaid with even more symbols,

Let's generalize this idea a bit.

**Question**: Consider a more general vector field.

The components ${{v}_{1}}$ and ${{v}_{2}}$ are any scalar-valued functions. If you place a small twig at some point $({x}_{0},{y}_{0})$ , oriented parallel to the $y$ -axis, how can you tell if the twig will rotate just by looking at ${{v}_{1}},{{v}_{2}}$ and $({x}_{0},{y}_{0})$ ?

**Answer**: Look at the rate of change of as${{v}_{1}}$ varies near the point of interest,${y}$ :$({x}_{0},{y}_{0})$ If this is negative, it indicates that vectors point more to the left as increases, so rotation would be counterclockwise. If it is positive, vectors point more to the right as${y}_{0}$ increases, indicating a clockwise rotation.${y}_{0}$

## The $\hat{\mathbf{\text{j}}}$ -component

Next, let's see why the $x\hat{\mathbf{\text{j}}}$ component of the original vector field suggests counterclockwise rotation as well. This time, imagine a twig which is parallel to the $x$ -axis. Specifically, put one end of the twig at the origin $(0,0)$ , and put the other at the point $(2,0)$ .

The vector attached to the origin is $0$ , but the vector attached to the other end at $(2,0)$ is $2\hat{\mathbf{\text{j}}}$ , an upward vector. Therefore, the fluid pushes the right end of the stick upwards, and the left end experiences no force, so there will be a counterclockwise rotation.

For this second twig, $y$ component of a vector attached to a point $({x}_{0},{y}_{0})$ increases as ${x}_{0}$ increases.

**the vertical component of vectors increases as we move right, suggesting counterclockwise rotation**. That is to say, theIn the case of a more general vector field function,

we can measure this effect near a point $({x}_{0},{y}_{0})$ by looking at the change in ${{v}_{2}}$ as ${x}$ changes.

## Combining both components

Putting these two components together, the rotation of a fluid flowing along a vector field $\overrightarrow{\mathbf{\text{v}}}$ near a point $({x}_{0},{y}_{0})$ can be measured using the following quantity:

When you evaluate this, a $({x}_{0},{y}_{0})$ , a negative quantity indicates the opposite, clockwise rotation. If it equals $0$ , there is no rotation in the fluid around $({x}_{0},{y}_{0})$ . If you are curious about the specifics, this formula gives precisely $({x}_{0},{y}_{0})$ .

**positive**number will indicate a general tendency to rotate**counterclockwise**around*twice*the angular velocity of the fluid nearSome authors will call this the "$\overrightarrow{\mathbf{\text{v}}}$ . This isn't standard, but let's write this formula as if "

**two-dimensional curl**" of**2d-curl**" was an operator.## Example: Analyzing rotation in a 2d vector field using curl

**Problem**: Consider the vector field defined by the function

Determine whether a fluid flowing according to this vector field has clockwise or counterclockwise rotation at the point

**Step 1**: Compute the

**Step 2**: Plug in the point

**Step 3**: Interpret. How does the fluid tend to rotate near this point?

Let's watch a sample of particles in this fluid flow:

The point towards the top where all the particles congregate corresponds with $p=(0,{\displaystyle \frac{\pi}{2}})$ . Particles rotate counterclockwise in this region, which should be consistent with your $\text{2d-curl}$ calculations.

## Summary

- Curl measures the "rotation" in a vector field.
- In two dimensions, if a vector field is given by a function
, this rotation is given by the formula

## On to the third dimension!

The true curl operation, covered in the next article, extends this idea and this formula to three dimensions.

## Want to join the conversation?

- In examining the i component we have considered vector v= -yi+xj and we examined the change of x component of v due to change in y value as x co-ordinate of v is dependent on y only.

And we have considered a general vector v=v1 i+v2 j

And we have still considered change of v1 with respect to y only and not with respect to x.

In general vector the x co-ordinate of v (i.e v1 )may also depend on x values,so why didn't we consider the change of v1 with respect to x.(5 votes)- Really good question. The change of v1 with respect to x won't influence the "rotational" component that we are trying to measure. Think about the simple case v1(x, y) = x, and think about how this influences the rotation in the vector field.(12 votes)

- does anyone have any clues as to why that formula is twice the angular velocity?(5 votes)
- Good question. We have counted the rotation twice when we added the horizontal and vertical components: d(v2)/dx - d(v1)/dy. Therefore, the actual angular velocity will be the average of the two components, or half of the 2d curl value. This is explained in more detail in the 3D curl article.(4 votes)

- can anyone explain to me why the divergence of the curl of vector field always equals zero and what does it mean?(2 votes)
- Recall that curl F = ∇ x F = <dh/dy - dg/dz, df/dz - dh/dx, dg/dx - df/dy> and that divergence F = ∇ * F. If we apply the divergence to the curl F we get

∇ * (∇ x F)

= <d/dx, d/dy, d/dz> * <dh/dy - dg/dz, df/dz - dh/dx, dg/dx - df/dy>

= dh/(dx dy) - dg/(dx dz) + df/(dy dz) - dh/(dx dy) + dg/(dx dz) - df/(dy dz)

= 0

This can be interpreted as the spread of the rotation of vectors around a point is 0.(2 votes)

- Thanks for this article. I have found it very helpful in my study of curl in Calculus! I have a question about the answer that is Pi/2 + 1. What does this number mean physically? I understand that result of the formula of curl gives us the amount of how much a particle rotates in the vector field. So, does Pi/2 + 1 mean, it rotates at 2.57 ... (what?)(1 vote)
- Radians.

Remember, angles aren't "real" in the sense that they get physical units. But perhaps you prefer degrees?(3 votes)

- (x,y)=[−y x]=−yi^+xj^ why?

why are x and y flipped? is it because curl is rotation, hence x and y flipped?(1 vote)- v(x, y) = [-y x] is defining a function v that maps (x, y) to (-y, x). It's the same notation as f(x, y) = (-y, x), only the name of the function is now v. I hope this helps.(1 vote)

- Say we have a vector field such that at (1,2) the vector representing the vector field is 0i+0j. Wouldn't the curl at that point(1,2)be zero? why or why not? Since the net rotational motion at that point of a fluid flow is zero(1 vote)
- Curl is not a property of the fluid flow at a point but the property of average fluid flow "around" that point think of it as you are in the eye of a cyclone. No air is pushing you but still it is curling around you. So at the point you are asking curl might not be zero.(0 votes)