Multivariable Calculus: Gradient, Divergence, and Curl

by blackspanielgallery

The del operator is the key to being able to find the gradient, divergence, and curl. It all depends on how it is applied to a vector field.

Multivariable Functions

Our world is a multidimensional world, so it is often necessary to work with functions of more than one variable. An example of a multivariable function is f(x,y,z) = 2xy + xz. It is easy to realize that length, width, and height might be represented by three variables.

When considering the rate of change of a multivariable function in one direction the method is to take a partial derivative. For those unfamiliar with partial derivatives, the method is to hold all variables, except the variable the partial derivative is being taken with respect to, as constants.

The symbol for a partial derivative of f(x,y,z) with respect to x is given by ∂f(x,y,z)/∂x. Using the above function as an example ∂f(x,y,z)/∂x = 2y + z, ∂f(x,y,z)/∂y = 2x, and ∂f(x,y,z)/∂z = x.

The Del Operator in Cartesian Coordinates

The del operator is a key part of the gradient, the divergence, and the curl. The del operator uses partial derivatives and unit vectors. The symbol for the del operator is an inverted triangle.

The del operator is treated like a vector.

The expression for the del operator in Cartesian coordinates is given in the intro image.

The Gradient in the Cartesian Coordinate System

A gradient shows the difference in the value of a field. A simple case is the temperature gradient as one moves from one place to another. Connecting points of like temperature gives a contour image of points of like temperature. Another example is a map with contours showing points of given elevations. The gradient is the distances between such contour lines of equal elevation. The gradient is the distance for a given change of a functions value.

In physics forces often change value depending on location, or how fast the magnitude of the is changing. The gradient is the distance between surfaces of like values. Here the contour lines must be replaced with surfaces since a force field often extends in three dimensions.

The gradient is defined as the rates of change in the field in three dimensions. This is in accordance with the del operator being applied to a function.

The mathematical expression for the gradient of a function, f(x,y,z), in a vector field is by applying the del operator to the function, <∂ f(x,y,z)∂x, ∂ f(x,y,z)∂y, ∂ f(x,y,z)∂z>. This shows the changes in each of the three orthogonal directions of the Cartesian coordinate system.

Gradient

Using the Del Operator

Vector Field

Functions of Vectors

A vector field has vector components of a vector V of <Vx , Vx, Vz>. Both the divergence and curl are defined using a vector field.

The Gradient

Practice

The Divergence in Cartesian Coordinates

Flow of the Vector into or Out a Three-Dimensional Space

The divergence of a vector field is the scalar value that represents the flux. An outward flux is said to be positive. An inward flux is said to be negative.

As an example, consider the velocity of a fluid in a pipe. If the pipe gradually narrows the fluid must speed up to get through the constriction. The velocity vector field has an outward flux as the fluid nears the constriction. After passing the constriction the pipe gradually widens. The fluid flow slows. In the slowing of the flow the flux of the velocity field is negative.

The divergence is formally defined as the scalar product of the del operator and the vector function.

The expression of the divergence in a vector field is given by <∂/∂x, ∂/∂y, ∂/∂z> ∙ V. This is equal to ∂Vx/∂x + ∂Vx/∂y + ∂Vz/∂z.

The Curl

Twist in a Vector Field

The curl gives the magnitude and direction of rotation in an infinitesimal distance from a point in the vector field. The curl is a vector where the direction is the direction of the axis of rotation and the magnitude is the rate of rotation.

The method for calculating the curl is to take the cross product of the del operator with the vector field.

Curl = del × F = <∂Vy/∂y - ∂Vz/∂z, ∂Vz/∂z - ∂Vx/∂x, ∂Vxx - ∂Vy∂y>

The Curl

Vector Calculus

Divergence and Curl

Vector Fields

Other Coordinate Systems

In physics vector fields are often encountered with cylindrical symmetry, such as the electrical and magnetic fields near a long conducting wire. Spherical vector fields also occur, such as the gravitation field near a sphere such as a celestial body.

 

Cylindrical coordinates are (rφz). The del operator for cylindrical coordinates is given by the expression <∂/∂r, (1/r)∂/∂φ, ∂/∂z>.

 

Spherical coordinates are (r, θφ). The del operator for spherical coordinates is given by the expression <∂/∂r, (1/r)∂/∂θ, (1/r sinθ)∂/∂φ>.

Disclosure

This article contains affiliate links to Amazon and links to ads.  I earn a small amount from these links.

Updated: 12/29/2025, blackspanielgallery
 
Thank you! Would you like to post a comment now?
12

Comments

Only logged-in users are allowed to comment. Login
blackspanielgallery 8 days ago

Since we are experiencing an occurrence that repeats, but was last observed before recorded history, and even humans, we can only conjecture from what we have determined. The periodic change was discovered by seafloor spreading as plates separate along plate boundaries. Knowing the rate of plate movement, and finding magnetic reversals in the rocks, the understanding of magnetic field reversal came about. Later, magnetic moment in volcanic rocks indicate that the last reversal happened quickly while lava cooled from an eruption. cURRENT COMPUTER PROGRAMS INDICATE THE FLIP IS NOT OVER THE ENTIRE PLANET ALL AT ONCE, AND WE ARE CURRENTLY EXPERIENCING LOCALIZED FLIPS. When will the main reversal happen id conjecture.

DerdriuMarriner 11 days ago

Thank you for your comment in answer to my previous observation and question.

Your answer advises us that magnetic-field reversal perhaps arises in "about 1000 years, but recent observations indicate maybe sooner."

Do we know about how much -- ;-[ -- sooner?

blackspanielgallery 13 days ago

We do not know. The magnetic field reverses on about a 180000 year cycle, but it happens quickly. Rocks from a volcano showed the shift happens quickly. It does not happen over the Earth all at once. Since it has not happened in recorded history we do not know what to expect. Best guess it is should happen in about 1000 years, but recent observations indicate maybe sooner.

DerdriuMarriner 13 days ago

Thank you for your comment in answer to my previous observation and question.

Gravity changing by distance somehow caused me to consider magnetic fields changing over time.

Internet news describe the magnetic field developed over South America as displaying some weakening, in part of a regular strengthened, weakening, re-established magnetic field.

Might that mess the regular migrations of north- to south-flying, south- to north-flying birds?

blackspanielgallery 16 days ago

Think about gravity. It points to the center of the Earth. The farther out something is the lesser force from the Earth's gravity is experienced. But at the same distance out the magnitude of the force is the same, regardless of location, only the distance is important.

DerdriuMarriner 18 days ago

The second subheading advises us that "In physics forces often change value depending on location, or how fast the magnitude of the is changing."

Which of location and magnitude is more influential?

You might also like

Buttons from the Rag Bag! Button Jar Math Activities

Save the buttons from discarded clothing and recycle them as fun, hands-on ma...

Polar Coordinate System

The polar coordinate system makes many problems in mathematics easy to solve....


Disclosure: This page generates income for authors based on affiliate relationships with our partners, including Amazon, Google and others.
Loading ...
Error!