Calc 3 Test 2 prep

14.3 Partial Derivatives

Definition of Partial Derivatives

A function of two variables, denoted as f(x,y)f(x,y), exhibits the following partial derivatives, defined by limits:

  • The partial derivative with respect to x:

    f<em>x(x,y)=lim</em>h→0(f(x+h,y)−f(x,y))hf<em>x(x,y) = \frac{\text{lim}</em>{h \to 0} (f(x + h,y) - f(x,y))}{h}

  • The partial derivative with respect to y:

    f<em>y(x,y)=lim</em>h→0(f(x,y+h)−f(x,y))hf<em>y(x,y) = \frac{\text{lim}</em>{h \to 0} (f(x,y + h) - f(x,y))}{h}

Notation for First Order Partial Derivatives
  • Common notations for the first order partial derivatives are:
    • fx(x,y)f_x(x,y)
    • dfdx\frac{\text{d} f}{\text{d} x}
    • dfdy\frac{\text{d} f}{\text{d} y}
Rule of Thumb for Partial Differentiation
  1. Treat yy as constant when differentiating with respect to xx.
  2. Treat xx as constant when differentiating with respect to yy.
Examples of Partial Derivatives

Example 1:

Let f(x,y)=3x2y4+4xy2f(x,y) = 3x^2y^4 + 4xy^2

  • Calculating partial with respect to x:

    fx(x,y)=6xy4+4y2f_x(x,y) = 6xy^4 + 4y^2

  • Calculating partial with respect to y:

    fy(x,y)=12x2y3+8xyf_y(x,y) = 12x^2y^3 + 8xy
    Evaluation at Specific Points:

  • At point (2,1):

    • fx(2,1)=6(2)(14)+4(12)=12+4=16f_x(2,1) = 6(2)(1^4) + 4(1^2) = 12 + 4 = 16
    • fy(2,1)=12(22)(13)+8(2)(1)=48+16=64f_y(2,1) = 12(2^2)(1^3) + 8(2)(1) = 48 + 16 = 64
      Example 2:

    Let f(x,y)=sin(x)f(x,y) = \text{sin}(x)

  • Calculating partial with respect to x,

    fx(x,y)=cos(x)f_x(x,y) = \text{cos}(x)

  • If u=xu = x, then:

    dfdu=cos(x)\frac{\text{d} f}{\text{d} u} = \text{cos}(x)

Interpretation of Partial Derivatives

Given a surface of the form z=f(x,y)z = f(x, y) where f(a,b)=Cf(a, b) = C, the partial derivatives f<em>x(a,b)f<em>x(a,b) and f</em>y(a,b)f</em>y(a,b) represent the slopes of the tangent line to the curves C<em>1C<em>1 and C</em>2C</em>2 that intersect with the vertical planes defined by y=by = b and x=ax = a, respectively.
Curve C1
Intersects at (a,b,C)(a,b,C),

  • Tangential Line Equation:

    z−C=fx(a,b)(x−a)(when y=b)z - C = f_x(a,b)(x-a) \quad (\text{when } y=b)
    Curve C2
    Intersects at (a,b,C)(a,b,C),

  • Tangential Line Equation:

    z−C=fy(a,b)(y−b)(when x=a)z - C = f_y(a,b)(y-b) \quad (\text{when } x=a)

Interpretation of the Tangent Plane

The tangent plane at a point (a,b,C)(a,b,C) on the surface z=f(x,y)z = f(x,y) has the equation:

z−C=f<em>x(a,b)(x−a)+f</em>y(a,b)(y−b)z - C = f<em>x(a,b)(x-a) + f</em>y(a,b)(y-b)
This tangent plane approximates the function near (a,b)(a,b).

Functions of More Than Two Variables

For functions of more than two variables, e.g., f(x,y,z)f(x,y,z), the partial derivatives follow the same rules as for two variables, treating the remaining variables as constants during differentiation.

Higher Order Partial Derivatives

For higher order partial derivatives, we can denote:

  • The second-order partial derivative with respect to xx:

    fxx(x,y)=d2fdx2f_{xx}(x,y) = \frac{\text{d}^2 f}{\text{d} x^2}

  • The mixed partial derivative:

    fxy(x,y)=d2fdxdyf_{xy}(x,y) = \frac{\text{d}^2 f}{\text{d} x \text{d} y}

Clairaut's Theorem

If ff is defined over a disc containing (a,b)(a,b) and both mixed derivatives f<em>xyf<em>{xy} and f</em>yxf</em>{yx} exist, then:

f<em>xy(a,b)=f</em>yx(a,b)f<em>{xy}(a,b) = f</em>{yx}(a,b)

This theorem holds for most functions if they are continuously differentiable.

Implicit Differentiation

Consider a function defined implicitly as

F(x,y,z)=0F(x,y,z) = 0

To find the partial derivative dzdx\frac{\text{d}z}{\text{d}x}, we differentiate both sides with respect to xx, treating zz as a function of xx.

  1. Apply Chain Rule:

    F<em>x+F</em>ydydx+Fzdzdx=0F<em>x + F</em>y\frac{\text{dy}}{\text{dx}} + F_z\frac{\text{dz}}{\text{dx}} = 0

  2. Rearranging gives:

    dzdx=−F<em>x+F</em>ydydxFz\frac{\text{dz}}{\text{dx}} = -\frac{F<em>x + F</em>y\frac{\text{dy}}{\text{dx}}}{F_z}

Differentiation Rules for Functions of One Variable
  1. Derivative of a constant is zero.
  2. Derivative of f(g(x))f(g(x)) is f′(g(x))g′(x)f'(g(x))g'(x) (Chain Rule).
  3. Product rule: (fg)′=f′g+fg′(fg)' = f'g + fg'.
  4. Quotient rule: gh′=g′h−gh′h2\frac{g}{h}' = \frac{g'h - gh'}{h^2}.
  5. Higher-order derivatives are computed in a similar manner as basic derivatives.
  6. Trigonometric derivatives:
    • ddx(sin(x))=cos(x)\frac{\text{d}}{\text{d}x}(\text{sin}(x)) = \text{cos}(x)
    • ddx(cos(x))=−sin(x)\frac{\text{d}}{\text{d}x}(\text{cos}(x)) = -\text{sin}(x)

Tangent Planes & Linear Approximations

Linearization of a function

The linear approximation of a function near a point (a,b)(a,b) is given by:

  • For a function z=f(x,y)z = f(x,y), the approximation is:

    z≈f(a,b)+f<em>x(a,b)(x−a)+f</em>y(a,b)(y−b)z \approx f(a,b) + f<em>x(a,b)(x-a) + f</em>y(a,b)(y-b)

This approximates f(x,y)f(x,y) for (x,y)(x,y) near (a,b)(a,b).

Total Differential

For a function of two variables z=f(x,y)z=f(x,y), the total differential dzdz is defined as:

dz=f<em>x(x,y)dx+f</em>y(x,y)dydz = f<em>x(x,y)dx + f</em>y(x,y)dy

  • It represents the approximate change in zz for small changes dxdx and dydy in xx and yy.
  • This is often used to approximate values or estimate errors.

The Chain Rule for Multivariable Functions

The Chain Rule is essential for differentiating composite functions where the input variables are themselves functions of other variables.

Case 1: z=f(x,y)z = f(x,y) where x=g(t)x = g(t) and y=h(t)y = h(t)

If z=f(x,y)z = f(x,y) is a differentiable function of xx and yy, and x=g(t)x = g(t) and y=h(t)y = h(t) are differentiable functions of tt, then zz is a differentiable function of tt, and:

dzdt=∂f∂xdxdt+∂f∂ydydt\frac{dz}{dt} = \frac{\partial f}{\partial x} \frac{dx}{dt} + \frac{\partial f}{\partial y} \frac{dy}{dt}

Case 2: z=f(x,y)z = f(x,y) where x=g(s,t)x = g(s,t) and y=h(s,t)y = h(s,t)

If z=f(x,y)z = f(x,y) is a differentiable function of xx and yy, and x=g(s,t)x = g(s,t) and y=h(s,t)y = h(s,t) are differentiable functions of ss and tt, then:

  • Partial derivative with respect to ss:

    ∂z∂s=∂f∂x∂x∂s+∂f∂y∂y∂s\frac{\partial z}{\partial s} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial s} + \frac{\partial f}{\partial y} \frac{\partial y}{\partial s}

  • Partial derivative with respect to tt:

    ∂z∂t=∂f∂x∂x∂t+∂f∂y∂y∂t\frac{\partial z}{\partial t} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial t} + \frac{\partial f}{\partial y} \frac{\partial y}{\partial t}

Case 3: General Chain Rule

If u=f(x<em>1,x</em>2,…,x<em>n)u = f(x<em>1, x</em>2, \dots, x<em>n) and each x</em>i=x<em>i(t</em>1,t<em>2,…,t</em>m)x</em>i = x<em>i(t</em>1, t<em>2, \dots, t</em>m), then the partial derivative of uu with respect to tjt_j is:

