Questions on Triple Integration
Triple Integration
Triple Integration
1. Introduction
Let $f(x,y,z)$ be a continuous function defined on a closed and bounded region $V \subset \mathbb{R}^3$. The triple integral of $f$ over $V$ is defined as
$$ \iiint_V f(x,y,z)\, dV $$
It represents the limit of Riemann sums:
$$ \iiint_V f(x,y,z)\, dV = \lim_{\max \Delta V_i \to 0} \sum f(x_i,y_i,z_i)\,\Delta V_i $$
provided the limit exists.
If $f(x,y,z)=1$, then the triple integral reduces to:
$$ \iiint_V 1\, dV = \text{Volume of } V $$
In practical computation, triple integrals are evaluated as iterated integrals:
$$ \iiint_V f(x,y,z)\, dV = \int_a^b \int_{g_1(x)}^{g_2(x)} \int_{h_1(x,y)}^{h_2(x,y)} f(x,y,z)\, dz\, dy\, dx $$
The order of integration may be changed whenever convenient.
#
2. Explanation
Think of a double integral as adding up tiny rectangles to find the area of a region. A triple integral does the same thing in three dimensions — it adds up tiny boxes (small volumes) to find:
- Volume of a solid
- Mass (if density is given)
- Center of mass
- Physical quantities in engineering
Imagine breaking a solid object into many very small cubes. If we add up the value of the function at each cube times its small volume, we get the triple integral.
If we integrate just $1$, we simply get the volume:
$$ \iiint_V 1\, dV = \text{Volume} $$
3. Geometric Interpretation (3D Illustration)
Small Volume Elements Inside a Solid:
Projection of a Solid onto the xy-plane:
Common Coordinate Systems:
- Cartesian: $dV = dx\,dy\,dz$
- Cylindrical: $dV = r\,dr\,d\theta\,dz$
- Spherical: $dV = \rho^2 \sin\phi\, d\rho\, d\phi\, d\theta$
Summary
A triple integral allows us to measure quantities distributed throughout a three-dimensional region. It generalizes area (double integrals) to volume and physical applications in space.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Triple Integrals – Solved Examples
Example 1
Evaluate:
$$ \int_{0}^{1}\int_{0}^{1-y}\int_{0}^{1-y-z} z \, dx \, dz \, dy $$Solution:
$$ = \int_{0}^{1}\int_{0}^{1-y} z(1-y-z)\, dz\, dy $$ $$ = \int_{0}^{1}\int_{0}^{1-y} \left[(1-y)z - z^2\right] dz\, dy $$ $$ = \int_{0}^{1} \left[ \frac{(1-y)z^2}{2} - \frac{z^3}{3} \right]_0^{1-y} dy $$ $$ = \int_{0}^{1} \left[ \frac{(1-y)^3}{2} - \frac{(1-y)^3}{3} \right] dy $$ $$ = \frac{1}{6}\int_{0}^{1}(1-y)^3 dy $$ $$ = \frac{1}{6}\left[\frac{(1-y)^4}{-4}\right]_0^1 $$ $$ = \frac{1}{24} $$Geometric Region:
Example 2
Evaluate:
$$ \iiint_V dV $$ where $$1 \le x \le 2,\quad 2 \le y \le 4,\quad 2 \le z \le 5.$$Solution:
$$ = \int_{2}^{4}\int_{1}^{2}\int_{2}^{5} dz\, dx\, dy $$ $$ = \int_{2}^{4}\int_{1}^{2} 3\, dx\, dy $$ $$ = \int_{2}^{4} 3(1)\, dy $$ $$ = 3[y]_2^4 $$ $$ = 6 $$Region (Rectangular Box):
Example 3
Evaluate:
$$ \iiint_V 2x\, dV $$ where $V$ lies under the plane $$2x + 3y + z = 6$$ in the first octant.Region Description:
$$ 0 \le z \le 6 - 2x - 3y $$ Projection on $xy$-plane: $$ 0 \le x \le 3, \quad 0 \le y \le \frac{6-2x}{3} $$Integral:
$$ \int_0^3 \int_0^{(6-2x)/3} 2x(6-2x-3y)\, dy\, dx $$ $$ = \int_0^3 \left(\frac{4}{3}x^3 - 8x^2 + 12x\right) dx $$ $$ = 9 $$Solid Figure:
Example 4
Evaluate:
$$ \iiint_V z(x^2+y^2)\, dV $$ over the cylinder $$x^2+y^2 \le 1$$ between $z=2$ and $z=3$.Integral Setup:
$$ = \int_{-1}^{1}\int_{-\sqrt{1-y^2}}^{\sqrt{1-y^2}} \int_2^3 z(x^2+y^2)\, dz\, dx\, dy $$ $$ = \frac{5}{2}\int_{-1}^{1}\int_{-\sqrt{1-y^2}}^{\sqrt{1-y^2}} (x^2+y^2)\, dx\, dy $$ Using $y=\sin\theta$, $$ = \frac{10}{3}\int_0^{\pi/2} \cos^4\theta\, d\theta + 10\int_0^{\pi/2} \sin^2\theta\cos^2\theta\, d\theta $$ $$ = \frac{5\pi}{4} $$Cylinder Region:
Final Answers
- Example 2: 1/24
- Example 3: 6
- Example 4: 9
- Example 5: 5ฯ/4
Double Integration
Double Integration: Solved Examples with Graphs
Understanding Double Integration
Double integration extends the concept of a single integral to functions of two variables, $$f(x, y)$$. Geometrically, it represents the volume under a surface within a given region $$D$$.
Example 1: Rectangular Bounds
Evaluate $$\iint_R (x + 2y) \, dA$$ over $$R = [0, 1] \times [0, 2]$$.
Example 2: Polar Transformation
Find the area of a circle with radius $$a$$.
$$\iint_D dA = \int_{0}^{2\pi} \int_{0}^{a} r \, dr \, d\theta$$ Step 1: Radial Integral $$\int_{0}^{a} r \, dr = \left[ \frac{r^2}{2} \right]_{0}^{a} = \frac{a^2}{2}$$ Step 2: Angular Integral $$\int_{0}^{2\pi} \frac{a^2}{2} \, d\theta = \left[ \frac{a^2 \theta}{2} \right]_{0}^{2\pi} = \pi a^2$$Example 3: Triangular Region
Evaluate \[ \iint_R xy\,dA \] where \(R\) is bounded by \(y=0,\; y=x,\; x=2\).
Example 4: Area Between Curves
Find the area bounded by \(y=x^2\) and \(y=4\).
Example 5: Circular Region
Evaluate \[ \iint_R (x^2+y^2)\,dA \] where \(x^2+y^2 \le 1\).
Example 6: Region Between Two Curves
Evaluate \[ \iint_R y\,dA \] where \(y=x^2\) and \(y=x\).
Double Integration: 7 Solved Examples with Step-by-Step Solutions
Double integration is used to calculate the area of a 2D region or the volume under a 3D surface. Here are four essential examples.
Example 1: Rectangular Region
Evaluate $$\iint_R (8x + 6y) \, dA$$ where $$R = [0, 1] \times [0, 2]$$.
Example 8: Triangular Region (Type I)
Evaluate $$\iint_D xy^2 \, dA$$ for the triangle with vertices (0,0), (2,0), (2,1).
Example 9: Polar Coordinates
Evaluate $$\iint_D (x^2 + y^2) \, dA$$ where $$D$$ is the unit circle.
Example 10: Volume of Paraboloid
Find volume under $$z = 1 - x^2 - y^2$$ above the xy-plane.
Graphs generated for educational purposes. For interactive 3D plots, use GeoGebra 3D.
Weighted Sampling
What is Weighted Sampling?
Weighted sampling is a sampling technique where each item is assigned a weight, and the probability of selecting that item is proportional to its weight.
Higher weight $\Rightarrow$ higher chance of being selected
Lower weight $\Rightarrow$ lower chance (but usually not zero)
Mathematical Definition
Given $n$ items with weights:
$ w_1, w_2, \dots, w_n $
The probability of selecting item $i$ is:
$ P(i) = \frac{w_i}{\sum_{j=1}^{n} w_j} $
Example: weights $[1,3,6] \Rightarrow [0.1,0.3,0.6]$
Visual Intuition
Weighted bar representation:
A | █ B | ███ C | ██████
Flattened view:
| A | B B B | C C C C C C |
Sampling is equivalent to picking a random point on this bar. Larger segments correspond to higher probability.
Four Examples of Weighted Sampling
- Lottery: More tickets $\Rightarrow$ higher winning chance
- Online advertising: Higher bids shown more often
- Survey sampling: Oversampling rare groups
- Game loot drops: Common items have higher drop rates
Weighted Sampling in Machine Learning
- Class imbalance: Minority classes sampled more frequently
- Mini-batch construction: Hard examples sampled more often
- Reinforcement learning: Prioritized experience replay
- Monte Carlo methods: Importance sampling
Types of Weighted Sampling
-
With replacement
Probabilities remain constant across draws -
Without replacement
Probabilities change after each selection -
Stratified weighted sampling
Sampling within predefined groups -
Importance sampling
Sampling with probability correction
Importance Sampling
Goal: estimate an expectation under distribution $p(x)$ while sampling from $q(x)$.
$ \mathbb{E}_{p}[f(x)] = \mathbb{E}_{q}\left[f(x)\frac{p(x)}{q(x)}\right] $
Importance weight:
$ w(x) = \frac{p(x)}{q(x)} $
Weighted Sampling vs Loss Weighting
| Aspect | Weighted Sampling | Loss Weighting |
|---|---|---|
| Data frequency | Changes | Unchanged |
| Loss magnitude | Unchanged | Scaled |
Loss Weighting Formula
Instead of changing how often samples appear, loss weighting scales their contribution to the loss:
$ \mathcal{L} = \sum_i w_i \cdot \ell(y_i, \hat{y}_i) $
What is Weighted Sampling?
Weighted sampling is a sampling technique where each item is assigned a weight, and the probability of selecting that item is proportional to its weight.
Higher weight → higher chance of being selected
Lower weight → lower chance (but usually not zero)
Mathematical Definition
Given n items with weights:
w1, w2, ..., wn
The probability of selecting item i is:
P(i) = wi / Σj=1n wj
Example: weights [1, 3, 6] → probabilities [0.1, 0.3, 0.6]
Visual Intuition
Weighted bar representation:
A | █ B | ███ C | ██████
Flattened view:
| A | B B B | C C C C C C |
Sampling is equivalent to picking a random point on this bar. Larger segments correspond to higher probability.
Four Examples of Weighted Sampling
- Lottery: More tickets mean higher winning chances
- Online advertising: Higher bids are shown more often
- Survey sampling: Rare groups are oversampled
- Game loot drops: Common items have higher drop rates
Weighted Sampling in Machine Learning
- Class imbalance: Minority classes sampled more frequently
- Mini-batch construction: Hard examples sampled more often
- Reinforcement learning: Prioritized experience replay
- Monte Carlo methods: Importance sampling
Types of Weighted Sampling
-
With replacement
Items can be selected multiple times (e.g., bootstrapping) -
Without replacement
Items are removed after selection (e.g., surveys) -
Stratified weighted sampling
Sampling within predefined groups (strata) -
Importance sampling
Sampling from one distribution and correcting with weights
Importance Sampling Formula
Goal: estimate an expectation under distribution p(x) while sampling from q(x).
Ep[f(x)] = Eq[ f(x) · p(x) / q(x) ]
Weight:
w(x) = p(x) / q(x)
Weighted Sampling vs Loss Weighting
| Aspect | Weighted Sampling | Loss Weighting |
|---|---|---|
| Changes data frequency | Yes | No |
| Changes loss magnitude | No | Yes |
| Affects mini-batches | Yes | No |
Loss Weighting Formula
Instead of changing how often samples appear, loss weighting scales their contribution to the loss:
L = Σ wi · โ(yi, ลทi)
Key Takeaway
Weighted sampling controls what the model sees more often.
Loss weighting controls how much mistakes matter.
Key Takeaway
Weighted sampling controls what the model sees more often.
Loss weighting controls how much mistakes matter.
Randomized Algorithms
Randomized Algorithms: An algorithm that uses random numbers to decide what to do next anywhere in its logic is called a Randomized Algorithm.
For example, in Randomized Quick Sort, we use a random number to pick the next pivot (or we randomly shuffle the array)
Type of Randomized Algorithms
1. Las Vegas: A Las Vegas algorithm is an algorithm which uses randomness, but gives guarantees that the solution obtained for given problem is correct.
Advantage: Always produce a correct answer. Randomness affects the running time, not correctness. Expected running time is finite and analyzed probabilistically.
A randomized quick-sort algorithm where we randomly choose pivot is an example of Las-Vegas algorithm. The algorithm always sorts the array. The advantage we get with randomization is, there is no pattern for which the quick sort causes worst case (unlike choosing fixed pivot like a corner element causes worst case for sorted input)
Disadvantage: Time complexity of these algorithms is based on a random value and time complexity is evaluated as expected value.
Quick Short: This is a method to partition the array in place such that all elements to the left of the pivot element are smaller, while all elements to the right of the pivot are greater than the pivot. Then we recursively call the same procedure for left and right subarrays.
There are two types of algorithm for random pivoting. Lomuto Partitioning and Hoare Partitioning.
Algorithm for random pivoting using Lomuto Partitioning
partition(arr[], lo, hi)
pivot = arr[hi]
i = lo // place for swapping
for j := lo to hi – 1 do
if arr[j] <= pivot then
swap arr[i] with arr[j]
i = i + 1
swap arr[i] with arr[hi]
return i
partition_r(arr[], lo, hi)
r = Random Number from lo to hi
Swap arr[r] and arr[hi]
return partition(arr, lo, hi)
quicksort(arr[], lo, hi)
if lo < hi
p = partition_r(arr, lo, hi)
quicksort(arr, lo , p-1)
quicksort(arr, p+1, hi) ========================================================================================# Python implementation QuickSort using
# Lomuto's partition Scheme.
import random
'''
The function which implements QuickSort.
arr :- array to be sorted.
start :- starting index of the array.
stop :- ending index of the array.
'''
def quicksort(arr, start , stop):
if(start < stop):
# pivotindex is the index where the pivot lies in the array
pivotindex = partitionrand(arr,\
start, stop)
# At this stage the array is partially sorted around the pivot. # Separately sorting the left half of the array and the right # half of the array.
quicksort(arr , start , pivotindex-1)
quicksort(arr, pivotindex + 1, stop)
# This function generates random pivot swaps the first element with the pivot
# and calls the partition function.
def partitionrand(arr , start, stop):
# Generating a random number between the starting index of the array # and the ending index of the array.
randpivot = random.randrange(start, stop)
# Swapping the starting element of the array and the pivot
arr[start], arr[randpivot] = \
arr[randpivot], arr[start]
return partition(arr, start, stop)
'''
This function takes the first element as pivot,
places the pivot element at the correct position
in the sorted array. All the elements are re-arranged
according to the pivot, the elements smaller than the
pivot is places on the left and the elements
greater than the pivot is placed to the right of pivot.
'''
def partition(arr,start,stop):
pivot = start # pivot
# a variable to memorize where the
i = start + 1
# partition in the array starts from.
for j in range(start + 1, stop + 1):
# if the current element is smaller
# or equal to pivot, shift it to the
# left side of the partition.
if arr[j] <= arr[pivot]:
arr[i] , arr[j] = arr[j] , arr[i]
i = i + 1
arr[pivot] , arr[i - 1] =\
arr[i - 1] , arr[pivot]
pivot = i - 1
return (pivot)
# Driver Code
if __name__ == "__main__":
array = [11, 8, 9, 6, 2, 7]
quicksort(array, 0, len(array) - 1)
print(array) =======================================================================
Algorithm for random pivoting using using Hoare's partition Scheme.
partition(arr[], lo, hi)
pivot = arr[lo]
i = lo - 1 // Initialize left index
j = hi + 1 // Initialize right index
while(True)
// Find a value in left side greater than pivot
do
i = i + 1
while arr[i] < pivot
// Find a value in right side smaller than pivot
do
j = j - 1
while arr[j] > pivot
if i >= j then
return j
else
swap arr[i] with arr[j]
end while
partition_r(arr[], lo, hi)
r = Random number from lo to hi
Swap arr[r] and arr[lo]
return partition(arr, lo, hi)
quicksort(arr[], lo, hi)
if lo < hi
p = partition_r(arr, lo, hi)
quicksort(arr, lo, p)
quicksort(arr, p+1, hi) ======================================================================================== # Python implementation QuickSort using Hoare's partition Scheme.
import random
'''
The function which implements randomised
QuickSort, using Haore's partition scheme.
arr :- array to be sorted.
start :- starting index of the array.
stop :- ending index of the array.
'''
def quicksort(arr, start, stop):
if(start < stop):
# pivotindex is the index where
# the pivot lies in the array
pivotindex = partitionrand(arr,\
start, stop)
# At this stage the array is
# partially sorted around the pivot.
# separately sorting the left half of
# the array and the right
# half of the array.
quicksort(arr , start , pivotindex)
quicksort(arr, pivotindex + 1, stop)
# This function generates random pivot,
# swaps the first element with the pivot
# and calls the partition function.
def partitionrand(arr , start, stop):
# Generating a random number between
# the starting index of the array and
# the ending index of the array.
randpivot = random.randrange(start, stop)
# Swapping the starting element of
# the array and the pivot
arr[start], arr[randpivot] =\
arr[randpivot], arr[start]
return partition(arr, start, stop)
'''
This function takes the first element
as pivot, places the pivot element at
the correct position in the sorted array.
All the elements are re-arranged according
to the pivot, the elements smaller than
the pivot is places on the left and
the elements greater than the pivot is
placed to the right of pivot.
'''
def partition(arr,start,stop):
pivot = start # pivot
i = start - 1
j = stop + 1
while True:
while True:
i = i + 1
if arr[i] >= arr[pivot]:
break
while True:
j = j - 1
if arr[j] <= arr[pivot]:
break
if i >= j:
return j
arr[i] , arr[j] = arr[j] , arr[i]
# Driver Code
if __name__ == "__main__":
array = [
[11, 8, 9, 6, 2, 7]
quicksort(array, 0, len(array) - 1)
print(array)
================================================================
*************************************************************************
2. Monte Carlo Algorithms: A random algorithm is Monte-Carlo algorithms if it can give the wrong answer sometimes.
- Running time is typically fixed or bounded.
- Output may be incorrect with a small probability.
- Often used when approximate answers are acceptable or when error probability can be made tiny. These algorithms are used for solving physical simulation system and mathematical system.
The Monte-Carlo methods are used in places where deterministic algorithms take a lot time. Monte-Carlo integration is the most common application of Monte-Carlo algorithm. There are various methods used for integration by using Monte-Carlo methods such as,
i) Direct sampling methods which includes the stratified sampling, recursive stratified sampling, importance sampling.
ii) Random walk Monte-Carlo algorithm which is used to find out the integration for given problem.
iii) Gibbs sampling.
Applications of Randomized Algorithms
- Randomized algorithms have huge applications in Cryptography.
- Load Balancing.
- Number-Theoretic Applications: Primality Testing.
- Data Structures: Hashing, Sorting, Searching, Order Statistics and Computational Geometry.
- Algebraic identities: Polynomial and Matrix identity verification. Interactive proof systems.
- Mathematical programming: Faster algorithms for linear programming, Rounding linear program solutions to integer program solutions
- Graph algorithms: Minimum spanning trees, shortest paths, minimum cuts.
- Counting and Enumeration: Matrix permanent Counting combinatorial structures.
- Parallel and distributed computing: Deadlock avoidance distributed consensus.
- Probabilistic existence proofs: Show that a combinatorial object arises with non-zero probability among objects drawn from a suitable probability space.
- Derandomization: First devise a randomized algorithm then argue that it can be derandomized to yield a deterministic algorithm.
Total Derivatives part 1
Geometric Interpretation of Total Derivative
Consider a function of two variables $$ z = f(x, y) $$ This function represents a surface in three-dimensional space. Each point on the surface corresponds to a particular value of $x$ and $y$.
The red point represents a point on the surface corresponding to the values $(x, y)$.
Small Changes in Variables
Suppose the independent variables $x$ and $y$ change by small amounts $dx$ and $dy$. These small changes cause a change in $z$, denoted by $dz$.
The movement along the $x$-direction by $dx$ and along the $y$-direction by $dy$ together produce a total change in the value of $z$.
=============================
Total Change in z
The total change in $z$ is the combined effect of the change due to $x$ and the change due to $y$. Mathematically, it is given by:
$$ dz = \frac{\partial z}{\partial x}\,dx + \frac{\partial z}{\partial y}\,dy $$
Thus, the total derivative represents the net rate of change of the function due to simultaneous changes in all independent variables.
==========================================================
Introduction to Total Derivatives
When a dependent variable depends on more than one independent variable, its change depends on the changes in all those variables. In such cases, we use the concept of Total Derivative.
If a function is given by $$ z = f(x, y) $$ where $x$ and $y$ are independent variables, then a small change in $z$ due to small changes in $x$ and $y$ is called the total differential.
The total differential of $z$ is denoted by $dz$ and is defined as: $$ dz = \frac{\partial z}{\partial x}\,dx + \frac{\partial z}{\partial y}\,dy $$
Total derivatives are widely used in error analysis, approximation, thermodynamics, and engineering applications.
Examples on Total Derivatives
Example 1
Find the total differential of $z = x^2y$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy, \quad \frac{\partial z}{\partial y} = x^2 $$ $$ dz = 2xy\,dx + x^2\,dy $$
Example 2
Find $dz$ if $z = x^2 + y^2$.
Solution:$$ \frac{\partial z}{\partial x} = 2x, \quad \frac{\partial z}{\partial y} = 2y $$ $$ dz = 2x\,dx + 2y\,dy $$
Example 3
Find the total differential of $z = xy + y^2$.
Solution:$$ \frac{\partial z}{\partial x} = y, \quad \frac{\partial z}{\partial y} = x + 2y $$ $$ dz = y\,dx + (x + 2y)\,dy $$
Example 4
Find $dz$ if $z = x^3y^2$.
Solution:$$ \frac{\partial z}{\partial x} = 3x^2y^2, \quad \frac{\partial z}{\partial y} = 2x^3y $$ $$ dz = 3x^2y^2\,dx + 2x^3y\,dy $$
Example 5
Find the total derivative of $z = \ln(x^2 + y^2)$.
Solution:$$ \frac{\partial z}{\partial x} = \frac{2x}{x^2 + y^2}, \quad \frac{\partial z}{\partial y} = \frac{2y}{x^2 + y^2} $$ $$ dz = \frac{2x}{x^2 + y^2}\,dx + \frac{2y}{x^2 + y^2}\,dy $$
Example 6
Find $dz$ if $z = e^{xy}$.
Solution:$$ \frac{\partial z}{\partial x} = ye^{xy}, \quad \frac{\partial z}{\partial y} = xe^{xy} $$ $$ dz = ye^{xy}\,dx + xe^{xy}\,dy $$
Example 7
Find the total differential of $z = \sin(xy)$.
Solution:$$ \frac{\partial z}{\partial x} = y\cos(xy), \quad \frac{\partial z}{\partial y} = x\cos(xy) $$ $$ dz = y\cos(xy)\,dx + x\cos(xy)\,dy $$
Example 8
Find $dz$ if $z = x^2y + y^3$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy, \quad \frac{\partial z}{\partial y} = x^2 + 3y^2 $$ $$ dz = 2xy\,dx + (x^2 + 3y^2)\,dy $$
Example 9
Find the total differential of $z = \sqrt{x^2 + y^2}$.
Solution:$$ \frac{\partial z}{\partial x} = \frac{x}{\sqrt{x^2 + y^2}}, \quad \frac{\partial z}{\partial y} = \frac{y}{\sqrt{x^2 + y^2}} $$ $$ dz = \frac{x}{\sqrt{x^2 + y^2}}\,dx + \frac{y}{\sqrt{x^2 + y^2}}\,dy $$
Example 10
Find $dz$ if $z = x^2y^2$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy^2, \quad \frac{\partial z}{\partial y} = 2x^2y $$ $$ dz = 2xy^2\,dx + 2x^2y\,dy $$
==================================================
Question 1
If $z = x^2y + y^2x$, find the total differential $dz$ and hence find the approximate change in $z$ when $x$ changes from 1 to 1.02 and $y$ changes from 2 to 2.01.
Solution:$$ \frac{\partial z}{\partial x} = 2xy + y^2, \quad \frac{\partial z}{\partial y} = x^2 + 2xy $$ At $x=1$, $y=2$: $$ \frac{\partial z}{\partial x} = 8,\quad \frac{\partial z}{\partial y} = 5 $$
$$ dx = 0.02,\quad dy = 0.01 $$
$$ dz = 8(0.02) + 5(0.01) = 0.21 $$
Question 2
If $z = \ln(x^2 + y^2)$, find the total differential and evaluate $dz$ at $x=2$, $y=1$.
Solution:$$ \frac{\partial z}{\partial x} = \frac{2x}{x^2 + y^2}, \quad \frac{\partial z}{\partial y} = \frac{2y}{x^2 + y^2} $$
At $x=2$, $y=1$: $$ dz = \frac{4}{5}dx + \frac{2}{5}dy $$
Question 3
Find the total derivative of $z = e^{xy}$ and hence find the approximate change in $z$ when $x=1$, $y=2$, $dx=0.01$, $dy=0.02$.
Solution:$$ \frac{\partial z}{\partial x} = ye^{xy}, \quad \frac{\partial z}{\partial y} = xe^{xy} $$
At $x=1$, $y=2$: $$ dz = 2e^2(0.01) + e^2(0.02) = 0.04e^2 $$
Question 4
If $z = \sqrt{x^2 + y^2}$, find the total differential $dz$.
Solution:$$ \frac{\partial z}{\partial x} = \frac{x}{\sqrt{x^2 + y^2}}, \quad \frac{\partial z}{\partial y} = \frac{y}{\sqrt{x^2 + y^2}} $$
$$ dz = \frac{x}{\sqrt{x^2 + y^2}}dx + \frac{y}{\sqrt{x^2 + y^2}}dy $$
Question 5
If $z = x^3y^2$, find the total differential and hence find the rate of change of $z$ with respect to time $t$, given $x = t^2$ and $y = t$.
Solution:$$ \frac{\partial z}{\partial x} = 3x^2y^2, \quad \frac{\partial z}{\partial y} = 2x^3y $$
$$ \frac{dz}{dt} = \frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt} $$
Since $x=t^2$, $y=t$: $$ \frac{dx}{dt}=2t,\quad \frac{dy}{dt}=1 $$
$$ \frac{dz}{dt} = 3(t^4)(t^2)(2t) + 2(t^6)(t) $$
Question 6
Find the total differential of $z = \sin(xy)$.
Solution:$$ \frac{\partial z}{\partial x} = y\cos(xy), \quad \frac{\partial z}{\partial y} = x\cos(xy) $$
$$ dz = y\cos(xy)\,dx + x\cos(xy)\,dy $$
Question 7
If $z = x^2y + y^3$, find $dz$ and hence find the approximate change in $z$ when $x=2$, $y=1$, $dx=0.05$, $dy=0.02$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy, \quad \frac{\partial z}{\partial y} = x^2 + 3y^2 $$
At $x=2$, $y=1$: $$ dz = 4(0.05) + 7(0.02) = 0.34 $$
Question 8
Show that the total differential of $z = \ln(xy)$ is $$ dz = \frac{dx}{x} + \frac{dy}{y} $$
Solution:$$ \frac{\partial z}{\partial x} = \frac{1}{x}, \quad \frac{\partial z}{\partial y} = \frac{1}{y} $$
$$ dz = \frac{dx}{x} + \frac{dy}{y} $$
Question 9
If $z = x^2 + y^2$, find the total differential and hence obtain the approximate error in $z$ when the errors in $x$ and $y$ are $\delta x$ and $\delta y$ respectively.
Solution:$$ dz = 2x\,dx + 2y\,dy $$
Approximate error: $$ \delta z = 2x\,\delta x + 2y\,\delta y $$
Question 10
Find the total derivative of $z = x^2y^2$ and hence find the rate of change of $z$ with respect to $t$, given $x = \sin t$ and $y = \cos t$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy^2, \quad \frac{\partial z}{\partial y} = 2x^2y $$
$$ \frac{dz}{dt} = \frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt} $$
๐ End of Ten-Marks Questions on Total Derivatives
๐ End of Total Derivative Examples
Partial Differentiation : An Introduction.
Introduction to Partial Differentiation
In many practical situations, a quantity depends on more than one independent variable. For example, the volume of a gas may depend on both pressure and temperature, or the area of a surface may depend on two spatial coordinates. Such functions are called functions of several variables.
If a function depends on two independent variables $x$ and $y$, it is written as $$ z = f(x, y) $$
Partial differentiation is the process of finding the rate of change of a function with respect to one variable while keeping the other variable(s) constant.
The partial derivative of $z$ with respect to $x$ is denoted by $$ \frac{\partial z}{\partial x} $$ and is obtained by differentiating $z$ with respect to $x$, treating $y$ as a constant.
Similarly, the partial derivative of $z$ with respect to $y$ is denoted by $$ \frac{\partial z}{\partial y} $$ and is obtained by differentiating $z$ with respect to $y$, treating $x$ as a constant.
For example, if $$ z = x^2y + xy^2 $$ then $$ \frac{\partial z}{\partial x} = 2xy + y^2, \quad \frac{\partial z}{\partial y} = x^2 + 2xy $$
Partial differentiation plays an important role in mathematics, physics, engineering, economics, and other applied sciences. It is widely used in topics such as total derivatives, maxima and minima, Euler’s theorem, and differential equations.
========================================================================
Partial Differentiation Problems with Solutions
Problem 1
If $z = x^2y + xy^3$, find $\frac{\partial z}{\partial x}$ and $\frac{\partial z}{\partial y}$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy + y^3 $$ $$ \frac{\partial z}{\partial y} = x^2 + 3xy^2 $$
Problem 2
If $z = x^3 + 3xy^2$, find $\frac{\partial^2 z}{\partial x^2}$ and $\frac{\partial^2 z}{\partial y^2}$.
Solution:$$ \frac{\partial z}{\partial x} = 3x^2 + 3y^2 \Rightarrow \frac{\partial^2 z}{\partial x^2} = 6x $$ $$ \frac{\partial z}{\partial y} = 6xy \Rightarrow \frac{\partial^2 z}{\partial y^2} = 6x $$
Problem 3
For $z = x^2y^3$, verify that $$ \frac{\partial^2 z}{\partial x \partial y} = \frac{\partial^2 z}{\partial y \partial x} $$
Solution:$$ \frac{\partial z}{\partial x} = 2xy^3 \Rightarrow \frac{\partial^2 z}{\partial y \partial x} = 6xy^2 $$ $$ \frac{\partial z}{\partial y} = 3x^2y^2 \Rightarrow \frac{\partial^2 z}{\partial x \partial y} = 6xy^2 $$
Problem 4
If $x^2 + y^2 + z^2 = a^2$, find $\frac{\partial z}{\partial x}$.
Solution:$$ 2x + 2z\frac{\partial z}{\partial x} = 0 $$ $$ \frac{\partial z}{\partial x} = -\frac{x}{z} $$
Problem 5
If $z = x^2 + y^2$, where $x = r\cos\theta$ and $y = r\sin\theta$, find $\frac{\partial z}{\partial r}$.
Solution:$$ z = r^2(\cos^2\theta + \sin^2\theta) = r^2 $$ $$ \frac{\partial z}{\partial r} = 2r $$
Problem 6 (Euler’s Theorem)
Verify Euler’s theorem for $z = x^2y + xy^2$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy + y^2 $$ $$ \frac{\partial z}{\partial y} = x^2 + 2xy $$ $$ x\frac{\partial z}{\partial x} + y\frac{\partial z}{\partial y} = 3x^2y + 3xy^2 = 3z $$
Problem 7
If $z = \ln(x^2 + y^2)$, find $\frac{\partial z}{\partial x}$.
Solution:$$ \frac{\partial z}{\partial x} = \frac{2x}{x^2 + y^2} $$
Problem 8
If $z = e^{xy}\sin y$, find $\frac{\partial z}{\partial y}$.
Solution:$$ \frac{\partial z}{\partial y} = e^{xy}(x\sin y + \cos y) $$
Problem 9
If $z = x^2y + y^2$, find the total differential $dz$.
Solution:$$ \frac{\partial z}{\partial x} = 2xy,\quad \frac{\partial z}{\partial y} = x^2 + 2y $$ $$ dz = 2xy\,dx + (x^2 + 2y)\,dy $$
Problem 10
Find $\frac{\partial}{\partial x}(x^2y^3)$.
Solution:$$ \frac{\partial}{\partial x}(x^2y^3) = 2xy^3 $$
๐ End of Exam-Oriented Problems
Assignment: Probability and Statistics Basic
Sticky Ad Probability Problems with Detailed Solutions Click each question to expand the detailed interpretation and solution. ...
-
Return to Table of Content Mathematics for Biotechnology and Data Science Chapter 1: Set Theory Chapter 2: Operation of Sets Chapter 3...
-
Table of Content Formulas: Differentiation Integration: Type 1 Integration: Type 2 Calculus of Several Variables 1 ...
-
Return to Table of Content Mathematics for Biotechnology and Data Science Chapter 1: Set Theory Chapter 2: Operation of Sets Chapter ...