Partial Derivatives

Suppose we are given a function f:2, written in terms of components by f(x,y) for each (x,y)2. Now let the second coordinate remain some arbitrary fixed value y=b. This determines a function f(x,b) of one variable, x, for each possible chosen b.

We can take the derivative of f(x,y0) in x just as any other function of x:

ddxf(x,b)=limh0f(x+h,b)f(x,b)h.

The resulting function of x may be considered for various possible values of b, i.e. the variation may be restored. This function of both x and y is called the partial derivative of f with respect to x. As with ordinary derivatives, a variety of notations is used:

fx(x,y)=xf(x,y)=fx(x,y)=limh0f(x+h,y)f(x,y)h.

The new symbol ‘ ’ is called “partial” and should be written differently from ‘ d ’. This symbol indicates the function’s dependence on additional variables.

Functions of several variables may have partial derivatives in each of their variables. Thus, for f above we also have fy or fy.

By interpreting the function f(x,b) as the “trace” of the function f(x,y) at a fixed value y=b, one sees that the partial derivative gives the slope of the curve formed as the cross-section of the plane y=b with the graph of f, namely the surface z=f(x,y): Similarly for the partial fy and the trace x=a:

One can iterate partial derivatives and consider higher partials in the obvious manner. The notation fxy indicates the “mixed partial” taken in x first:

fxy=y(fx)=2fyx.

In principle, the double partials fxy and fyx could be different, but for nice functions they do agree by Clairaut’s Theorem:

Clairaut’s Theorem

Provided fxy and fyx exist and are continuous on a region , then fxy=fyx on that region.

(Caveat: in the theorem, should be ‘open’ topologically: it should have the same dimension as the background and not include its boundary.)

Example

Partial derivatives of a monomial

Problem: Compute the partial derivatives of first and second order of the function f(x,y)=x3y5. Solution: We have fx=3x2y5, fy=5x3y4, fxy=fyx=15x2y4, 2fx2=6xy5, fyy=20x3y3.

Exercise 09A-01

Partial derivatives of a composite

Let f(x,y)=sin(x1+y). Compute fx and fy.

Exercise 09A-02

Evaluate partial with four variables

Let

f(x,y,z,w)=exz+yz2+w.

Calculate fz(0,0,1,1).

Exercise 09A-03

Higher order partials

Let f(x,y,z)=x3+y2ex.

  • (a) Calculate the second-order partial derivatives of f.
  • (b) Calculate fxyy.
Exercise 09A-04

Clairaut: choose the order wisely!

Let f(x,y,z,w)=x3w2z2+sin(xyz2). Compute fzzwx in your head. (Explain it on paper!)

Continuity and differentiability: more complex in 3d!

The concepts of continuity and differentiability are more complicated in 3d due to potential incompatibilities of directionality that are a function of the x and y relationship. z=f(x,y)=xyx2+y2 z=f(x,y)=2xy(x+y)x2+y2

Linear approximation

There is a relation between the concepts of linear approximation, partial derivative, tangent plane, and differentiability. This relation is contained in a function defined in terms of f(x,y):

Linear approximation function

L(x,y)=f(a,b)+fx(a,b)(xa)+fy(a,b)(yb).

The linear approximation function includes both partial derivatives fx and fy. The set of points satisfying z=L(x,y) defined by the above equation, namely the graph of L(x,y), is the tangent plane. Lastly, the function f(x,y) is said to be differentiable when:

f(x,y)=L(x,y)+(xa)ε1+(yb)ε2,

with two functions ε1 and ε2 satisfying ε1,ε20 as (x,y)(a,b).

If f(x,y) is not differentiable, then the linear approximation may be a bad approximation.

Linear approximation in 2d

Remember that for a function f(x) of a single variable, we have the linear approximation:

L(x)=f(a)+f(a)(xa).

The tangent line to f at x=a is given by y=L(x), and f is considered differentiable when f(x)=L(x)+(xa)ε such that ε0 as xa:

(f(x)f(a)xaf(a))=ε0 as xaiff f(x) exists at a.

Tangent plane via tangent lines

How do we know that the graph of L(x,y) gives the tangent plane?

The tangent vector to the trace z=f(x,b) at x=a is given by ddx(x,b,f(t,b))|a=(1,0,fx(a,b)). So the tangent line is given by:

𝐪(a,b)(t)=(a,b,f(a,b))+t(1,0,fx(a,b))=(a+t,b,f(a,b)+tfx(a,b)).

These points satisfy z=L(x,y). The graph z=L(x,y) must be the tangent plane because it is the unique plane such that the tangent lines of the trace curves f(x,b) and f(a,y) lie in this plane.

Taylor series and linear approximation

Linear approximation gives the first two terms of the Taylor series of a function, and the remainder term, captured in ε, must limit to zero when the function is differentiable:

f(x)=f(a)+f(a)(xa)+12!f(a)(xa)2+=f(a)+f(a)(xa)+ε(xa).

If f agrees with its Taylor series, then:

ε(x)=12!f(a)(xa)+13!f(3)(a)(xa)2+14!f(4)(xa)3+

Differentials

Some authors use the mnemonic notation of finite differentials for applications of linear approximation. These are written as dx, dy, dz, df, etc., even though they are not infinitesimals. Their usage is according to the following kind of rules:

df=fxdx+fydy.

Example

Tangent plane to paraboloid

Problem: Find the equation of the plane tangent to the paraboloid z=2x2+y2 at (x,y,z)=(1,1,3). Solution: Set f(x,y)=2x2+y2. Compute fx=4x, fy=2y. So fx(1,1)=4, fy(1,1)=2, and the linear approximation is given by:

L(x,y)=3+4(x1)+2(y1).

The tangent plane is found by setting z=L(x,y).

Exercise 09B-01

Tangent plane to a graph

Let f(x,y)=xy3+x2. Find the tangent plane to the graph of f(x,y) at the point (x,y)=(2,2).

Exercise 09B-02

Linear approximation

Use a linear approximation to estimate the value of (3.99)3(1.01)4(1.98)1.

  • (a) Write this using a function L(x,y,z).
  • (b) Write this using the notation of differentials.

What is the percentage error of your estimate from the true value?

Differentiability

In 2d, a function f(x) is differentiable precisely where its derivative f(x) exists. The situation is not so simple in 3d: a function like f(x,y)=2xy(x+y)x2+y2 has both partial derivatives at (x,y)=(0,0), but it is not differentiable there! On the other hand, one theorem does help:

Theorem

If a function f(x,y) is given and both partials fx and fy exist and are continuous at a point (a,b), then f is differentiable at (a,b).

Exercise 09B-03

When partials aren’t continuous

Compute the partial derivatives of f(x,y)=2xy(x+y)x2+y2 and explain carefully why this non-differentiable function does not violate the theorem.

Exercise 09B-04

Differentiability of the radius function

Let r(x,y)=x2+y2. Is r(x,y) differentiable? Where?

Differentiable, but partials aren’t continuous: r2sin(1r)

The function f(r,θ)=r2sin(1r) is differentiable at (0,0) since it is approximated by its tangent plane at (0,0). The partials are not continuous there! You may check this by computing fx and fy. You can also compute fr=2rsin(1/r)cos(1/r), which is not continuous at r=0.

Problems due 22 Oct 2023, 9:00pm

Problem 09-01

Partial derivatives

  • (a) Find y(x2+y)(x+y4).
  • (b) Find uln(u2+uv).
  • (c) Compute fxyxzy for f(x,y,z)=ysin(xz)sin(x+z)+(x+z2)tan(y)+xtan(z+z1yy1). (Hint: you can use a different order on each term!)
  • (d) The Laplace Operator Δ is defined by Δf=fxx+fyy. It is very important! Show that u(x,y)=excos(y) and v(x,y)=ln(x2+y2) and θ(x,y)=tan1(yx) are all annihilated (sent to 0) by Δ.
Problem 09-02

Linear approximation

Use linear approximation to estimate the value of 8.01(1.99)(2.01) without a calculator, using the notation of differentials. Then compute the exact value on a calculator and find the percentage error.

Problem 09-03

Tangent planes

  • (a) Find the tangent plane to the graph of f(x,y)=xy3+x2 at the point (2,2,12).
  • (b) Suppose f(1,2)=10, f(1.1,2.01)=10.3 and f(1.04,2.1)=9.7. Find an approximate equation of the tangent plane to the graph z=f(x,y) at the point (1,2,10).
  • (c) Find out where the tangent plane to z=3x24y2 has normal vector (3,2,2). (Hint: by inspection of the equation z=L(x,y), you can write a general formula for the normal vector to a tangent plane. Insert an arbitrary point (a,b) and solve for a and b to be where this normal vector aligns with the given one.)
Problem 09-04

Please write up and submit exercises 09A-03, 09A-04, 09B-01, 09B-02, 09B-04.