These are calc 3 notes from sophmore year. I still got a C lol, I was gonna get an A but bombed the final and got like a 30%. Some equations might not show on mobile.
14.1 Functions of Two or More Variables
Functions with multiple variables are typically denoted as: g(x,y,z)=c=x2+y2+z2
Traces
A trace is freezing one coordinate on the function (typically x-coordinate, (x=a) and examining the resulting curve in 2 dimensions
Note: Vertical trace is where you freeze the y-axis (y=b), rather than x, to find your trace
Contour Map
Tracing the height of a map and projecting those shadows onto a plane below f(x,y)=c;m=the contour interval
Saddle Point Contour Map
Rate of Change
average rate of change from P to Q=Δ horizontalΔ altitude
Isotherms
The coloring of certain areas within a 3D contour map to show the different height differences
14.3 Partial Derivatives:
Partial Derivative:
Finding the rates of change in respect to only one variable in the equation. ∂x∂f,∂y∂f Concept: The idea behind partial derivaties is to find the derivative of only one variable to see how manipulation of that variable affects the rest of the equation. This is done by treating every variable as a constant except the one being integrated
Partial Derivative of variable x: fx(a,b)=h→0limhf(a+h,b)−f(a,b) Partial Derivative of variable y: fy(a,b)=h→0limkf(a,b+k)−f(a,b)
Example :: Partial Derivative:
Compute the partial derivatives of f(x,y)=x2y5
Compute the partial derivative of x
∂x∂f=∂x∂(x2y5)=y5(2x)=2xy5
Compute the partial derivative of y
∂y∂f=∂y∂(x2y5)=(5y4)x2=5x2y4
Clairaut’s Theorem
Equality of Mixed Partials If fxy and fyx both exist and are continuous on a disk D, then fxy(a,b)=fyx(a,b) for all (a,b)∈D. Therefore, on D, ∂x∂y∂2f=∂y∂x∂2f
Heat Equation
∂t∂u=∂x2∂2u
14.4 Differentiability, Tangent Planes, and Linear Approximation
Differentiability and the Tangent Plane
Assume that f(x,y) is defined in a disk D containing (a,b) and that fx(a,b) and fy(a,b) exists. Let L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
f(x, y) is differentiable at (a,b) if (x,y)→(a,b)lim(x−a)2+(y−b)2f(x,y)−L(x,y)=0
If f(x,y) is differentiable at (a,b), then the tangent plane to the graph at (a,b,f(a,b)) is the plane with equation z=L(x,y). Explicitly, the equation of the tangent plane is… z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
You can also write linear approximation as Δf≈fx(a,b)Δx+fy(a,b)Δy
Differentials and Linear Approximation
Assume that f is differentiable at (a,b) and let dx=Δx,dy=Δy Then the differential df is defined by df=fx(x,y)dx+fy(x,y)dy
Example :: Linear Approximation:
Use the Linear Approximation to f(x,y)=yx at (81,16) to estimate 15.981.1
Use the multivariable function: L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
First we will solve for fx
fx(81,16)=2yx1=2⋅9⋅41=721
Now we solve for fy(a,b) 1. fy(81,16)=−2y3/2x=−2(16)3/281=−1289
Now solve for f(x,y) 1. f(81,16)=1681=2.25
Now plug into the equation 1.L(81.1,15.9)=2.25+721(81.1−81)−1289(15.9−16)=2.2584
Example :: Approximating change in function:
Let f(x,y)=x3y−4. Use the equation Δf≈fx(a,b)Δx+fy(a,b)Δy to estimate Δf=f(1.04,0.97)−f(1,1) from the linear approximation formula.
Plug in
Δf≈fx(a,b)Δx+fy(a,b)Δy≈3x2y−4Δx−4x3y−5Δy
≈3(1)2(1)−4Δx−4(1)3(1)−5Δy
Δx=1.04−1=.04Δy=0.97−1=−.03
≈3(1)2(1)−4(.04)−4(1)3(1)−5(−.03)=0.24
A person’s Body Mass Index is I=H2W, where 𝑊 is the body weight (in kilograms) and 𝐻 is the body height (in meters). A child has weight 𝑊=39 kg and height 𝐻=1.5 m. Use the linear approximation to estimate the change in 𝐼 if (𝑊,𝐻) changes to (41,1.53).
Solve for Ix and Iy using the linear approximation formula
Ix=H21Iy=W3−2W
z=1.521(41−39)−1.532(39)(1.53−1.5)
Theorem 1: Confirming Differentiability
If fx(x,y) and fy(x,y) exist and are continuous on an open disk D, then f(x,y) is differentiable on D
Example :: Linear Approximation to find Tangent Plane
Find the equation of the tangent plane to the graph of f(x,y)=2xy2+2x3y2 at the point (−1,3).
Find fx, then fy
fx=2y2+6x2y2
fy=4xy+4x3y
Plug the point into the original equation
f(−1,3)=2(−1)(3)2+2(−1)3(3)2=−36
Plug the point into the partial derivatives
fx=2(3)2+6(−1)2(3)2=72
fy=4(−1)(3)+4(−1)3(3)=−24
Plug into the equation df=fx(x,y)dx+fy(x,y)dy
df=−36+72(x+1)−24(y−3)=72x−24y+108
14.5 Gradient and directional derivatives
The Gradient
The gradient of function f(x,y) at point P=(a,b) is the vector ∇f=⟨fx(a,b,c),fy(a,b,c),fz(a,b,c)⟩=⟨∂x∂f,∂x∂f,∂x∂f⟩ In three variables, for f(x,y,z) and P=(a,b,c) ∇fp=⟨fx(a,b,c),fy(a,b,c),fz(a,b,c)⟩
Example :: Computing the Gradient:
Calculate the gradient of g(x,y)=x2+y29x
Set up problem using the Quotient Rule of Derivatives
If f(x,y,z) and g(x,y,z) are differentiable and c is a constant, then
∇(f+g)=∇f+∇g
∇(cf)=c∇f
Product Rule for Gradients:∇(fg)=f∇g+g∇f
Chain Rule for Gradients: If F(t) is a differentiable function of one variable, then… ∇(F(f(x,y,z)))=F′(f(x,y,z))∇f
Theorem 2: Chain Rule for Paths
If f and r(t) are differentiable, then… dtdf(r(t))=∇fr(t)⋅r′(t) Chain rule for paths example: dtdf(r(t))=⟨∂x∂f,dy∂y⟩⋅⟨x′(t),y′(t)⟩=∂x∂fdtdx+∂y∂fdtdy
Directional Derivative
The directional derivative of f at P=(a,b) in the direction of a unit vector u=⟨h,k⟩ is the limit (assuming it exists) Duf(P)=Uuf(a,b)=t→0limtf(a+th,b+tk)−f(a,b)
Theorem 3: Computing the directional derivative
Duf(P)=∇fp⋅u=fx(a,b)h+fy(a,b)k
where u=⟨h,k⟩ is a unit vector
Also expands for more dimensions
Example :: Calculating the directional derivative:
Calculate the directional derivative of g(x,y,z)=z2−xy+3y2 in the direction v=⟨1,−4,2⟩ at the point P=(3,1,−7). Remember to use a unit vector in directional derivative computation. Find Dvg(3,1,−7)
Use the directional derivative formula, we must find the partial derivative of each component and then multiply by the unit vector.
Duf(P)=∇fp⋅u=fx(a,b)h+fy(a,b)k
Compute the unit vectors of each component
⟨211,21−4,212⟩
Compute the x-component, y-component, and z-component:
gx=−y,gy=6y−x,gz=2z
Multiply each partial derivative of g(x,y,z) by the proper component of the unit vector
The rate of change in a given direction varies with the angle of cos between the gradient and direction Duf(P)=∇fp⋅u=∣∣∇fp∣∣⋅∣∣u∣∣cosθ=∣∣∇fp∣∣cosθ
where (\theta) is the angle between (\nabla f_p) and (u)
because cos is constrained to -1 and 1, our answer will be…
−∣∣∇fp∣∣≤Duf(P)≤∣∣∇fp∣∣
Theorem 4: Interpretation of the Gradient
Assume that (\nabla f_p \ne 0). Let (u) be a unit vector making an angle (\theta) with (\nabla f_p). Then Duf(P)=∣∣∇fp∣∣cosθ
(\nabla f_p) points in the direction of fastest rate of increase of (f) at (P), and that rate of increase is (||\nabla f_p||)
(-\nabla f_p) points in the direction of fastest rate of decrease of (f) at (P), and that rate of decrease is (-||\nabla f_p||)
(\nabla f_p) is normal to the level curve (or surface) of (f) at (P).
Theorem 5: Gradient as a Normal Vector
Let (P=(a,b,c)) be a point on the surface given by (F(x,y,z)=k) and assume that (\nabla F_p \ne 0). Then (\nabla F_p) is a vector normal to the tangent plane to the surface at (P). Moreover, the tangent plane to the surface at (P) has the equation: Fx(a,b,c)(x−a)+Fy(a,b,c)(y−b)+Fz(a,b,c)(z−c)=0Fx(a,b,c)(x−a)+Fy(a,b,c)(y−b)+Fz(a,b,c)(z−c)=0
14.6 Multi-variable Calculus Chain Rules
Chain Rule for Paths applies to compositions f(r(t)) where f and r are differentiable.
Let f(x,y,z)=xy+z3,x=r+s−5t,y=3rt,z=s4. Find dr∂f and dt∂f f(x,y,z)=xy+z3=(r+s−5t)(3rt)+(s4)3=3rt(r+s−5t)+s12 ∂r∂f(3r2t+3rts−15rt2+s12)=6rt+3ts−15t2
∂t∂f(3r2t+3rts−15rt2+s12)=3r2+3rs−30rt
Use chain rule to evaluate the partial derivative ∂q∂h at the point (q,r)=(3,3), where h(u,v)=uev,u=q4,v=qr2 ∂q∂h<em>(q,r)=∇f</em>r(q,r)⋅r′(q,r)
Two spacecraft are following paths in space given by r1=⟨sin(t),t,t2⟩ and r2=⟨cos(t),1−t,t3⟩ If the temperature for the points is given by T(x,y,z)=x2y(9−z), use the Chain Rule to determine the rate of change of the difference D in the temperatures the two spacecraft experience at time t=2.
Plug r1 and r2 into T(x,y,z)
T(r1)=sin2(t)(t)(9−t2),T(r2)=cos2(t)(1−t)(9−t3)
D=dtd(T(r1)−T(r2))=−11.196
14.7 Optimization in Several Variables
Local Extreme Values
A function f(x,y) has a local extremum at P=(a,b) if there exists an open disk D(P,r) such that:
Local Maximum:f(x,y)≤f(a,b) for all (x,y)∈D(P,r)
Local Minimum:f(x,y)≥f(a,b) for all (x,y)∈D(P,r)
About Fermat’s Theorem
For functions with one variable, if f(a) is a local extreme value, then a is a critical point and thus the tangent line (if it exists) is horizontal at x=a.
With two variables, it is the same concept but with a tangent plane rather than a line. The tangent plane z=f(x,y) at P=(a,b) has the equation: z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
Critical Point
A point P=(a,b) in the domain of f(x,y) is called a critical point if:
fx(a,b)=0 or fx(a,b) does not exist, and
fy(a,b)=0 or fy(a,b) does not exist
Formula for Discriminant D
D=D(a,b)=fxx(a,b)fyy(a,b)−fxy2(a,b)
Theorem 1: Fermat’s Theorem
if f(x,y) has a local minimum or maximum at P=(a,b), then (a,b) is a critical point of f(x,y)
Theorem 2: Second Derivative Test for f(x,y)
Let P=(a,b) be a critical point of f(x,y). Assume that fxx,fyy,fxy are continuous near P. Then
If D>0 and fxx(a,b)>0, then f(a,b) is a local minimum
If D>0 and fxx(a,b)<0, then f(a,b) is a local maximum
If D<0 then f has a saddle point at (a,b)
If D=0, the test is inconclusive
Theorem 3: Existence and Location of Global Extrema
Let f(x,y) be a continuous function on a closed, bounded domain D in R2. Then
f(x,y) takes on both a minimum and a maximum value on D
The extreme values occur either at critical points in the interior of D or at points on the boundary of D
Theorem 4
With Q(h,k) and D as above:
If D>0 and a>0, then Q(h,k)>0 for (h,k)=(0,0).
If D>0 and a<0, then Q(h,k)<0 for (h,k)=(0,0).
If D<0, then Q(h,k) takes on both positive and negative values
14.8 Lagrange Multipliers: Optimizing with a Constraint
Theorem 1: Lagrange Multipliers
Assume that f(x,y) and g(x,y) are differentiable functions. If f(x,y) has a local minimum or a local maximum on the constraint curve g(x,y)=0 at P=(a,b) and if ∇gp=0, then there is a scalar λ such that… ∇fp=λ∇gp
Critical Value
The critical point that satisfies the values of the Lagrange Equations: fx(a,b)=λgx(a,b),fy(a,b)=λgy(a,b)
Example :: Lagrange Multiplier in 3 Variables:
Find the minimum and maximum values of the function with values max: f(x,y,z)=x2+y2+z2constraint: g(x,y,z)=x+4y+5z=10