10 Partial Derivatives And Multiple Integrals

Mathematics I · Unit 10 · 3 hrs

Partial Derivatives and Multiple Integrals

Exam-focused notes for Partial Derivatives and Multiple Integrals (Mathematics I, MTH117): what the TU syllabus asks and how it has actually been tested, with 14 solved past questions from this unit.

Partial Derivatives and Multiple Integrals in short

This chapter extends the ideas of limits, derivatives and integrals from functions of one variable to functions of two (or more) variables, ending with the double integral used to compute volumes and averages over a plane region.

Partial Derivatives and Multiple Integrals: notes

Limit and continuity

For a function of two variables $f(x,y)$, we say $$\lim_{(x,y)\to(a,b)} f(x,y) = L$$ if $f(x,y)$ can be made arbitrarily close to $L$ by taking $(x,y)$ sufficiently close to $(a,b)$, along every possible path of approach. Unlike the one-variable case, there are infinitely many directions of approach in the plane, so a convenient way to show a limit does not exist is to find two paths giving different values.

Worked example. Show that $\displaystyle\lim_{(x,y)\to(0,0)} \frac{xy}{x^2+y^2}$ does not exist.

Approach along the line $y=mx$ (through the origin, for a fixed slope $m$): $$f(x,mx) = \frac{x(mx)}{x^2+(mx)^2} = \frac{mx^2}{x^2(1+m^2)} = \frac{m}{1+m^2},$$ which is constant along each line but takes a different value for each choice of $m$ (for instance $0$ along $y=0$, but $\tfrac12$ along $y=x$). Since the limiting value depends on the path of approach, the limit does not exist.

A function $f(x,y)$ is continuous at $(a,b)$ if $f(a,b)$ is defined, $\displaystyle\lim_{(x,y)\to(a,b)}f(x,y)$ exists, and the two are equal, exactly as in the one-variable case.

What this unit covers

  • Limit and continuity
  • Partial derivatives
  • Tangent planes
  • Maximum and minimum values
  • Multiple integrals

Limit and continuity

2081 · 5 marks

If $f(x,y) = \frac{xy}{x^2 + y^2}$, does $\lim_{(x, y) \to (0, 0)} f(x, y)$ exist? Justify. [5]

Given data: - Function: $f(x,y) = \dfrac{xy}{x^2+y^2}$ - Point of interest: $(x,y) \to (0,0)$ - Task: determine whether the limit exists. To test a two-variable limit, approach $(0,0)$ along different paths. If limits differ, the limit does not exist. Path 1: along the x-axis ($y=0$): $$f(x,0) = ...

Open this answer on its own page →

Partial derivatives

2081 · 5 marks

If $f(x,y) = 2x^3 + x^2y^2 - y^4$, find $f_x(1,-2)$, $f_y(1,-1)$ and $f_{yx}(1,-1)$. [5]

Show solved answer

Given Data

$$f(x, y) = 2x^3 + x^2y^2 - y^4$$

Required:

  • $f_x(1, -2)$
  • $f_y(1, -1)$
  • $f_{yx}(1, -1)$

Step 1: Compute $f_x$

Differentiate with respect to $x$ (treat $y$ constant):

$$f_x = 6x^2 + 2xy^2 - 0 = 6x^2 + 2xy^2$$

Evaluate at $(1, -2)$:

$$f_x(1,-2) = 6(1)^2 + 2(1)(-2)^2 = 6 + 2(4) = 6 + 8 = 14$$


Step 2: Compute $f_y$

Differentiate with respect to $y$ (treat $x$ constant):

$$f_y = 0 + 2x^2y - 4y^3 = 2x^2y - 4y^3$$

Evaluate at $(1, -1)$:

$$f_y(1,-1) = 2(1)^2(-1) - 4(-1)^3 = -2 - 4(-1) = -2 + 4 = 2$$


Step 3: Compute $f_{yx}$

Differentiate $f_y = 2x^2y - 4y^3$ with respect to $x$:

$$f_{yx} = 4xy - 0 = 4xy$$

