1. Home
  2. Explore
  3. Mathematics
  4. Multivariable Calculus Intro

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Multivariable Calculus Intro

  • 29Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Partial Derivatives and Gradient

What is a partial derivative? How do you compute rac{partial f}{partial x} for a function f(x,y)f(x,y)f(x,y)?

29 questions

  1. 1

    What is a partial derivative? How do you compute rac{partial f}{partial x} for a function f(x,y)f(x,y)f(x,y)?

    Model answer

    A partial derivative is the derivative of a multivariable function with respect to one variable while treating all other variables as constants. To compute rac{partial f}{partial x}, differentiate fff with respect to xxx while treating yyy as constant.

    Explanation

    The concept extends single-variable differentiation by freezing other variables, reducing the function to a single variable along a slice.

  2. 2

    For h(x,y)=100−x2−2y2h(x,y) = 100 - x^2 - 2y^2h(x,y)=100−x2−2y2, compute rac{partial h}{partial x} and rac{partial h}{partial y}.

    Model answer

    rac{partial h}{partial x} = -2x, rac{partial h}{partial y} = -4y.

    Explanation

    Differentiate term by term: derivative of 100100100 is 000, −x2-x^2−x2 gives −2x-2x−2x, −2y2-2y^2−2y2 gives 000 (constant w.r.t xxx). Similarly for yyy.

  3. 3

    What is the gradient vector ablaf abla fablaf of a function f(x,y)f(x,y)f(x,y)? Write its formula.

    Model answer

    The gradient is abla f = langle rac{partial f}{partial x}, rac{partial f}{partial y} angle.

    Explanation

    It packages all first partial derivatives into a vector that points in the direction of steepest ascent.

  4. 4

    For h(x,y)=100−x2−2y2h(x,y)=100-x^2-2y^2h(x,y)=100−x2−2y2, find the gradient at (1,1)(1,1)(1,1) and explain what it tells you.

    Model answer

    ablah(1,1)=langle−2,−4angle abla h(1,1) = langle -2, -4 angleablah(1,1)=langle−2,−4angle. It points in the direction of steepest ascent (uphill) with magnitude sqrt20approx4.47sqrt{20}approx 4.47sqrt20approx4.47, which is the slope in that direction.

    Explanation

    At (1,1)(1,1)(1,1), the hill slopes downward in both xxx and yyy directions, and the gradient vector indicates the path of greatest increase. Its magnitude gives the steepness.

  5. 5

    What is the Jacobian matrix for a vector function mathbfF(x,y)=(u(x,y),v(x,y))mathbf{F}(x,y) = (u(x,y), v(x,y))mathbfF(x,y)=(u(x,y),v(x,y))?

    Model answer

    The Jacobian is J = egin{bmatrix} rac{partial u}{partial x} & rac{partial u}{partial y} \ rac{partial v}{partial x} & rac{partial v}{partial y} end{bmatrix}.

    Explanation

    Each row corresponds to an output component and each column to an input variable, capturing all partial derivatives.

  6. 6

    Given u=2x+0.5yu=2x+0.5yu=2x+0.5y and v=0.1x+3yv=0.1x+3yv=0.1x+3y, compute the Jacobian matrix.

    Model answer

    J = egin{bmatrix} 2 & 0.5 \ 0.1 & 3 end{bmatrix}.

    Explanation

    Partial derivatives: partialu/partialx=2partial u/partial x = 2partialu/partialx=2, partialu/partialy=0.5partial u/partial y = 0.5partialu/partialy=0.5, partialv/partialx=0.1partial v/partial x = 0.1partialv/partialx=0.1, partialv/partialy=3partial v/partial y = 3partialv/partialy=3.

  7. 7

    How does the Jacobian matrix relate a small change in inputs (Deltax,Deltay)(Delta x, Delta y)(Deltax,Deltay) to the change in outputs (Deltau,Deltav)(Delta u, Delta v)(Deltau,Deltav)?

    Model answer

    The change in outputs is approximately egin{bmatrix} Delta u \ Delta v end{bmatrix} approx J egin{bmatrix} Delta x \ Delta y end{bmatrix}.

    Explanation

    The Jacobian provides a linear approximation: it multiplies the input change vector to give an estimate of the output change.

  8. 8

    State the multivariable chain rule for a composition P(mathbfF(mathbfx))P(mathbf{F}(mathbf{x}))P(mathbfF(mathbfx)) using Jacobians.

    Model answer

    The Jacobian of the composition is the product of the Jacobians: JPcircmathbfF=JP(mathbfF(mathbfx))cdotJmathbfF(mathbfx)J_{P circ mathbf{F}} = J_P(mathbf{F}(mathbf{x})) cdot J_{mathbf{F}}(mathbf{x})JPcircmathbfF​=JP​(mathbfF(mathbfx))cdotJmathbfF​(mathbfx).

    Explanation

    This generalizes the single-variable chain rule: derivatives multiply as matrices along the chain.

  9. 9

    How is the Jacobian chain rule used in backpropagation for neural networks?

    Model answer

    Backpropagation computes the gradient of the error with respect to each weight by multiplying Jacobians backward through the network layers, applying the chain rule.

    Explanation

    Each layer is a function; the chain rule via Jacobian multiplication efficiently propagates error gradients.

  10. 10

    What is the Hessian matrix of a function f(x,y)f(x,y)f(x,y)?

    Model answer

    The Hessian is H = egin{bmatrix} f_{xx} & f_{xy} \ f_{yx} & f_{yy} end{bmatrix}.

    Explanation

    It contains all second-order partial derivatives and describes local curvature.

  11. 11

    For f(x,y)=x2+y2f(x,y) = x^2 + y^2f(x,y)=x2+y2, find the Hessian at (0,0)(0,0)(0,0) and classify the critical point.

    Model answer

    H = egin{bmatrix} 2 & 0 \ 0 & 2 end{bmatrix}. The determinant D=4>0D=4>0D=4>0 and fxx=2>0f_{xx}=2>0fxx​=2>0, so it is a local minimum (valley).

    Explanation

    Positive diagonal entries indicate concave up in both directions, giving a minimum.

  12. 12

    For f(x,y)=−x2−y2f(x,y) = -x^2 - y^2f(x,y)=−x2−y2, classify the critical point at (0,0)(0,0)(0,0) using the Hessian.

    Model answer

    H = egin{bmatrix} -2 & 0 \ 0 & -2 end{bmatrix}. D=4>0D=4>0D=4>0 and fxx=−2<0f_{xx}=-2<0fxx​=−2<0, so it is a local maximum (peak).

    Explanation

    Negative diagonal entries indicate concave down in both directions, giving a maximum.

  13. 13

    For f(x,y)=x2−y2f(x,y) = x^2 - y^2f(x,y)=x2−y2, classify the critical point at (0,0)(0,0)(0,0).

    Model answer

    H = egin{bmatrix} 2 & 0 \ 0 & -2 end{bmatrix}. D=−4<0D = -4 < 0D=−4<0, so it is a saddle point.

    Explanation

    Opposite signs on diagonal indicate curvature up in xxx direction and down in yyy direction, characteristic of a saddle.

  14. 14

    State the second derivative test for a critical point (a,b)(a,b)(a,b) of f(x,y)f(x,y)f(x,y) using the Hessian determinant DDD and fxxf_{xx}fxx​.

    Model answer

    If D>0D > 0D>0 and fxx>0f_{xx} > 0fxx​>0, local minimum; if D>0D > 0D>0 and fxx<0f_{xx} < 0fxx​<0, local maximum; if D<0D < 0D<0, saddle point; if D=0D = 0D=0, test inconclusive.

    Explanation

    The test uses determinant to check if curvatures agree and sign of fxxf_{xx}fxx​ to determine concavity.

  15. 15

    Outline the steps to find local extrema of a function f(x,y)f(x,y)f(x,y).

    Model answer

    Step 1: Find critical points by solving ablaf=mathbf0 abla f = mathbf{0}ablaf=mathbf0. Step 2: Classify each using the Hessian matrix (second derivative test).

    Explanation

    This mirrors single-variable optimization: first derivative zero, then check second derivative.

  16. 16

    For P(x,y)=1500−(x−10)2−3(y−25)2P(x,y) = 1500 - (x-10)^2 - 3(y-25)^2P(x,y)=1500−(x−10)2−3(y−25)2, find the critical point and classify it.

    Model answer

    Critical point: (10,25)(10,25)(10,25). Hessian: H = egin{bmatrix} -2 & 0 \ 0 & -6 end{bmatrix}; D=12>0D=12>0D=12>0, fxx=−2<0f_{xx}=-2<0fxx​=−2<0, so local maximum. Maximum profit is P(10,25)=1500P(10,25)=1500P(10,25)=1500.

    Explanation

    Set first partials to zero: partialP/partialx=−2(x−10)=0partial P/partial x = -2(x-10)=0partialP/partialx=−2(x−10)=0, partialP/partialy=−6(y−25)=0partial P/partial y = -6(y-25)=0partialP/partialy=−6(y−25)=0.

  17. 17

    What is a constrained optimization problem? Give an example.

    Model answer

    It involves maximizing or minimizing a function f(x,y)f(x,y)f(x,y) subject to a constraint g(x,y)=cg(x,y)=cg(x,y)=c. Example: maximize area xyxyxy subject to perimeter x+y=12x+y=12x+y=12.

    Explanation

    The constraint limits feasible points to a curve or surface.

  18. 18

    State the condition for an optimum in Lagrange multipliers.

    Model answer

    At optimum, the gradients are parallel: ablaf=lambdaablag abla f = lambda abla gablaf=lambdaablag, where lambdalambdalambda is the Lagrange multiplier.

    Explanation

    This condition means the level curve of fff is tangent to the constraint curve.

  19. 19

    List the steps of the Lagrange multiplier algorithm.

    Model answer
    1. Identify objective fff and constraint g(x,y)=cg(x,y)=cg(x,y)=c. 2. Compute ablaf abla fablaf and ablag abla gablag. 3. Set up equations: fx=lambdagxf_x = lambda g_xfx​=lambdagx​, fy=lambdagyf_y = lambda g_yfy​=lambdagy​, g(x,y)=cg(x,y)=cg(x,y)=c. 4. Solve for x,y,lambdax,y,lambdax,y,lambda.

    Explanation

    The system yields candidate points for extrema.

  20. 20

    Solve the pen problem: maximize area A=xyA=xyA=xy with perimeter 2x+2y=242x+2y=242x+2y=24 (i.e., x+y=12x+y=12x+y=12).

    Model answer

    Using Lagrange multipliers: ablaA=langley,xangle abla A = langle y,x angleablaA=langley,xangle, ablag=langle1,1angle abla g = langle 1,1 angleablag=langle1,1angle. Equations: y=lambday=lambday=lambda, x=lambdax=lambdax=lambda, x+y=12x+y=12x+y=12. Solution: x=6x=6x=6, y=6y=6y=6, lambda=6lambda=6lambda=6. Maximum area is 363636 square meters.

    Explanation

    The optimal pen is a square; lambdalambdalambda is the shadow price: each extra meter of fence increases area by about 666 m².

  21. 21

    What does the Lagrange multiplier lambdalambdalambda represent in practical problems?

    Model answer

    lambdalambdalambda is the shadow price: the rate at which the objective function changes per unit increase in the constraint bound.

    Explanation

    It indicates how much the optimal value would increase if the constraint were relaxed by one unit.

  22. 22

    What does a double integral iintRf(x,y),dAiint_R f(x,y),dAiintR​f(x,y),dA represent geometrically?

    Model answer

    If f(x,y)ge0f(x,y)ge 0f(x,y)ge0, it represents the volume under the surface z=f(x,y)z=f(x,y)z=f(x,y) over the region RRR. More generally, it can represent mass, probability, etc.

    Explanation

    The double integral sums infinitesimal volumes (height imes imesimes area) over the region.

  23. 23

    How is a double integral computed as an iterated integral?

    Model answer

    Write iintRf(x,y),dA=intcdintabf(x,y),dx,dyiint_R f(x,y),dA = int_c^d int_a^b f(x,y),dx,dyiintR​f(x,y),dA=intcd​intab​f(x,y),dx,dy (or reverse order). Integrate from the inside out, treating the outer variable as constant during the inner integration.

    Explanation

    The order depends on the region bounds; always work from the innermost integral outward.

  24. 24

    Compute the volume under z=4−x2−y2z = 4 - x^2 - y^2z=4−x2−y2 over the square 0lexle10le xle 10lexle1, 0leyle10le yle 10leyle1.

    Model answer

    V = int_0^1 int_0^1 (4-x^2-y^2),dx,dy = rac{10}{3}.

    Explanation

    Inner integral: int_0^1 (4-x^2-y^2),dx = 4x - rac{x^3}{3} - y^2xig|_0^1 = rac{11}{3} - y^2. Outer: int_0^1 ( rac{11}{3} - y^2),dy = rac{11}{3} - rac{1}{3} = rac{10}{3}.

  25. 25

    Find the mass of a triangular plate with vertices (0,0)(0,0)(0,0), (2,0)(2,0)(2,0), (2,1)(2,1)(2,1) and density ho(x,y)=xy ho(x,y)=xyho(x,y)=xy.

    Model answer

    Mass = iint_R xy,dA = int_0^2 int_0^{x/2} xy,dy,dx = rac12.

    Explanation

    Region: xxx from 0 to 2, yyy from 0 to x/2x/2x/2. Inner: int_0^{x/2} xy,dy = x cdot rac{y^2}{2}ig|_0^{x/2} = rac{x^3}{8}. Outer: int_0^2 rac{x^3}{8},dx = rac{x^4}{32}ig|_0^2 = rac{16}{32} = rac12.

  26. 26

    Why might we change variables in a double integral?

    Model answer

    To simplify the region or integrand, especially when the region has circular symmetry (e.g., converting to polar coordinates).

    Explanation

    Changing coordinates can turn complicated bounds into simple rectangles.

  27. 27

    What is the Jacobian determinant for transforming from Cartesian to polar coordinates? Write the area element dAdAdA in polar form.

    Model answer

    The Jacobian determinant is rrr. So dA=dx,dy=r,dr,dhetadA = dx,dy = r,dr,d hetadA=dx,dy=r,dr,dheta.

    Explanation

    The factor rrr accounts for the stretching of area elements as rrr changes.

  28. 28

    Use polar coordinates to compute the volume under z=9−x2−y2z = 9 - x^2 - y^2z=9−x2−y2 above the xyxyxy-plane.

    Model answer

    Volume = int_0^{2pi} int_0^3 (9 - r^2) r,dr,d heta = rac{81pi}{2}.

    Explanation

    Region: 0lerle30le rle30lerle3, 0lehetale2pi0le hetale2pi0lehetale2pi. Integrate: inner int_0^3 (9r - r^3),dr = rac{81}{4}, outer int_0^{2pi} rac{81}{4},d heta = rac{81pi}{2}.

  29. 29

    What are the Jacobian factors for cylindrical coordinates (r,heta,zr, heta,zr,heta,z) and spherical coordinates (ho,phi,heta ho,phi, hetaho,phi,heta)?

    Model answer

    For cylindrical: dV=r,dr,dheta,dzdV = r,dr,d heta,dzdV=r,dr,dheta,dz. For spherical: dV=ho2sinphi,dho,dphi,dhetadV = ho^2 sinphi,d ho,dphi,d hetadV=ho2sinphi,dho,dphi,dheta.

    Explanation

    These factors arise from the determinant of the respective Jacobian matrices, accounting for distortion in each coordinate system.

1 of 29
Question 1 of 29

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent