Docsity

Partial Derivatives: Multivariable Functions & Applications – Study Notes, Summaries of Mathematics

Toggle sidebar
bg1
Partial Derivatives: Multivariable Functions & Applications – Study Notes Mathematics Study Notes
Page 1 · Introduction to Multivariable Functions Page 1 of 5
Partial Derivatives: Multivariable Functions & Applications – Study Notes
Mathematics · High School & College · 5-page revision guide: definitions, methods, 15 worked examples, practice & answers
Page 1 · Introduction to Multivariable Functions
1.1 Functions of two or more variables
Definition
A function of two variables assigns to every ordered pair (x, y) in a set D ⊆ ℝ2 exactly one real number z = f(x, y). The inputs x and y are
the independent variables; z is the dependent variable (output). Likewise w = f(x, y, z) has three variables (D ⊆ ℝ3). D is the domain;
the set of all outputs is the range.
1.2 Single-variable vs multivariable functions
Feature Single-variable: y = f(x) Multivariable: z = f(x, y)
Inputs one number x two or more numbers (x, y, …)
Graph a curve in the xy-plane (2D) a surface in xyz-space (3D)
Domain a subset of the number line ℝ a subset of the plane ℝ2 (or ℝ3, …)
Rate of change one slope, f′(x) one slope for each input direction: fx, fy
1.3 Notation, evaluation, domain and range
Notation: z = f(x, y), f(x, y) = x2 + y2, w = f(x, y, z). To evaluate f(a, b), replace x by a and y by b everywhere, then simplify.
Domain = all (x, y) for which f(x, y) is a real number. Check: (i) denominators ≠ 0, e.g. 1/(x − y) needs x ≠ y; (ii) even roots need radicand ≥
0, e.g. √(x + y) needs x + y ≥ 0; (iii) logarithms need a positive argument, e.g. ln(xy) needs xy > 0. Range = all values z that actually occur.
1.4 Partial derivatives: the idea and the ∂ notation
Picture a hillside of height z = f(x, y). Walking east (x changes, y fixed) the steepness you feel is ∂f/∂x. Walking north (y changes, x fixed) it is
∂f/∂y. A partial derivative measures how f changes when one input changes while every other input is held constant. The curly symbol ∂
("partial") replaces d to warn us that f depends on several variables: ∂f/∂x is read "partial f, partial x" and is also written fx.
Fig. 1 – Left: the surface z = x² + y² with the slice y = 1 (the slope of that red curve at P is ∂f/∂x). Right: the domain of Example 2.
1.5 Comparison: ordinary derivative vs partial derivative
Feature Ordinary derivative Partial derivative
Function y = f(x), one variable z = f(x, y), two or more variables
Notation dy/dx, f′(x) ∂f/∂x, ∂f/∂y, fx, fy
Geometric meaning slope of the tangent line to a curve slope of the surface in one coordinate direction
Other variables none held constant while differentiating
Example f = x2 ⇒ f′ = 2x f = x2y ⇒ fx = 2xy and fy = x2
Worked examples
Example 1. Evaluate f(x, y) = 3x2 − 2xy + y3 at (2, −1).
f(2, −1) = 3(2)2 − 2(2)(−1) + (−1)3
= 12 + 4 − 1 = 15.
Example 2. Find the domain and range of f(x, y) = √(9 − x2 − y2).
Need 9 − x2 − y2 ≥ 0, so x2 + y2 ≤ 9: the closed disk of radius 3 (Fig.
1).
Largest output f(0, 0) = 3; on the circle f = 0. Range: 0 ≤ z ≤ 3.
Example 3. For f(x, y) = x2 + y2, find the slope of the surface at P(2, 1) (a) in the x-direction and (b) in the y-direction.
(a) Hold y = 1: f(x, 1) = x2 + 1, whose derivative is 2x. At x = 2 the slope is 4, so fx(2, 1) = 4.
(b) Hold x = 2: f(2, y) = 4 + y2, whose derivative is 2y. At y = 1 the slope is 2, so fy(2, 1) = 2. Meaning: at P the surface rises 4 units per unit step
east and 2 units per unit step north.
pf3
pf4
pf5

Partial preview of the text

Download Partial Derivatives: Multivariable Functions & Applications – Study Notes and more Summaries Mathematics in PDF only on Docsity!