Evaluate at $(1, -1)$:

$$f_{yx}(1,-1) = 4(1)(-1) = -4$$


Summary

ExpressionValue
$f_x(1,-2)$$14$
$f_y(1,-1)$$2$
$f_{yx}(1,-1)$$-4$

All computations verified.

Open this answer on its own page →

2080 · 5 marks

If $f(x,y) = x^3 + x^2y^3 - 2y^2$, find $f_x(2,1)$ and $f_y(2,1)$. [5]

$$f(x, y) = x^3 + x^2y^3 - 2y^2$$ Required: $fx(2,1)$ and $fy(2,1)$. --- Differentiate with respect to $x$, treating $y$ as constant: - $\frac{\partial}{\partial x}(x^3) = 3x^2$ - $\frac{\partial}{\partial x}(x^2 y^3) = 2x y^3$ - $\frac{\partial}{\partial x}(-2y^2) = 0$ $$fx(x,y) = 3x^2 + 2xy^3$$...

Open this answer on its own page →

2079 · 5 marks

Find the partial derivative $f_{xx}$ and $f_{yy}$ of $f(x,y) = x^2 + x^3y^2 - y^2 + xy$ at $(1,2)$. [5]

  • Function: $f(x,y) = x^2 + x^3y^2 - y^2 + xy$ - Evaluation point: $(x, y) = (1, 2)$ - Required: $f{xx}$ and $f{yy}$ at $(1,2)$ --- Treat $y$ as constant: $$fx = 2x + 3x^2y^2 + y$$ $$f{xx} = \frac{\partial}{\partial x}\left(2x + 3x^2y^2 + y\right) = 2 + 6xy^2$$ Evaluate at $(1,2)$: $$f{xx}(1,2) =...
Open this answer on its own page →

2078 · 5 marks

Find the partial derivatives of $f(x, y) = x^2 + 2x^3y^2 - 3y^2 + x + y$ at (1,2). [5]