∂u∂t<em>j=∂u∂x</em>1∂x<em>1∂t</em>j+∂u∂x<em>2∂x</em>2∂t<em>j+⋯+∂u∂x</em>n∂x<em>n∂t</em>j\frac{\partial u}{\partial t<em>j} = \frac{\partial u}{\partial x</em>1} \frac{\partial x<em>1}{\partial t</em>j} + \frac{\partial u}{\partial x<em>2} \frac{\partial x</em>2}{\partial t<em>j} + \dots + \frac{\partial u}{\partial x</em>n} \frac{\partial x<em>n}{\partial t</em>j}

Directional Derivatives and the Gradient Vector

Directional Derivatives

The directional derivative of a function f(x,y)f(x,y) in the direction of a unit vector u=⟨a,b⟩\mathbf{u} = \langle a, b \rangle is given by:

D<em>uf(x,y)=f</em>x(x,y)a+fy(x,y)bD<em>\mathbf{u} f(x,y) = f</em>x(x,y)a + f_y(x,y)b

  • It represents the rate of change of ff in the direction of u\mathbf{u}.

  • For a function of three variables f(x,y,z)f(x,y,z) and unit vector u=⟨a,b,c⟩\mathbf{u} = \langle a, b, c \rangle:

    D<em>uf(x,y,z)=f</em>x(x,y,z)a+f<em>y(x,y,z)b+f</em>z(x,y,z)cD<em>\mathbf{u} f(x,y,z) = f</em>x(x,y,z)a + f<em>y(x,y,z)b + f</em>z(x,y,z)c

The Gradient Vector

The gradient vector of a function f(x,y)f(x,y) is denoted by ∇f(x,y)\nabla f(x,y) (read as "del ff" or "gradient ff") and is defined as:

∇f(x,y)=⟨f<em>x(x,y),f</em>y(x,y)⟩=∂f∂xi+∂f∂yj\nabla f(x,y) = \langle f<em>x(x,y), f</em>y(x,y) \rangle = \frac{\partial f}{\partial x} \mathbf{i} + \frac{\partial f}{\partial y} \mathbf{j}

  • The directional derivative can also be expressed using the dot product:

    Duf(x,y)=∇f(x,y)⋅uD_\mathbf{u} f(x,y) = \nabla f(x,y) \cdot \mathbf{u}

Properties of the Gradient
  • Maximum Rate of Increase: The maximum value of the directional derivative Duf(x,y)D_\mathbf{u} f(x,y) is ∣∇f(x,y)∣|\nabla f(x,y)|, and it occurs when u\mathbf{u} has the same direction as ∇f(x,y)\nabla f(x,y).
  • Minimum Rate of Decrease: The minimum value is −∣∇f(x,y)∣-|\nabla f(x,y)|, and it occurs when u\mathbf{u} has the opposite direction to ∇f(x,y)\nabla f(x,y).
  • Level Curves/Surfaces: The gradient vector ∇f(x,y)\nabla f(x,y) is orthogonal (perpendicular) to the level curves f(x,y)=kf(x,y) = k at a given point (x,y)(x,y). For functions of three variables, ∇f(x,y,z)\nabla f(x,y,z) is orthogonal to the level surfaces f(x,y,z)=kf(x,y,z) = k.

Maximum and Minimum Values

Critical Points

A critical point of a function f(x,y)f(x,y) is a point (a,b)(a,b) in the domain of ff where either:

  1. f<em>x(a,b)=0f<em>x(a,b) = 0 and f</em>y(a,b)=0f</em>y(a,b) = 0
  2. Or, one or both of the partial derivatives do not exist.
The Second Derivatives Test

To classify critical points as local maxima, minima, or saddle points, we use the second derivatives test. Let DD be the discriminant defined as:

D(x,y)=f<em>xx(x,y)f</em>yy(x,y)−[fxy(x,y)]2D(x,y) = f<em>{xx}(x,y)f</em>{yy}(x,y) - [f_{xy}(x,y)]^2

At a critical point (a,b)(a,b):

  1. If D(a,b)>0D(a,b) > 0 and fxx(a,b)>0f_{xx}(a,b) > 0, then f(a,b)f(a,b) is a local minimum.
  2. If D(a,b)>0D(a,b) > 0 and fxx(a,b)<0f_{xx}(a,b) < 0, then f(a,b)f(a,b) is a local maximum.
  3. If D(a,b)<0D(a,b) < 0, then f(a,b)f(a,b) is a saddle point (neither max nor min).
  4. If D(a,b)=0D(a,b) = 0, the test is inconclusive.
Absolute Maximum and Minimum Values