Page 1 · Introduction to Multivariable Functions Page 1 of 5

Partial Derivatives: Multivariable Functions & Applications – Study Notes

Mathematics · High School & College · 5-page revision guide: definitions, methods, 15 worked examples, practice & answers

Page 1 · Introduction to Multivariable Functions

1.1 Functions of two or more variables

Definition A function of two variables assigns to every ordered pair (x, y) in a set D ⊆ ℝ^2 exactly one real number z = f(x, y). The inputs x and y are the independent variables ; z is the dependent variable (output). Likewise w = f(x, y, z) has three variables (D ⊆ ℝ^3 ). D is the domain ; the set of all outputs is the range.

1.2 Single-variable vs multivariable functions

Feature Single-variable: y = f(x) Multivariable: z = f(x, y) Inputs one number x two or more numbers (x, y, …) Graph a curve in the xy-plane (2D) a surface in xyz-space (3D) Domain a subset of the number line ℝ a subset of the plane ℝ^2 (or ℝ^3 , …) Rate of change one slope, f′(x) one slope for each input direction: fx, fy

1.3 Notation, evaluation, domain and range

Notation: z = f(x, y), f(x, y) = x^2 + y^2 , w = f(x, y, z). To evaluate f(a, b), replace x by a and y by b everywhere, then simplify. Domain = all (x, y) for which f(x, y) is a real number. Check: (i) denominators ≠ 0, e.g. 1/(x − y) needs x ≠ y; (ii) even roots need radicand ≥ 0, e.g. √(x + y) needs x + y ≥ 0; (iii) logarithms need a positive argument, e.g. ln(xy) needs xy > 0. Range = all values z that actually occur.

1.4 Partial derivatives: the idea and the ∂ notation

Picture a hillside of height z = f(x, y). Walking east (x changes, y fixed) the steepness you feel is ∂f/∂x. Walking north (y changes, x fixed) it is ∂f/∂y. A partial derivative measures how f changes when one input changes while every other input is held constant. The curly symbol ∂ ("partial") replaces d to warn us that f depends on several variables: ∂f/∂x is read "partial f, partial x" and is also written fx.

Fig. 1 – Left: the surface z = x² + y² with the slice y = 1 (the slope of that red curve at P is ∂f/∂x). Right: the domain of Example 2.

1.5 Comparison: ordinary derivative vs partial derivative

Feature Ordinary derivative Partial derivative Function y = f(x), one variable z = f(x, y), two or more variables Notation dy/dx, f′(x) ∂f/∂x, ∂f/∂y, fx, fy Geometric meaning slope of the tangent line to a curve slope of the surface in one coordinate direction Other variables none held constant while differentiating Example f = x^2 ⇒ f′ = 2x f = x^2 y ⇒ fx = 2xy and fy = x^2

Worked examples

Example 1. Evaluate f(x, y) = 3x^2 − 2xy + y^3 at (2, −1). f(2, −1) = 3(2)^2 − 2(2)(−1) + (−1)^3 = 12 + 4 − 1 = 15.

Example 2. Find the domain and range of f(x, y) = √(9 − x^2 − y^2 ). Need 9 − x^2 − y^2 ≥ 0, so x^2 + y^2 ≤ 9: the closed disk of radius 3 (Fig. 1). Largest output f(0, 0) = 3; on the circle f = 0. Range: 0 ≤ z ≤ 3.

Example 3. For f(x, y) = x^2 + y^2 , find the slope of the surface at P(2, 1) (a) in the x-direction and (b) in the y-direction. (a) Hold y = 1: f(x, 1) = x^2 + 1, whose derivative is 2x. At x = 2 the slope is 4 , so fx(2, 1) = 4. (b) Hold x = 2: f(2, y) = 4 + y^2 , whose derivative is 2y. At y = 1 the slope is 2 , so fy(2, 1) = 2. Meaning: at P the surface rises 4 units per unit step east and 2 units per unit step north.

Page 2 · First-Order Partial Derivatives Page 2 of 5

Page 2 · First-Order Partial Derivatives

2.1 Definition of ∂f/∂x and ∂f/∂y

Definition For z = f(x, y): ∂f/∂x = fx = limh→0 [ f(x + h, y) − f(x, y) ] / h (only x changes; y is a constant) ∂f/∂y = fy = limh→0 [ f(x, y + h) − f(x, y) ] / h (only y changes; x is a constant) In practice we never use the limit: we use the ordinary differentiation rules with the "other" variable treated as a number.

