## Vectors in 3 dimensions

In this blog, I explained some of the basics of vectors. I only dealt with 2-dimensional vectors, but of course we live in a 3-dimensional world. So, to fully specify a vector in 3-dimensions we need to add a third component. Usually, but not always, we can use the x, y and z-components of the vector, and so can write any vector in terms of its x, y and z-components.

For example, let us suppose we have some force which is in 3 dimensions, then we can write it in terms of its Cartesian components as , where are the unit vectors in the (x,y,z) directions respectively, and and are the x, y and z-components respectively (in this figure the unit vectors and are labelled and , which is an alternative nomenclature ).

Sometimes, we may be interested in how much the vector is changing with position. A good example of this might be the force on a charged particle produced by a bar magnet. We have all seen the so-called “field pattern” produced by the magnetic field of a bar magnet. We sprinkle iron filings on a piece of card, put the bar magnet under the card, and the iron filings align along the field lines.

We might be interested in how much the force due to this magnetic field varies with position. To make things easier, if we only consider the change in the strength of the force on the surface of the card, then we can ignore any change in the vertical dimension, which we will call the z-dimension.

How much a quantity changes with position can be determined by taking the derivative with respect to x, with respect to y and with respect to z, our three spatial directions.

## The vector differential operator

The *vector differential operator* (often called *del*) is the mathematical operator which determines how much vectors change in each of their 3 spatial components. Mathematically it can be written as the *partial derivative* in each of the 3 spatial dimesions, so usually

if we are using Cartesian coordinates. The *partial derivative* is the derivative with respect to one of the variables when the other variables are kept constant. For example, suppose we had a force field which could be described by the following (completely arbitrary) equation

What would be the partial derivative with respect to of this force?

The partial derivate with respect to would be

and the partial derivate with respect to would be

.

So, finally, we can write .

The term we use for a quantity like is the *gradient* (or *grad*) of the vector. This word derives from the fact that, in two dimensions, if we have , then the gradient of the function (the slope of the function) is just given by . So the grad is just the three (or more) dimensional equivalent of taking the derivative of a two dimensional function like .

As I will explain in a future blog, the vector differential operator is a very powerful and important operator in mathematics and physics. It forms the basis of *vector calculus* and can be combined in two other ways with a vector to derive the *divergence* of the vector and its *curl*.

on 22/08/2013 at 06:04 |The 10 best physicists – no. 5 – James Clerk Maxwell | thecuriousastronomer[…] The symbol is known as the vector differential operator, or del, and I have explained del in this blog. […]

on 10/03/2014 at 09:29 |anonymousCould you explain the difference between gradient of F in the above explanation vs this reference http://en.wikipedia.org/wiki/Gradient#Gradient_of_a_vector ?

on 10/03/2014 at 09:45 |RhEvansThey are the same, the wikipedia page just writes it in a different form mathematically.