To find the absolute maximum and minimum values of a continuous function ff on a closed, bounded set DD:

  1. Find the values of ff at the critical points of ff in DD.
  2. Find the extreme values of ff on the boundary of DD. This often involves parameterizing the boundary or using methods like Lagrange Multipliers.
  3. The largest of these values is the absolute maximum value, and the smallest is the absolute minimum value.

Polar Coordinates

Polar coordinates offer an alternative way to represent points in a two-dimensional plane using a distance from the origin and an angle from the positive x-axis. This system is particularly useful for problems with circular symmetry.

Definition and Conversion
  • A point PP in the plane is represented by an ordered pair (r,θ)(r, \theta), where:
    • rr is the distance from the origin (pole) to PP.
    • θ\theta is the angle (in radians) between the positive x-axis (polar axis) and the line segment from the origin to PP.
  • Conversion from Polar to Cartesian:
    • x=rcos⁡θx = r \cos \theta
    • y=rsin⁡θy = r \sin \theta
  • Conversion from Cartesian to Polar:
    • r2=x2+y2r^2 = x^2 + y^2
    • tan⁡θ=yx(if x≠0)\tan \theta = \frac{y}{x} \quad (\text{if } x \neq 0)
Area in Polar Coordinates

The area of a region bounded by polar curves r=f(θ)r = f(\theta) from θ=α\theta = \alpha to θ=β\theta = \beta is given by:

A=∫αβ12r2dθA = \int_{\alpha}^{\beta} \frac{1}{2} r^2 d\theta

Double Integrals in Polar Coordinates

To evaluate double integrals over regions with circular symmetry, converting to polar coordinates simplifies the integral. The differential area element dAdA in Cartesian coordinates becomes rdrdθr dr d\theta in polar coordinates.

∬<em>Rf(x,y)dA=∬</em>Df(rcos⁡θ,rsin⁡θ)rdrdθ\iint<em>R f(x,y) dA = \iint</em>D f(r \cos \theta, r \sin \theta) r dr d\theta

Cylindrical Coordinates

Cylindrical coordinates extend polar coordinates into three dimensions by adding a zz-coordinate. They are especially useful for problems with cylindrical symmetry.

Definition and Conversion
  • A point PP in space is represented by (r,θ,z)(r, \theta, z), where:
    • (r,θ)(r, \theta) are the polar coordinates of the projection of PP onto the xyxy-plane.
    • zz is the Cartesian zz-coordinate.
  • Conversion from Cylindrical to Cartesian:
    • x=rcos⁡θx = r \cos \theta
    • y=rsin⁡θy = r \sin \theta
    • z=zz = z
  • Conversion from Cartesian to Cylindrical:
    • r2=x2+y2r^2 = x^2 + y^2
    • tan⁡θ=yx(if x≠0)\tan \theta = \frac{y}{x} \quad (\text{if } x \neq 0)
    • z=zz = z
Volume Element and Triple Integrals

In cylindrical coordinates, the differential volume element dVdV in Cartesian coordinates becomes rdzdrdθr dz dr d\theta (or any permutation of dz,dr,dθdz, dr, d\theta). This Jacobian term rr is crucial for correct integration.

∭<em>Ef(x,y,z)dV=∭</em>Gf(rcos⁡θ,rsin⁡θ,z)rdzdrdθ\iiint<em>E f(x,y,z) dV = \iiint</em>G f(r \cos \theta, r \sin \theta, z) r dz dr d\theta

Spherical Coordinates

Spherical coordinates provide another three-dimensional coordinate system, particularly suitable for problems with spherical symmetry.

Definition and Conversion
  • A point PP in space is represented by (ρ,θ,ϕ)(\rho, \theta, \phi), where:
    • ρ\rho (rho) is the distance from the origin to PP (ρ≥0\rho \ge 0).
    • θ\theta (theta) is the same angle as in cylindrical and polar coordinates (0≤θ≤2π0 \le \theta \le 2\pi).
    • ϕ\phi (phi) is the angle between the positive zz-axis and the line segment from the origin to PP (0≤ϕ≤π0 \le \phi \le \pi).
  • Conversion from Spherical to Cartesian:
    • x=ρsin⁡ϕcos⁡θx = \rho \sin \phi \cos \theta
    • y=ρsin⁡ϕsin⁡θy = \rho \sin \phi \sin \theta
    • z=ρcos⁡ϕz = \rho \cos \phi
  • Conversion from Cartesian to Spherical:
    • ρ2=x2+y2+z2\rho^2 = x^2 + y^2 + z^2
    • tan⁡θ=yx(if x≠0)\tan \theta = \frac{y}{x} \quad (\text{if } x \neq 0)
    • cos⁡ϕ=zρ=zx2+y2+z2\cos \phi = \frac{z}{\rho} = \frac{z}{\sqrt{x^2+y^2+z^2}}