2.2 Step-by-step method

1. Choose the variable to differentiate by (x for fx, y for fy). 2. Treat every other variable as a constant. 3. Differentiate with the usual rules: power, product, quotient, chain. 4. If a point (a, b) is given, substitute after differentiating.

Constants: what vanishes, what stays ∂/∂x (5y^3 ) = 0 (no x at all), but ∂/∂x (5y^3 x) = 5y^3 (a constant multiplier stays). With the chain rule: ∂/∂y e3y^ = 3e3y.

2.3 Gradient notation (introduction)

Gradient Collect the partial derivatives into one vector: ∇f = (fx, fy) = fx i + fy j ("del f" or "grad f"); for three variables ∇f = (fx, fy, fz). The gradient points in the direction of fastest increase of f, and its length |∇f| = √(fx^2 + fy^2 ) is that greatest rate of increase.

2.4 Formula / reference table

Function f(x, y) fx = ∂f/∂x^ fy = ∂f/∂y c (constant) 0 0 ax + by + c a b xmyn^ m xm−1^ yn^ n xm^ yn− eax+by^ a eax+by^ b eax+by sin(ax + by) a cos(ax + by) b cos(ax + by) cos(ax + by) −a sin(ax + by) −b sin(ax + by) ln(ax + by) a / (ax + by) b / (ax + by) u·v (product of two functions of x, y) uxv + u vx uyv + u vy

2.5 Visual: change in the x-direction and in the y-direction

Fig. 2 – For f = x² + y² at P(2, 1): moving in x with y fixed gives the slice z = x² + 1 (slope 4); moving in y with x fixed gives z = 4 + y² (slope 2).

Worked examples

Example 4. Find fx, fy for f = x^3 y^2 + 4x − 5y, then evaluate at (1, 2). fx: 3x^2 y^2 + 4 + 0 = 3x^2 y^2 + 4. fy: 2x^3 y + 0 − 5 = 2x^3 y − 5. At (1, 2): fx = 3(1)(4) + 4 = 16 ; fy = 2(1)(2) − 5 = −.

Example 5. Find fx, fy for f = x^2 e3y. fx: e3y^ is a constant factor, so fx = 2x e3y. fy: x^2 is constant; chain rule gives d/dy e3y^ = 3e3y, so fy = 3x^2 e3y.

Example 6. Find fx, fy for f = x sin y + y cos x, then evaluate at (π, π/2). fx = sin y + y(−sin x) = sin y − y sin x. fy = x cos y + cos x. At (π, π/2): fx = sin(π/2) − (π/2) sin π = 1 − 0 = 1 ; fy = π cos(π/2) + cos π = 0 − 1 = −.

Example 7. Find ∇f at (1, 2, −1) for f(x, y, z) = x^2 y + yz^2 , and |∇f|. fx = 2xy, fy = x^2 + z^2 , fz = 2yz. At (1, 2, −1): (4, 2, −4), so ∇f = (4, 2, −4). |∇f| = √(16 + 4 + 16) = √36 = 6.

Page 4 · Applications of Partial Derivatives Page 4 of 5

Page 4 · Applications of Partial Derivatives

4.1 Key ideas

Rate of change. fx(a, b) is the instantaneous rate of change of f with respect to x at (a, b) with y fixed (similarly fy). For small steps: Δf ≈ fxΔx + fyΔy. Tangent plane (intro). Near (a, b) a smooth surface looks like a flat plane: z = f(a, b) + fx(a, b)(x − a) + fy(a, b)(y − b). It gives linear approximations. Gradient. ∇f points in the direction of greatest increase ; the greatest rate is |∇f|; −∇f is steepest descent; ∇f is perpendicular to the level curve through the point.

Critical points. Points where fx = 0 and fy = 0 (candidates for max, min or saddle). Second-derivative test. At a critical point let D = fxxfyy − (fxy)^2 :

  • D > 0 and fxx > 0 → local minimum
  • D > 0 and fxx < 0 → local maximum
  • D < 0 → saddle point ; D = 0 → test inconclusive

4.2 Where partial derivatives are used