Function: $f(x, y) = x^2 + 2x^3y^2 - 3y^2 + x + y$ Point of evaluation: $(x, y) = (1, 2)$ Required: $\dfrac{\partial f}{\partial x}$ and $\dfrac{\partial f}{\partial y}$ at $(1, 2)$. --- Treat $y$ as constant: $$\frac{\partial f}{\partial x} = 2x + 2(3x^2)y^2 - 0 + 1 + 0$$ $$\boxed{\frac{\partial...

Open this answer on its own page →

2077 · 5 marks

Find the partial derivative of $f(x, y) = x^3 + 2x^3y^3 - 3y^2 + x + y$ at (2,1). [5]

Function: $$f(x, y) = x^3 + 2x^3y^3 - 3y^2 + x + y$$ Point of evaluation: $(x, y) = (2, 1)$ Required: partial derivatives $\dfrac{\partial f}{\partial x}$ and $\dfrac{\partial f}{\partial y}$ evaluated at $(2,1)$. --- $$\frac{\partial f}{\partial x} = \frac{\partial}{\partial x}\left(x^3 + 2x^3y^...

Open this answer on its own page →

2075 · 5 marks

Find $\frac{\partial z}{\partial x}$ and $\frac{\partial z}{\partial y}$ if z is defined as a function of x and y by the equation $x^3+y^3+z^3+6xyz=1$. [5]

Equation defining $z$ implicitly as a function of $x$ and $y$: $$x^3 + y^3 + z^3 + 6xyz = 1$$ Required: $\dfrac{\partial z}{\partial x}$ and $\dfrac{\partial z}{\partial y}$. Define $$F(x,y,z) = x^3 + y^3 + z^3 + 6xyz - 1 = 0$$ By the implicit function theorem: $$\frac{\partial z}{\partial x} = -...

Open this answer on its own page →

Multiple integrals

2079 · 5 marks

Solve $\int_0^3 \int_1^2 x^2y , dx , dy$ [5]

  • Integrand: $f(x,y) = x^2 y$ - Inner integral variable: $x$, limits $[1, 2]$ - Outer integral variable: $y$, limits $[0, 3]$ Treat $y$ as constant: $$\int1^2 x^2 y , dx = y \left[ \frac{x^3}{3} \right]1^2 = y\left(\frac{8}{3} - \frac{1}{3}\right) = \frac{7y}{3}$$ $$\int0^3 \frac{7y}{3} , dy = ...
Open this answer on its own page →

2077 · 10 marks

Exam Question

Part 1: Evaluate $$\int_{3}^{2} \int_{0}^{\frac{\pi}{2}} \left( y + y^{2} \cos x \right) , dx , dy$$

Part 2: Find the Maclaurin's series for $\cos x$ and prove that it represents $\cos x$ for all $x$. [5+5]

Show solved answer

Given Data

Part 1: Double integral $$\int_{3}^{2}\int_{0}^{\pi/2}(y + y^2\cos x),dx,dy$$

  • Outer limits (for $y$): from $3$ to $2$
  • Inner limits (for $x$): from $0$ to $\pi/2$

Part 2: Find Maclaurin series for $\cos x$ and prove it represents $\cos x$ for all $x$.


Part 1: Evaluate the Double Integral

The limits are literally $\int_3^2$, so I will evaluate as written.

Step 1: Inner Integral (with respect to $x$)

Treat $y$ as constant: $$I_1 = \int_0^{\pi/2}(y + y^2\cos x),dx = \left[yx + y^2\sin x\right]_0^{\pi/2}$$

$$= \left(y\cdot\frac{\pi}{2} + y^2\sin\frac{\pi}{2}\right) - (0 + 0) = \frac{\pi y}{2} + y^2$$

Step 2: Outer Integral (with respect to $y$, from 3 to 2)

$$I = \int_3^2\left(\frac{\pi y}{2} + y^2\right)dy = \left[\frac{\pi y^2}{4} + \frac{y^3}{3}\right]_3^2$$

Evaluate at upper limit $y=2$: $$\frac{\pi(4)}{4} + \frac{8}{3} = \pi + \frac{8}{3}$$

Evaluate at lower limit $y=3$: $$\frac{\pi(9)}{4} + \frac{27}{3} = \frac{9\pi}{4} + 9$$

Subtract: $$I = \left(\pi + \frac{8}{3}\right) - \left(\frac{9\pi}{4} + 9\right)$$

$$= \pi - \frac{9\pi}{4} + \frac{8}{3} - 9 = \frac{4\pi - 9\pi}{4} + \frac{8 - 27}{3}$$

$$= -\frac{5\pi}{4} - \frac{19}{3}$$

$$\boxed{\int_{3}^{2}\int_{0}^{\pi/2}(y+y^2\cos x),dx,dy = -\frac{5\pi}{4} - \frac{19}{3}}$$

If the intended (standard) orientation is $\int_2^3$, the answer is $+\left(\dfrac{5\pi}{4}+\dfrac{19}{3}\right)$.


Part 2: Maclaurin's Series for $\cos x$

Finding the Series

The Maclaurin series is: $$f(x) = \sum_{n=0}^{\infty}\frac{f^{(n)}(0)}{n!}x^n$$

Let $f(x)=\cos x$:

$n$$f^{(n)}(x)$$f^{(n)}(0)$
0$\cos x$$1$
1$-\sin x$$0$
2$-\cos x$$-1$
3$\sin x$$0$
4$\cos x$$1$

Odd derivatives vanish at $0$; even derivatives satisfy $f^{(2n)}(0)=(-1)^n$. Hence:

$$\cos x = \sum_{n=0}^{\infty}\frac{(-1)^n}{(2n)!}x^{2n} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots$$

Proof of Convergence to $\cos x$ for all $x$

By Taylor's theorem, $\cos x = P_n(x) + R_n(x)$ where the Lagrange remainder is: $$R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}x^{n+1}, \quad c \text{ between } 0 \text{ and } x$$

Every derivative of $\cos x$ is $\pm\sin x$ or $\pm\cos x$, so: $$\left|f^{(n+1)}(c)\right| \le 1 \quad \text{for all } c$$

Therefore: $$|R_n(x)| \le \frac{|x|^{n+1}}{(n+1)!}$$

For any fixed $x$, the standard limit holds: $$\lim_{n\to\infty}\frac{|x|^{n+1}}{(n+1)!} = 0$$

(These are the terms of the convergent series for $e^{|x|}$, so they tend to $0$.)

By the squeeze theorem, $\lim_{n\to\infty}|R_n(x)| = 0$ for every real $x$.

Conclusion: Since the remainder tends to zero for all $x \in \mathbb{R}$, the Maclaurin series converges to $\cos x$ for all real $x$: $$\cos x = \sum_{n=0}^{\infty}\frac{(-1)^n}{(2n)!}x^{2n}, \quad \forall x \in \mathbb{R} \qquad \blacksquare$$

Open this answer on its own page →

2075 · 10 marks

Question

If $f(x,y) = \frac{y}{x}$, show that $\lim_{(x,y)\to(0,0)} \frac{f(x,y)}{x}$ does not exist, justify.

Calculate $\iint_R f(x,y) dA$, for $f(x,y) = 100 - 6x^2y$, and $R: 0 \leq x \leq 2, -1 \leq y \leq 1$. [5+5]

  • $f(x,y) = \dfrac{y}{x}$ - Required: examine $\displaystyle\lim{(x,y)\to(0,0)} \frac{f(x,y)}{x}$ $$\frac{f(x,y)}{x} = \frac{y/x}{x} = \frac{y}{x^2}$$ For a limit to exist, it must yield the same finite value along every path to $(0,0)$. Path 1: $y = 0$ (x-axis) $$\lim{x\to 0}\frac{0}{x^2} = 0$$ ...
Open this answer on its own page →

Maximum and minimum values

2078 · 5 marks

Find the local maximum and minimum values, saddle points of $f(x,y) = x^4 + y^4 - 4xy + 1$. [5]

Show solved answer

Local Maxima, Minima, and Saddle Points of $f(x,y) = x^4 + y^4 - 4xy + 1$

Given

Function: $f(x,y) = x^4 + y^4 - 4xy + 1$

Step 2: Find Critical Points

$$ f_x = 4x^3 - 4y = 0 \Rightarrow y = x^3 \tag{1} $$

$$ f_y = 4y^3 - 4x = 0 \Rightarrow x = y^3 \tag{2} $$

Substitute (1) into (2): $$x = (x^3)^3 = x^9 \Rightarrow x^9 - x = 0 \Rightarrow x(x^8 - 1) = 0$$

So $x = 0$ or $x = \pm 1$.

  • $x = 0 \Rightarrow y = 0$: point $(0,0)$
  • $x = 1 \Rightarrow y = 1$: point $(1,1)$
  • $x = -1 \Rightarrow y = -1$: point $(-1,-1)$

Step 3: Second Derivative Test

$$f_{xx} = 12x^2, \quad f_{yy} = 12y^2, \quad f_{xy} = -4$$ $$D = f_{xx}f_{yy} - (f_{xy})^2 = 144x^2y^2 - 16$$

At $(0,0)$: $$D = 144(0) - 16 = -16 < 0 \Rightarrow \text{Saddle point}$$

At $(1,1)$: $$D = 144(1)(1) - 16 = 128 > 0, \quad f_{xx} = 12 > 0 \Rightarrow \text{Local minimum}$$ $$f(1,1) = 1 + 1 - 4 + 1 = -1$$

At $(-1,-1)$: $$D = 144(1)(1) - 16 = 128 > 0, \quad f_{xx} = 12 > 0 \Rightarrow \text{Local minimum}$$ $$f(-1,-1) = 1 + 1 - 4(-1)(-1) + 1 = 1 + 1 - 4 + 1 = -1$$

Summary

Point$D$$f_{xx}$Conclusion
$(0,0)$$-16$--Saddle point
$(1,1)$$128$$12$Local minimum, $f = -1$
$(-1,-1)$$128$$12$Local minimum, $f = -1$

Local minimum value: $-1$ at $(1,1)$ and $(-1,-1)$ Saddle point: $(0,0)$ No local maximum exists.

Open this answer on its own page →

2077 · 5 marks

Find the local maximum and minimum values, saddle points of $f(x,y) = x^4 + y^4 - 4xy + 1$. [5]

Show solved answer

Local Extrema and Saddle Points of $f(x,y) = x^4 + y^4 - 4xy + 1$

Given

Function: $f(x,y) = x^4 + y^4 - 4xy + 1$

Step 2: First-Order Partial Derivatives (Critical Points)

$$ f_x = 4x^3 - 4y = 0 ;\Rightarrow; y = x^3 \tag{1} $$

$$ f_y = 4y^3 - 4x = 0 ;\Rightarrow; x = y^3 \tag{2} $$

Substitute (1) into (2):

$$x = (x^3)^3 = x^9 ;\Rightarrow; x^9 - x = 0 ;\Rightarrow; x(x^8 - 1) = 0$$

So $x = 0$ or $x^8 = 1 \Rightarrow x = \pm 1$.

  • $x = 0 \Rightarrow y = 0$ → $(0,0)$
  • $x = 1 \Rightarrow y = 1$ → $(1,1)$
  • $x = -1 \Rightarrow y = -1$ → $(-1,-1)$

Step 3: Second-Derivative Test

$$f_{xx} = 12x^2, \quad f_{yy} = 12y^2, \quad f_{xy} = -4$$

$$D = f_{xx}f_{yy} - (f_{xy})^2 = 144x^2y^2 - 16$$

At $(0,0)$: $$D = 144(0)(0) - 16 = -16 < 0 ;\Rightarrow; \textbf{saddle point}$$

At $(1,1)$: $$D = 144(1)(1) - 16 = 128 > 0, \quad f_{xx} = 12 > 0 ;\Rightarrow; \textbf{local minimum}$$ $$f(1,1) = 1 + 1 - 4 + 1 = -1$$

At $(-1,-1)$: $$D = 144(1)(1) - 16 = 128 > 0, \quad f_{xx} = 12 > 0 ;\Rightarrow; \textbf{local minimum}$$ $$f(-1,-1) = 1 + 1 - 4 + 1 = -1$$

Summary

Point$D$$f_{xx}$TypeValue
$(0,0)$$-16$-Saddle$1$
$(1,1)$$128$$12$Local min$-1$
$(-1,-1)$$128$$12$Local min$-1$

Conclusion: No local maximum. Local minimum value $-1$ at $(1,1)$ and $(-1,-1)$. Saddle point at $(0,0)$.

Open this answer on its own page →

2075 · 5 marks

Find the extreme values of the function $f(x,y) = x^2 + 2y^2$ on the circle $x^2 + y^2 = 1$. [5]

  • Objective function: $f(x,y) = x^2 + 2y^2$ - Constraint: $g(x,y) = x^2 + y^2 - 1 = 0$ Set $\nabla f = \lambda \nabla g$. $$fx = 2x,\quad fy = 4y,\qquad gx = 2x,\quad gy = 2y$$ System of equations: $$ 2x = \lambda(2x) ;\Rightarrow; 2x(1-\lambda) = 0 \tag{1} $$ $$ 4y = \lambda(2y) ;\Rightarrow...
Open this answer on its own page →

2074 · 5 marks

Find the extreme values of $f(x,y) = y^2 - x^2$. [5]

Function: $f(x,y) = y^2 - x^2$ No other numeric data required; this is a standard extremum problem. $$fx = -2x, \qquad fy = 2y$$ Set to zero: $$-2x = 0 \Rightarrow x = 0, \qquad 2y = 0 \Rightarrow y = 0$$ Critical point: $(0, 0)$. $$f{xx} = -2, \qquad f{yy} = 2, \qquad f{xy} = 0$$ $$D = f{xx},f{...

Open this answer on its own page →