Volume Element and Triple Integrals

In spherical coordinates, the differential volume element dVdV in Cartesian coordinates becomes ρ2sin⁡ϕdρdϕdθ\rho^2 \sin \phi d\rho d\phi d\theta. The Jacobian is ρ2sin⁡ϕ\rho^2 \sin \phi.

∭<em>Ef(x,y,z)dV=∭</em>Hf(ρsin⁡ϕcos⁡θ,ρsin⁡ϕsin⁡θ,ρcos⁡ϕ)ρ2sin⁡ϕdρdϕdθ\iiint<em>E f(x,y,z) dV = \iiint</em>H f(\rho \sin \phi \cos \theta, \rho \sin \phi \sin \theta, \rho \cos \phi) \rho^2 \sin \phi d\rho d\phi d\theta

Triple Integration

Triple integrals are used to integrate functions of three variables over a three-dimensional region. They are fundamental for calculating volumes, masses, centroids, and moments of inertia for solids.

Definition

The triple integral of a function f(x,y,z)f(x,y,z) over a solid region EE is defined as:

∭<em>Ef(x,y,z)dV=lim</em>l,m,n→∞∑<em>i=1l∑</em>j=1m∑<em>k=1nf(x</em>ijk<em>,y<em>ijk</em>,z</em>ijk∗)ΔV\iiint<em>E f(x,y,z) dV = \text{lim}</em>{l,m,n \to \infty} \sum<em>{i=1}^l \sum</em>{j=1}^m \sum<em>{k=1}^n f(x</em>{ijk}^<em>, y<em>{ijk}^</em>, z</em>{ijk}^*) \Delta V

where ΔV\Delta V is the volume of a small rectangular box and (x<em>ijk<em>,y</em>ijk</em>,zijk∗)(x<em>{ijk}^<em>, y</em>{ijk}^</em>, z_{ijk}^*) is a sample point within that box.

Iterated Integrals for Triple Integrals

Similar to double integrals, triple integrals are typically evaluated as iterated integrals. For a function ff over a region EE described by:

E=(x,y,z)∣a≤x≤b,g<em>1(x)≤y≤g</em>2(x),h<em>1(x,y)≤z≤h</em>2(x,y)E = { (x,y,z) \mid a \le x \le b, g<em>1(x) \le y \le g</em>2(x), h<em>1(x,y) \le z \le h</em>2(x,y) }

The triple integral is:

∭<em>Ef(x,y,z)dV=∫</em>ab∫<em>g</em>1(x)g<em>2(x)∫</em>h<em>1(x,y)h</em>2(x,y)f(x,y,z)dzdydx\iiint<em>E f(x,y,z) dV = \int</em>a^b \int<em>{g</em>1(x)}^{g<em>2(x)} \int</em>{h<em>1(x,y)}^{h</em>2(x,y)} f(x,y,z) dz dy dx

  • The order of integration can be changed, and there are six possible orders (dzdydx,dzdxdy,dydzdx,dydxdz,dxdydz,dxdzdydz dy dx, dz dx dy, dy dz dx, dy dx dz, dx dy dz, dx dz dy), depending on the region EE.
Applications
  • Volume: If f(x,y,z)=1f(x,y,z) = 1, the triple integral gives the volume of the region EE:

    V=∭E1dVV = \iiint_E 1 dV

  • Mass: If ρ(x,y,z)\rho(x,y,z) is the density function of a solid object EE, its total mass MM is:

    M=∭Eρ(x,y,z)dVM = \iiint_E \rho(x,y,z) dV

  • Centroid: The coordinates of the centroid (xˉ,yˉ,zˉ)(\bar{x}, \bar{y}, \bar{z}) are given by:

    • xˉ=1M∭Exρ(x,y,z)dV\bar{x} = \frac{1}{M} \iiint_E x \rho(x,y,z) dV
    • yˉ=1M∭Eyρ(x,y,z)dV\bar{y} = \frac{1}{M} \iiint_E y \rho(x,y,z) dV
    • zˉ=1M∭Ezρ(x,y,z)dV\bar{z} = \frac{1}{M} \iiint_E z \rho(x,y,z) dV
Change of Variables in Triple Integrals

When integrating over complex regions in Cartesian coordinates, changing to cylindrical or spherical coordinates can simplify computations. The conversion involves a Jacobian determinant, which accounts for the scaling of the volume elements:

  • Cylindrical: dV=rdrdθdzdV = r dr d\theta dz
  • Spherical: dV=ρ2sin⁡ϕdρdϕdθdV = \rho^2 \sin \phi d\rho d\phi d\theta