Field Model Meaning of the partial derivatives Economics Q(L, K): output from labour L and capital K ∂Q/∂L = marginal product of labour (extra output per extra worker, K fixed) Physics T(x, y): temperature on a metal plate ∂T/∂x = temperature change per metre in x; ∇T points to fastest heating Engineering V = πr^2 h: volume of a cylinder ∂V/∂r = 2πrh and ∂V/∂h = πr^2 : sensitivity of V to errors in r or h Optimization P(x, y): profit from two products Px = Py = 0 locates the best production levels

4.3 Visuals: tangent plane and gradient

Fig. 4 – Left: the plane z = 2x + 4y − 5 touches z = x² + y² at P(1, 2, 5) (Example 13). Right: ∇T at P is perpendicular to the level curve and points toward the hot centre (Example 12).

4.4 Problem-solving strategy for max / min problems

1. Write the quantity to optimise as f(x, y). 2. Compute fx, fy; solve fx = 0 and fy = 0 together. 3. Compute fxx, fyy, fxy. 4. At each critical point find D = fxxfyy − (fxy)^2. 5. Classify (min / max / saddle) using the test in 4.1. 6. Find f at the point; state the answer with units.

Fig. 5 – z = x² + y² (min), z = −x² − y² (max), z = x² − y² (saddle).

Worked examples

Example 12. Temperature on a plate is T(x, y) = 50 − x^2 − 2y^2 °C (x, y in metres). At P(1, 2) find Tx, Ty, ∇T and the greatest rate of increase. Tx = −2x → −2 °C/m; Ty = −4y → −8 °C/m. ∇T = (−2, −8) : temperature rises fastest toward (−2, −8), i.e. toward the centre. Greatest rate = |∇T| = √(4 + 64) = √68 = 2√17 ≈ 8.25 °C/m.

Example 13. Find the tangent plane to z = x^2 + y^2 at (1, 2) and estimate f(1.1, 1.9). f(1, 2) = 5; fx = 2x = 2; fy = 2y = 4. z = 5 + 2(x − 1) + 4(y − 2) = 2x + 4y − 5. f(1.1, 1.9) ≈ 2.2 + 7.6 − 5 = 4.8 (exact: 1.21 + 3.61 = 4.82).

Example 14. Find and classify the critical points of f = x^3 + y^3 − 3xy. fx = 3x^2 − 3y = 0 ⇒ y = x^2 ; fy = 3y^2 − 3x = 0 ⇒ x = y^2. Then x = x^4 ⇒ x(x^3 − 1) = 0 ⇒ x = 0 or 1. Critical points: (0, 0) and (1, 1). fxx = 6x, fyy = 6y, fxy = −3, so D = 36xy − 9. (0, 0): D = −9 < 0 → saddle. (1, 1): D = 27 > 0, fxx = 6 > 0 → local minimum , f(1, 1) = −1.

Example 15. Profit P(x, y) = 40x + 50y − x^2 − y^2 − xy (thousand $). Find the maximum. Px = 40 − 2x − y = 0 and Py = 50 − 2y − x = 0. From the first, y = 40 − 2x; substitute: 50 − 80 + 4x − x = 0 ⇒ x = 10, y = 20. Pxx = −2, Pyy = −2, Pxy = −1: D = 4 − 1 = 3 > 0 and Pxx < 0 → maximum. P(10, 20) = 400 + 1000 − 100 − 400 − 200 = 700 (thousand $).

Page 5 · Formula Sheet, Exam Tips & Quick Revision Page 5 of 5

Page 5 · Formula Sheet, Exam Tips & Quick Revision

5.1 Formula sheet

Topic Formula / rule Notation z = f(x, y); w = f(x, y, z); domain D ⊆ ℝ^2 (or ℝ^3 ) First-order fx = ∂f/∂x = limh→0 [f(x+h, y) − f(x, y)]/h; fy = ∂f/∂y = limh→0 [f(x, y+h) − f(x, y)]/h (other variable constant) Basic rules ∂/∂x xmyn^ = m xm−1yn; ∂/∂x eax+by^ = a eax+by; ∂/∂x sin(ax+by) = a cos(ax+by); ∂/∂x cos(ax+by) = −a sin(ax+by) Second-order fxx = ∂^2 f/∂x^2 ; fyy = ∂^2 f/∂y^2 ; fxy = ∂^2 f/∂y∂x; fyx = ∂^2 f/∂x∂y Mixed partials fxy = fyx when both are continuous (Clairaut–Schwarz) Gradient ∇f = (fx, fy); |∇f| = √(fx^2 + fy^2 ); steepest ascent direction = ∇f/|∇f| Critical point fx(a, b) = 0 and fy(a, b) = 0 Second-derivative test D = fxxfyy − (fxy)^2 : D > 0, fxx > 0 → min; D > 0, fxx < 0 → max; D < 0 → saddle; D = 0 → inconclusive Tangent plane z = f(a, b) + fx(a, b)(x − a) + fy(a, b)(y − b); linear approximation Δf ≈ fxΔx + fyΔy

5.2 Common mistakes, exam tips and checklist

Common mistakes

  • Differentiating y as well: ∂/∂y (x^2 y) = x^2 , not 2xy.
  • Writing d instead of ∂ for partial derivatives.
  • Forgetting the inner factor: ∂/∂x e3xy^ = 3y e3xy.
  • Substituting x = a before differentiating with respect to x (this gives 0).
  • Mixing the order in fxy (x first, then y).
  • Ignoring D = 0, or classifying with fxx alone.
  • Giving only the critical point; also give f(a, b) if asked.

Exam tips

  • Write "treat y as constant" in your working: it earns method marks.
  • Differentiate first, then substitute the point.
  • Check fxy = fyx; if they differ, recheck.
  • Sketch or state the domain before using a formula.
  • For max/min: solve fx = fy = 0 together , find all solutions.
  • Include units and a one-line conclusion in word problems.

Problem-solving checklist ☐ Variables and domain identified ☐ Correct variable chosen, others held constant ☐ Rules applied (power, product, chain) ☐ Second derivatives found and mixed pair checked ☐ Point substituted at the end ☐ Critical points classified with D ☐ Answer stated with units

5.3 Which tool do I use? (quick decision guide)

If the question asks for… Use… the slope / rate of change in the x- (or y-) direction fx (or fy), evaluated at the given point the direction or rate of fastest increase; an estimate near (a, b) ∇f and |∇f|; tangent plane / Δf ≈ fxΔx + fyΔy maximum, minimum or best production level fx = fy = 0, then D = fxxfyy − (fxy)^2

5.4 Practice questions

Practice 1. Find fx, fy for f = 3x^2 y − 4y^3 + 7. Practice 2. Find fx, fy for f = e2x^ sin(3y). Practice 3. For f = x^4 y − 3x^2 y^3 find fxx, fyy, fxy.

Practice 4. Find the tangent plane to z = √(x^2 + y^2 ) at (3, 4). Practice 5. Find and classify the critical point of f = x^2 + xy + y^2 − 3x. Practice 6. For f = x^2 y at (2, 1) find ∇f and the greatest rate of increase.

5.5 Answer key

Q Answer 1 fx = 6xy; fy = 3x^2 − 12y^2 2 fx = 2e2x^ sin(3y); fy = 3e2x^ cos(3y) 3 fxx = 12x^2 y − 6y^3 ; fyy = −18x^2 y; fxy = 4x^3 − 18xy^2 (= fyx) 4 f(3, 4) = 5, fx = 3/5, fy = 4/5 ⇒ z = 5 + (3/5)(x − 3) + (4/5)(y − 4) = (3x + 4y)/ 5 fx = 2x + y − 3 = 0, fy = x + 2y = 0 ⇒ (2, −1); D = 4 − 1 = 3 > 0, fxx = 2 > 0 → local minimum, f(2, −1) = − 6 ∇f = (2xy, x^2 ) = (4, 4) at (2, 1); greatest rate = |∇f| = √32 = 4√2 ≈ 5.66, direction (1, 1)/√

5.6 Quick revision summary

  • A multivariable function z = f(x, y) has a surface graph; its partial derivatives are slopes in the coordinate directions.
  • ∂f/∂x: differentiate with respect to x, treating y as a constant (and vice versa for ∂f/∂y). Use ∂, not d.
  • Four second derivatives: fxx, fyy, fxy, fyx; for the functions in this course fxy = fyx.
  • Gradient ∇f = (fx, fy) points to steepest increase; its length is the greatest rate of change.
  • Tangent plane: z = f(a, b) + fx(x − a) + fy(y − b), used for linear approximation.
  • Critical points: fx = fy = 0; classify with D = fxxfyy − (fxy)^2 (min, max, saddle).