Partial derivatives

Partial derivatives differentiate only to the given variable while holding all other variables constant. They can be noted with or . The formal definition of the partial derivative in 2D is:

Mixed partial derivatives

Second partial derivatives are denoted by or . When using the “del” notation (with the symbol) you take derivatives from right to left order; when using the subscript notation, you take derivatives from left to right order.

Second partial derivatives commute, which means the order you take them doesn’t matter. Thus .

The nabla symbol

The nabla symbol represents a “vector” of partial derivative operators:

Scalar-valued functions

A scalar-valued function is a function that always outputs a number for each input, not a vector, such as .

Gradients

The gradient of a scalar-valued function, denoted , is given by a vector containing all the partial derivatives of the function. In two dimensions, it is given by:

In three dimensions, it is similarly given by:

The gradient can be evaluated at a point by evaluating each of the partial derivatives at that point

Directional derivative

The directional derivative is the rate of change along a specific vector and is given by:

Multivariable chain rule

If we have a function , then:

Parametric surfaces

Just as there can be surfaces formed by functions of and , there can be parametric surfaces formed by functions of and . They are denoted and can be differentiated in the same way as normal surfaces, i.e. and .

Vector-valued functions

Vector-valued functions produce a vector for each input, for instance:

Note that vector-valued functions can have components that are functions of , or functions of , in which case its components are parametric functions.

The derivative of a vector-valued function is another vector in all cases. For example, velocity is often given by a vector-valued function where:

Speed is given by the norm of the velocity function:

If the vector-valued function is of one variable, e.g. , then its derivative is a regular derivative . If the vector-valued function is of several variables, e.g. , then it has one partial derivative for each variable, e.g. and .

The same methodology for vector-valued functions applies to vector fields.

Curvature

The curvature of a vector-valued function is given by:

where the double bars indicate normalizing the vector.

Vector fields and scalar fields

Fields are mathematical objects that span space and have a unique value at each point in space. Familiar examples include the electromagnetic field and gravitational field. They are written with the same notation as functions, just usually with a different symbol such as , , or .

Scalar fields, such as temperature, assign a number to each point in space. Vector fields assign a vector to each point in space. A gradient is only defined for a scalar field - the vector-field equivalent of the gradient for vector fields is called the Jacobian, and will be covered later.

Divergence

Divergence, denoted by , represents the tendency of a vector field to flow out or in to a certain point:

  • If vectors that point inwards towards a certain point are bigger than vectors that point outwards at that point, the divergence is negative and we have a sink
  • If vectors that point inwards towards a certain point are smaller than vectors that point outwards at that point, the divergence is positive and we have a source
  • If vectors that point inwards and vectors that point outwards at a certain point are equal in size, the divergence is zero

The divergence of a vector field with components is given by:

Divergence is only defined on vector fields, not on scalar fields.

Curl

Curl, denoted by , represents the tendency of a vector field to rotate around a certain point:

  • Positive curl is a tendency of vectors to rotate counterclockwise around a point
  • Negative curl is a tendency of vectors to rotate clockwise around a point
  • Zero curl is when counterclockwise and clockwise vectors cancel out or if the vectors do not rotate around a point

In 2D, the curl of a vector field is given by:

In 3D, the curl of a vector field is the determinant of a 3 x 3 matrix:

Laplacian

The Laplacian, denoted by , is a vector field formed from the second derivatives of a scalar field. It is given by:

A function is called harmonic if it satisfies . This is a partial differential equation called Laplace’s equation.

Jacobian

The Jacobian is the analogue of the gradient for vector-valued functions. For a vector-valued function with components , the Jacobian is given by:

For a vector valued function of three dimensions, the Jacobian is given by:

The determinant of the Jacobian is calculated just like the determinant of any other matrix. The absolute value of the determinant of the Jacobian tells us about how areas change area around a point:

  • If the determinant is 1, the area remains the same area
  • If the determinant is less than 1, the area contracts
  • If the determinant is greater than 1, the area expands
  • If the determinant is 0, the area contracts infinitely

Tangent plane

The tangent plane is the local linear approximation to a function at a certain point. It is often used to simplify a complicated function when the area being studied is around a certain point.

Tangent plane (explicit functions)

The tangent plane to a function at a point is given by:

Tangent plane (implicit functions)

The implicit tangent plane to a function at a point is given by: