Matrices Calculus Notes
Matrices Calculus Notes
A Course Notes
Prepared by
Faculty of Mathematics
Rathinam Technical Campus
Faculty of Mathematics
Rathinam Technical Campus
ii
PREFACE
Faculty of Mathematics,
Rathinam Technical Campus
iii
ACKNOWLEDGEMENT
We, the faculty of Mathematics, express our sincere gratitude to the Manage-
ment, Principal, and Academic Leadership of Rathinam Technical Campus
for their constant encouragement and support.
We extend our heartfelt thanks to our Honorable Chairman, Dr. Madan
A. Sendhil, the Principal, Dr. K. Geetha, the Vice-Principal & Dean of
Engineering, Dr. C. Krishnaraj, and the Head of Science and Humani-
ties, Dr. P. Sathish Kumar, for their visionary guidance and unwavering
commitment to quality education.
This book, Matrices and Calculus, is the outcome of collaborative ef-
fort, shared expertise, and dedication to student-centered learning. We re-
main grateful to our colleagues in the department for their valuable insights,
constructive feedback, and teamwork throughout the preparation of this re-
source.
Faculty of Mathematics
Rathinam Technical Campus
iv
Contents
Declaration ii
Preface iii
Acknowledgement iv
1 MATRICES 3
1.1 Introduction to Matrix . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Types of Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Operations on Matrices . . . . . . . . . . . . . . . . . . . . . . 7
1.3.1 Addition and subtraction of matrices . . . . . . . . . . 7
1.3.2 Multiplication of a matrix by a scalar . . . . . . . . . . 7
1.3.3 Multiplication of matrices . . . . . . . . . . . . . . . . 7
1.4 Rank of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.1 Definition . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4.2 Problems based on Rank of Matrix . . . . . . . . . . . 9
1.5 Consistency of a System of Linear Equations . . . . . . . . . . 11
1.5.1 Solution of System of Linear Equations . . . . . . . . . 11
1.5.2 Rouche’s Theorem . . . . . . . . . . . . . . . . . . . . 12
1.5.3 System of Homogeneous Linear Equations . . . . . . . 12
1.5.4 Problems Based on System of Linear Equations . . . . 12
1.5.5 Practice Problems . . . . . . . . . . . . . . . . . . . . . 17
1.6 Row Echelon Form . . . . . . . . . . . . . . . . . . . . . . . . 18
1.6.1 Reduced Row Echelon Form . . . . . . . . . . . . . . . 18
1.6.2 Problems based on Row Echelon Form . . . . . . . . . 19
1.6.3 Practice Problems . . . . . . . . . . . . . . . . . . . . . 23
1.7 Characteristic Equation . . . . . . . . . . . . . . . . . . . . . 24
1.7.1 Definition . . . . . . . . . . . . . . . . . . . . . . . . . 24
v
CONTENTS vi
3 DIFFERENTIAL CALCULUS 72
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
3.2 Representation of Functions . . . . . . . . . . . . . . . . . . . 73
3.2.1 DIFFERENTIAL CALCULUS . . . . . . . . . . . . . 74
3.3 Differentiation Rules . . . . . . . . . . . . . . . . . . . . . . . 74
3.3.1 Worked Examples . . . . . . . . . . . . . . . . . . . . . 75
3.3.2 The Product Rule . . . . . . . . . . . . . . . . . . . . . 76
3.3.3 The Quotient Rule . . . . . . . . . . . . . . . . . . . . 76
3.3.4 Problems based on Product and Quotient Rules . . . . 76
3.3.5 The Chain Rule . . . . . . . . . . . . . . . . . . . . . . 79
3.3.6 The Power Rule Combined with the Chain Rule . . . . 79
3.3.7 Problems based on the Chain Rule . . . . . . . . . . . 79
3.3.8 Derivatives of Logarithmic Functions . . . . . . . . . . 82
3.3.9 Problems based on Logarithmic Functions . . . . . . . 83
3.4 Application :Ratio carbon dating and Newtons law of cooling
and exponential growth . . . . . . . . . . . . . . . . . . . . . . 85
3.4.1 Radiocarbon Dating . . . . . . . . . . . . . . . . . . . 85
3.4.2 Newton’s law of cooling . . . . . . . . . . . . . . . . . 86
3.5 Partial Derivatives . . . . . . . . . . . . . . . . . . . . . . . 88
3.5.1 Rules of Partial Differentiation . . . . . . . . . . . . . . 88
3.5.2 Problems based on Partial derivatives . . . . . . . . . 90
3.5.3 Homogeneous function. . . . . . . . . . . . . . . . . . . 92
3.5.4 Problems based on Eulers theorem on homogeneous
functions . . . . . . . . . . . . . . . . . . . . . . . . . . 92
CONTENTS viii
1
CONTENTS 2
Real time use case: Lagrange’s method of undetermined multipliers (Not for
Examination).
Text Books:
Reference Books:
1. Thomas, G. B., Weir, M. D., Hass, J., and Hell, C. Thomas’ Calculus.
Pearson Education. 15th edition, 2024.
Web Links:
1. [Link]
2. [Link]
Chapter 1
MATRICES
The concept of matrices was formalized in the 19th century. Arthur Cayley
(1821 - 1895), a great French mathematician, discovered matrices in the year
1860. Nowadays, matrices have been found to be of great utility in many
branches:
Computer Science: Image processing, machine learning, cryptography
Cyber Security: Representing transformations in encryption algorithms.
Engineering: Solving systems of equations, modeling physical systems.
[Matrix methods are very easy to write many computer application pro-
grams.]
3
CHAPTER 1. MATRICES 4
[aij ]. Here aij ’s are real or complex numbers. They are called the elements
of the matrix.
Order of a matrix:
The order of a matrix is defined by the number of rows and columns. If a
matrix has m rows and n columns, its order is m × n.
Example: A matrix with 3 rows and 2 columns has order 3 × 2.
1 3×1
Square matrix: A matrix having same number of row and column is
called a square matrix .
" # 1 6 9
1 2
Example: A = , B = 1 2
6
0 −5 2×2
0 3 3 3×3
Null or Zero matrix: In a matrix if all the elements are zero, then that
matrix is called
" a#null or "zero matrix.
#
0 0 0 0 0
Example: ,
0 0 2×2 0 0 0 2×3
Diagonal matrix: A square matrix in which all the non-diagonal elements
are zeros, then the
matrix is called a diagonal matrix.
1 0 0
Example: A = 0 2 0
0 0 5 3×3
Scalar matrix: A diagonal matrix in which all the elements of its main
diagonal are equal is called a scalar matrix.
CHAPTER 1. MATRICES 5
3 0 0
Example: A = 0 3 0
0 0 3 3×3
Unit matrix (or) Identity matrix: A diagonal matrix of order n which
has unity for all its diagonal elements, and zeros for the other elements is
called a unit matrix
or anidentity matrix of order n and is denoted by In .
1 0 0
Example: I3 = 0 1 0
0 0 1 3×3
Upper triangular matrix: A square matrix in which all the elements
below the main diagonalare zeros, is called an upper triangular matrix.
1 2 3
Example: A = 0 4 5
0 0 6 3×3
Lower triangular matrix: A square matrix in which all the elements
above the main diagonal
are
zeros, is called a lower triangular matrix.
2 0 0
Example: B = 4 3 0
2 5 3 3×3
Transpose of a Matrix: The matrix obtained by interchanging its rows
and columns is called
thetranspose of A denoted by AT .
and is
1 2 3 1 2 4
Example: A = 2 1 7 , AT = 2 1 2
4 2 5 3×3 3 7 5 3×3
Conjugate of a matrix: The matrix obtained from any given matrix
A, on replacing its elements by the corresponding conjugate complex num-
bers is called the"conjugate of A and denoted
# by "A. #
1 + i 2 − 3i 3 1 − i 2 + 3i 3
Example: A = , A=
7 + 2i −i 3 − 2i 7 − 2i i 3 + 2i
Hermitian matrix:
" A square
# matrix A is said
" to be Hermitian
# if A = (A)T .
2 3+i 2 3+i
Example: A = Here, (A)T = = A.
3−i 5 3−i 5
Hence, A is a Hermitian matrix.
3. A−1 = 1
|A|
adj(A), ̸ 0. It can be shown that AA−1 = A−1 A = I.
|A| =
co factor of AT
4. A−1 = |A|
, |A| =
̸ 0.
Equality of matrices: Two matrices A and B are said to be equal if and
only if
(i) they are of the same order, and
(i) each element of A is equal to the corresponding element of B.
Orthogonal matrix: A square matrix A is called an orthogonal matrix if
AAT = AT A = I. If |A| = 1.
2 1 " #
T 2 −2 2
Example: A = −2 1. The transpose of A, A =
.
1 1 1
2 1
" # 2 1 " #
2 −2 2 1 0
Now, AT A = −2 1 = = I.
1 1 1 0 1
2 1
Thus, AT A = I, the identity matrix.
CHAPTER 1. MATRICES 7
3 6 9 " #
5 8
row and first column, is: Submatrix =
6 9
a3 b 3 c3 d 3 a3 + c3 b3 + d3
" # " # " #
a b c d a − c1 b1 − d1
A−B = 1 1 − 1 1 = 1
a2 b 2 c2 d 2 a2 − c 2 b 2 − d 2
1. there is at least one minor of A of order r which does not vanish and
In other words, the rank of a matrix is the largest of the orders of all the
non-vanishing minors of that matrix. Rank of a matrix A is denoted by R(A)
or ρ(A).
To find the rank of a matrix A, we may use the following proce-
dure:
We first consider the highest order minor (or minors) of A. Let their
order be r. If any one of them does not vanish, then ρ(A) = r. If all of them
vanish, we next consider minors of A of next lower order (r − 1) and so on,
until we get a non-zero minor. The order of that non-zero minor is ρ(A).
This method involves a lot of computational work and hence requires more
time, as we have to evaluate many determinants. An alternative method to
find the rank of a matrix A is given below:
Reduce A to any one of the following forms (called normal forms) by
a series of elementary operations on A and then find the order of the unit
matrix contained in the normal form of A:
" # " #
h i h i Ir Ir O
Ir ; Ir O ; ; .
O O O
• Addition to the elements of any row (or column) the same scalar mul-
tiples of corresponding elements of any other row (or column).
Solution :
" #
1 2
Let A =
2 1
" #
1 2
∼ R2 → R2 − 2R1
0 −3
R(A) = Number of non-zero rows = 2.
1 3 5
Example 1.4.2. Find the rank of the matrix A = 7 9 0
2 4 6
Solution:
Given
1 3 5
A= 7 9 0
2 4 6
1 3 5
R2 → R2 − 7R1
∼ 0 −12 −35
R3 → R3 − 2R1
0 −2 −4
1 3 5
∼ 0 −12 −35 R3 → 6R3 − R2
0 0 11
R(A) = Number of non-zero rows = 3.
CHAPTER 1. MATRICES 10
−1 −1 1
Example 1.4.3. Find the rank of the matrix 0 1 0
1 −1 1
Solution :
−1 −1 1
A= 0 1 0
1 −1 1
−1 −1 1
∼
0 1 0
R3 → R3 + R1
0 −2 2
−1 −1 1
∼ 0 R3 → R3 + 2R1
1 0
0 0 2
Hence R(A) = Number of non-zero rows = 3.
1 2 −1 3
Example 1.4.4. Find the rank of the matrix 3 4
0 −1
−1 0 −2 7
Solution :
1 2 −1 3
A = 3 4
0 −1
−1 0 −2 7
1 2 −1 3
R2 → R3 − 3R1
∼ 0 −2
3 −10
R3 → R3 + R1
0 2 −3 10
1 2 −1 3
0 −2
∼ 3 −10
R3 → R3 + R2
0 0 0 0
· · · a1n
a11 a12 x1 b1
a21
a22 · · · a2n
x2
b2
A=
.. .. .. ,
.. X=
.. ,
B=
.. .
. . . . . .
am1 am2 · · · amn xn bm
The matrix A is called the coefficient matrix of the system, X is the matrix
of unknowns, and B is the matrix of constants.
If B ≡ O, the system is called a system of homogeneous linear equations.
If B ̸≡ O, it is called a system of linear non-homogeneous equations.
The augmented matrix is written as:
· · · a1n b1
a11 a12
a21
a22 · · · a2n b2
[A, B] =
.. .. ... .. ..
. . . .
X1 = 72 X2 + 71 X3 , X2 = 72 X1 − 12 X3 , X3 = 7X1 − 2X2 .
Method 2:
Write X1 , X2 , X3 as rows:
1 1 2
A = 1 2 5
5 3 4
1 1 2
R2 → R2 − R1
[A] = 0 1 3
R3 → R3 − 5R1
0 −2 −6
1 1 2
∼ 0 1 3 R3 → R3 + 2R2
0 0 0
Solution:
Coefficient matrix:
" # " #
1 1 1 1 1 1 | 3
A= , [A|B] =
2 2 2 2 2 2 | 6
AX = B
1 1 2 x1 9
2 4 −3 x2 = 1
3 6 −5 x3 0
CHAPTER 1. MATRICES 15
3 6 −5 0
1 1 2 9
R2 → R2 − 2R1
∼
0 2 −7 −17
R3 → R3 − 3R1
0 3 −11 −27
1 1 2 9
∼ 0 2 −7 −17 R3 → 2R3 − 3R2
0 0 −1 −3
x1 + x2 + 2x3 = 9 − − − −(1)
2x2 − 7x3 = −17 − − − (2)
−x3 = −3 − − − (3)
x3 = 3 − − − −(4)
x1 + 2 + 2(3) = 9
x1 + 8 = 9
x1 = 9 − 8
x1 = 1
Example 1.5.6. Find the value of k such that the following system of equa-
tions has (i) Unique solution, (ii) Many solution and (iii) no solution.
Solution :
The matrix form of the system is
AX = B
k 1 1 x1 1
1 k 1 x2 = 1
1 1 k x3 1
1 1 k 1
1 1 k 1
∼ 1 k 1 1 R1 ↔ R3
k 1 1 1
1 1 k 1
R2 → R2 − R1
∼ 0 k−1 1−k 0
R3 → R3 − kR1
0 1 − k 1 − k2 1 − k
1 1 k 1
∼
0 k − 1 1 − k 0 R3 → R2 + R 3
0 0 2 − k − k2 1 − k
(i) Unique solution : If k ̸= 1 and k ̸= −2 then the system becomes
1 1 k 1
[A : B] ∼
0 k − 1 1 − k 0
0 0 2 − k − k2 1 − k
0 0 0 0
Here R(A) = R(A, B) = 2 < 3 (No. of unknowns)
∴ The system is consistent and has many solution.
CHAPTER 1. MATRICES 17
7. Test whether the following system of equation passes a non trivial so-
lution.
x + y + 2z + 3w = 0; 3x + 4y + 7z + 10w = 0; 5x + 7y + 11z + 17w = 0;
6x + 8y + 13z + 16w = 0.
CHAPTER 1. MATRICES 18
• Zero Rows at the Bottom: If there are any rows that are completely
filled with zeros they should be at the bottom of the matrix.
• Leading 1s: In each non-zero row, the first non-zero entry (called a
leading entry) can be any non-zero number. It does not have to be 1.
• Staggered Leading 1s: The leading entry in any row must be to the
right of the leading entry in the row above it.
Below is an example of row-echelon form:
1 2 −1 4
A = 0 4 0 3
0 0 1 2
• Zero Rows at the Bottom: Any row that consists entirely of zeros must
be at the bottom of the matrix.
• Leading Entries: The first non-zero entry in each non-zero row must
be 1.
• Column of Leading 1s: Each leading 1 is the only non-zero entry in its
column. This means that all other entries in the column containing a
leading 1 must be zero.
Example:
0 0 0 0 1 0 0 0 1 1
1 3 6 1 5
Solution:
0 1 2 0 3
2 4 8 2 4
Let A =
1 2 4 2 2
1 3 6 1 5
2 4 8 2 4
0 1 2 0 3
∼ R1 ↔ R2
1 2 4 2 2
1 3 6 1 2
1 2 4 1 2
0 1 2 0 3 R1
∼ R1
→
1 2 4 2 2
2
1 3 6 1 2
CHAPTER 1. MATRICES 20
1 2 4 1 2
0 1 2 0 3 R3 → R3 − R1
∼
0 0 0 1 0 R4 → R4 − R1
0 1 2 0 3
1 2 4 1 2
0 1 2 0 3
∼ R4 → R4 − R3
0 0 0 1 0
0 0 0 0 0
Which is the row echelon form of the given matrix.
Example 1.6.2. Find the row echelon form and reduced echelon form of the
matrix
−2 −3 −2
3 −2 −2
3 −2 −1
−1 −1 −2
Solution :
−2 −3 −2
3 −2 −2
Let A =
3 −2 −1
−1 −1 −2
−1 −1 −2
3 −2 −2
∼ R1 ↔ R4
3 −2 −1
−2 −3 −2
1 1 2
3 −2 −2
∼
R1 → R1 × (1)
3 −2 −1
−2 −3 −2
1 1 2
R2 → R2 − 3R1
0 −5 4
∼
R3 → R3 − 3R1
0 −5 −7
R4 → R4 + 2R1
0 −1 2
CHAPTER 1. MATRICES 21
1 1 2
0 −5 4 R3 → R3 − R2
∼
0 0 −11 R4 → 5R4 − R2
0 0 6
1 1 2
0 −5 4 R3 → R3 /(−11)
∼
0 0 1 R4 → R4 /(6)
0 0 1
1 1 2
0 −5 4
∼
0 0 1
0 0 0
1 1 2
0 1 −4/5
∼ R → R4 − R3
0 0 1 4
0 0 0
which is the echelon form of the given matrix.
Row reduced echelon form :
1 1 2
0 1 −4/5
A∼
0 0 1
0 0 0
1 0 14/5
0 1 −4/5
∼ R1 → R1 − R2
0 0 1
0 0 0
1 0 0
0 1
0 14
∼ R1 → R1 − R3
0 0
1
5
0 0 0
4
R2 → R2 + R3
5
which is the row reduced echelon, form of the given matrix.
Example 1.6.3. Find the echelon form and row reduced echelon form of the
CHAPTER 1. MATRICES 22
matrix
2 −3 −2 3
−2 2 −2 0
−1 3 3 2
−3 −2 −2 2
Solution:
2 −3 −2 3
−2 2 −2 0
Let A =
−1 3 3 2
−3 −2 −2 2
1 0 1 5
−2 2 −2 0
∼ R1 → R1 + R3
−1 3 3 2
−3 −2 −2 2
1 0 1 5
R2 → R2 + 2R1
0 2 0 10
∼
R3 → R3 + R1
0 3 4 7
R4 → R4 + 3R1
0 −2 1 17
1 0 1 5
0 1 0 5 R3 → R3 − 2R2
∼
0 0 4 −8 R4 → R4 + 2R2
0 0 1 27
1 0 1 5
0 1 0 5 R3
∼ R3 →
0 0 1 −2
4
0 0 1 27
1 0 1 5
0 1 0 5
∼ R4 → R4 − R3
0 0 1 −2
0 0 0 29
1 0 1 5
0 1 0 5 R4
∼
R4 →
0 0 1 −2
29
0 0 0 1
2. Reduce each of the following arrays into row echelon form and reduced
row echelon form.
1 2 3
1 3 2 0 2 3 2
(a) 2 4 6 8 (b)
6 8 7
3 5 7 9
3 6 5
CHAPTER 1. MATRICES 24
0 −3 −6
4
1 2 3 −1
2 −2 4 −2
2 −3 0 1
(c) 0
−4 −8 −4 (d)
1 4 5 −9
4 −14 14 6
1 4 5 −9
1 4 5 −9
AX − λIX = 0
(A − λI)X = 0 − − − −(1)
a11 a12 · · · a1n ···
1 0 0 x1 0
a21
a22 · · · a2n
0 1
··· 0 x2 0
− λ .. .. . = .
. .. . . .. ..
.
..
. . . . . . . . .. ..
an1 an2 · · · ann 0 0 ··· 1 xn 0
a11 − λ ···
a12 a1n x1 0
a21 a22 − λ ··· a2n x2
0
.. .. ... .. .
. = .
.
. . . . .
an1 an2 · · · ann − λ xn 0
CHAPTER 1. MATRICES 25
|A − λI| = 0
For a 3 × 3 matrix
a11 a12 a13
A = 21 a22 a23
a
λ3 − S1 λ2 + S2 λ − S3 = 0, where
S3 = det(A).
For a 2 × 2 matrix " #
a a
A = 11 12
a21 a22
the characteristic equation is
λ2 − S1 λ + S2 = 0.
1 2 1 0
−λ =0
0 2 0 1
1−λ 2
=0
0 2−λ
(1 − λ)(2 − λ) − 0 = 0
λ2 − 3λ + 2 = 0
Thus, the required characteristic equation is λ2 − 3λ + 2 = 0.
Method 2:
The characteristic equation of A is λ2 − S1 λ + S2 = 0,
where S1 = trace(A) = 1 + 2 = 3, S2 = det(A) = (1)(2) − (0)(2) = 2.
Hence, λ2 − 3λ + 2 = 0.
2 −3 1
Example 1.7.2. Find the characteristic equation of A = 3 1 3
−5 2 −4
Solution:
Method 1: Using Determinant
The characteristic equation of A is given by |A − λI| = 0
2 − λ −3 1
3 1−λ 3 =0
−5 2 −4 − λ
CHAPTER 1. MATRICES 27
Expanding,
(2 − λ) (1 − λ)(−4 − λ) − 6 − (−3) 3(−4 − λ) − (−15) + 1 6 − (−5)(1 − λ) = 0
(2 − λ)(λ2 + 3λ − 10) + 3(−3λ − 3) + (11 − 5λ) = 0
−λ3 + λ2 + 2λ = 0
i.e., λ3 − λ2 − 2λ = 0
Hence, the required characteristic equation is: λ3 − λ2 − 2λ = 0
Method 2:
For a 3 × 3 matrix, the characteristic equation is:
λ3 − S1 λ2 + S2 λ − S3 = 0
where
S1 = Sum of diagonal elements = 2 + 1 + (−4) = −1
0 −2 5
Solution:
Step 1: Characteristic Equation
The characteristic equation of A is |A − λI| = 0
For a 3 × 3 matrix, λ3 − S1 λ2 + S2 λ − S3 = 0,
S1 = sum of diagonal elements, S2 = sum of principal minors of order 2, S3 =
|A|
S1 = 7 + 6 + 5 = 18
6 −2 7 0 7 −2
S2 = + + = (30−4)+(35−0)+(42−4) = 26+35+38 = 99
−2 5 0 5 −2 6
7 −2 0
S3 = |A| = −2 6 −2 = 7(30 − 4) − 2(−10) + 0 = 182 + 20 = 202 Hence,
0 −2 5
the characteristic equation is λ3 − 18λ2 + 99λ − 162 = 0.
CHAPTER 1. MATRICES 30
Step 2: Eigenvalues
By trial and error (or synthetic division) :
If λ = 3:
λ2 − 15λ + 54 = 0
q √
15 ± (−15)2 − 4(54) 15 ± 225 − 216 15 ± 3
λ= = =
2 2 2
λ = 6, λ=9
Hence the eigenvalues are λ1 = 3, λ2 = 6, λ3 = 9.
Step 3: Eigenvectors
Case (i): When λ = 3, (A − 3I)X = 0
4 −2 0 x1
−2 3 −2 x2 = 0
0 −2 2 x3
From equations,
2x1 = x2 , −2x2 + 2x3 = 0
x1 : x2 : x3 = 1 : 2 : 2
Hence the eigenvector is
1
X1 = 2
2
Case (ii): When λ = 6, (A − 6I)X = 0
1 −2 0 x1
−2 0 −2 x2 = 0
0 −2 −1 x3
1
CHAPTER 1. MATRICES 31
0 −2 −4 x3
Therefore, Eigenvalues: λ1 = 3, λ2 = 6, λ3 = 9.
Corresponding Eigenvectors:
1 −2 −2
X1 = 2 ,
X2 = −2
, X3 = −3
2 1 2
1 1 0
Solution:
Step 1: Characteristic Equation:
The characteristic equation of A is |A − λI| = 0
The characteristic polynomial is λ3 − S1 λ2 + S2 λ − S3 = 0 where,
S1 = sum of diagonal elements = 0 + 0 + 0 = 0,
0 1 0 1 0 1
S2 = sum of principal minors of order 2 = + + = −1+(−1)+(−1) = −3,
1 0 1 0 1 0
0 1 1
S3 = det(A) = 1 0 1 = 2.
1 1 0
Hence, the characteristic equation is λ3 − 3λ − 2 = 0.
CHAPTER 1. MATRICES 32
Step 2: Eigenvalues :
Testing small roots, if λ = −1,
(−1)3 − 3(−1) − 2 = −1 + 3 − 2 = 0,
so λ = −1 is a root.
By synthetic division: λ3 − 3λ − 2 = (λ + 1)(λ2 − λ − 2)
Factorizing: λ2 − λ − 2 = (λ − 2)(λ + 1).
Thus, the eigenvalues are λ = 2, λ = −1, λ = −1. So, algebraic multi-
plicity of λ = −1 is 2.
Step 3: Eigenvectors:
We solve (A − λI)X = 0.
Case (i): λ = 2
−2 1 1 x1
1
−2 1 x2 = 0
1 1 −2 x3
This reduces to
1 1 1 x3 0
x1 + x2 + x3 = 0 − − − (4)
x1 + x2 + x3 = 0 − − − (5)
x1 + x2 + x3 = 0 − − − (6)
Here (4),
(5), x2 = −x3
(6) represent the same equation. Put x1 = 0, we get
0 0
i.e. X2 = 1 . Hence the corresponding eigenvector is X2 = 1
−1 −1
CHAPTER 1. MATRICES 33
l
Let X3 = m be an eigenvector.
n
Since the given matrix is symmetric, X3 is orthogonal to X1 and X2 .
l
[1 1 1] m = 0 ⇒ l+m+n=0 · · · (7)
n
l
[0 1 − 1] m = 0 ⇒ m−n=0 · · · (8)
n
Solving (7) and (8) by rule of cross-multiplication, we get
l m n
= =
2 −1 1
2
i.e., X3 = −1
−1
2
Hence the corresponding eigenvector is X3 = −1 Thus for the repeated
−1
eigenvalue λ = −1, there correspond two linearly independent eigenvectors
X2 and X3 .
So, the geometric multiplicity of eigenvalue λ = −1 is two.
Result
1 −1 −1
CHAPTER 1. MATRICES 34
0 −1 4
1 1 3
2. A = 1 5 1,
3 1 1
1 1 2
Eigenvalues: − 2, 3, 6, Eigenvectors: 0 , −1 , 1
−1 1 1
1 2 3
3. A = 2 4 6 ,
3 6 9
−2 3 1
Eigenvalues: 0, 0, 14, Eigenvectors: 1 , −6 , 2
0 5 3
2 0 1 1
0 3 0 1
4. A = ,
1 0 2 0
1 1 0 2
1 0 1
0 1 1
Eigenvalues: 1, 3, 3, Eigenvectors: , ,
−1 0 1
0 −1 1
6 −2 2
5. A =
−2 3 −1,
2 −1 3
2 0 2
Eigenvalues: 8, 2, 2, Eigenvectors: −1 , 1 , 0
1 2 −2
CHAPTER 1. MATRICES 35
Property 2:
AX = λX
Property 13: If two or more eigenvalues are equal, it may or may not
be possible to get linearly independent eigenvectors corresponding to
the equal roots.
−2 2 −3
det(A) = 2 1 −6 = −2(0 − 12) − 2(0 − 6) + (−3)(−2 − (−1))
−1 −2 0
= 24 + 12 + 9 = 45
8 −6 2
Example 1.9.2. If 3 and 15 are two eigenvalues of the matrix A = −6 7 −4
2 −4 3
Find |A| without expanding the determinant.
Solution:
Given λ1 = 3, λ2 = 15, λ3 =?
Sum of eigenvalues = Sum of main diagonal elements
λ1 + λ2 + λ3 = 8 + 7 + 3 = 18
3 + 15 + λ3 = 18 ⇒ λ3 = 0
Therefore, det(A) = λ1 λ2 λ3 = 3 × 15 × 0 = 0
Hence A is a singular matrix.
3 −1 −1
Example 1.9.3. Two of the Eigenvalues of A = −1 5 −1
are 3 and
−1 −1 3
6. Find the Eigenvalues of A−1 .
Solution:
Sum of the Eigenvalues = Sum of the main diagonal elements.
3 + 6 + k = 11
9 + k = 11 =⇒ k = 2
Let k be the third Eigenvalue.
Therefore, the Eigenvalues of A are 2, 3, 6.
Rule: If Eigenvalues of A are λ1 , λ2 , λ3 then the Eigenvalues of A−1 are
1 1 1
, , .
λ1 λ2 λ3
Therefore, the Eigen values of A−1 are
1 1 1
, , .
2 3 6
CHAPTER 1. MATRICES 38
−1 1 −1
the matrix A.
Solution:
To form a real symmetric matrix:
Given eigenvalues are λ1 = 2, λ2 = 3, λ3 = 6
1 1 −1
and eigenvectors are v1 = 0 , v2 = 1 , v3 = 2 .
−1 1 −1
Normalizing, we obtain
1
√1 − √16
1
− √12
√ √ 0
2 3 12
√1 √2 , NT = √1 √1 .
N= 0 √
3 6 3 3 3
− √12 √1
3
− √16 − √16 √2
6
− √16
2 0 0
T
We know that D = N AN = 0 3 0
.
0 0 6
Thus A = N DN T .
Computing,
1
√1 − √16
1
− √12
√
2 0 0 √2 0
2 3
√1 2 √1 √1 √1 .
A= 0 √ 0 3 0
3 6 3 3 3
− √12 √1
3
− √16 0 0 6 − √16 √2
6
− √16
3 1 −1
A = 1 5 1 .
−1 1 3
Verification:
Sum of eigenvalues = 2 + 3 + 6 = 11 equals the sum of the main diagonal
elements 3 + 5 + 3 = 11.
Product of eigenvalues = det(A) = 2 · 3 · 6 = 36.
CHAPTER 1. MATRICES 39
• From the toolbox on the left side, click on the “Basic” category. Find
the block labeled show string and drag it into the on start block.
• Inside the show string block, you will see a text field. Replace the
default text with the message you want to scroll—for example, Hello
World.
• Once you enter the message, the simulator on the right will immediately
begin scrolling the text across the Micro:bit’s virtual 5×5 LED display.
CHAPTER 1. MATRICES 41
Note
A wide range of tutorials and learning resources are available on the
official Micro:bit website ([Link] ). These tutorials
cover fundamental to advanced applications, offering step-by-step guid-
ance for experimentation and practice.
Another Method
This same task can also be accomplished using Python code. To do this,
click on the “Python” tab in the MakeCode editor window. This will switch
the workspace from block-based programming to text-based coding.
In the editor, type the following code:
Python Code
from microbit import *
while True:
[Link]("Hello World")
This program imports the Micro:bit module and continuously scrolls the
message "Hello World" across the LED display using a while True loop.
Once the code is entered, the output can be previewed in the simulator, or
CHAPTER 1. MATRICES 43
This case bridges the gap between mathematical theory and physical hard-
ware, showing how they combine to create functional, interactive systems.
Chapter 2
ORTHOGONALITY AND
DIAGONALIZATION
Cayley – Hamilton theorem – Diagonalization of matrices by orthogonal
transformation – Reduction of a quadratic form to canonical form by orthog-
onal transformation – Nature of quadratic forms –Applications: Stretching
of Elastic membrane, Eigenvalue problem arising from population model, Vi-
brating system of two masses on two springs.
Real time use case: Encoding and Decoding using any programming language
(Not for Examination).
2.1 Introduction
Cayley Hamilton Theorem is a very important result that is used in advanced
linear algebra to simplify linear transformations. Cayley Hamilton theorem
formula is extremely useful is performing complicated calculations with speed
and accuracy. Orthogonal matrices are used to represent linear transforma-
tions that preserve distance and angles, such as rotations and reflections in
physics and computer graphics. Reducing a quadratic form to its canoni-
cal form involves representing the form as a matrix, finding its eigenvalues
and eigenvectors, and then using an orthogonal transformation to eliminate
cross-product terms and obtain a sum of squares. Canonical form in Com-
puter Science refers to a Boolean function that is expressed either as a sum
of minterms or as a product of maxterms. It represents the standard form of
a Boolean function that can be manipulated to simplify its expression.
44
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 45
2.2.2 Problems
Example 2.2.1. Using Cayley-Hamilton theorem, find A3 and A−1 when
Using Cayley-Hamilton theorem, find A3 and A−1 when
2 −1 2
A = −1 2 −1
1 −1 2
Solution:
2 −1 2
Let A = −1 2 −1
1 −1 2
The characteristic equation (C.E.) is |A − λI| = λ3 − 6λ2 + 8λ − 3 = 0.
Hence, by Cayley-Hamilton theorem, A3 − 6A2 + 8A − 3I = 0.
From this equation, we can express: A3 = 6A2 − 8A + 3I.
Also, rearranging gives A−1 = 13 (A2 − 6A + 8I)
2 −1 2 2 −1 2
A2 = −1 2 −1 −1 2 −1
1 −1 2 1 −1 2
7 −6 9
2
A = −5 6 −6
5 −5 7
1
A−1 = (A2 − 6A + 8I).
3
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 46
7 −6 9 2 −1 2 1 0 0
1
= −5 6 −6 − 6 −1 2 −1 + 8 0 1 0
3
5 −5 7 1 −1 2 0 0 1
7 −6 9 12 −6 12 8 0 0
1 1 1
= −5 6 −6 − −6 12 −6 + 0 8 0
3 3 3
5 −5 7 6 −6 12 0 0 8
3 0 −3
1
A−1 = 1 2 0
3
−1 1 3
To find A3 From the Cayley-Hamilton equation,
A3 = 6A2 − 8A + 3I
7 −6 9 2 −1 2 1 0 0
A3 = 6 −5 6 −6 − 8 −1 2 −1 + 3 0 1 0
5 −5 7 1 −1 2 0 0 1
42 −36 54 16 −8 16 3 0 0
3
A = −30 36 −30 − −8 16 −8 + 0 3 0
30 −30 42 8 −8 16 0 0 3
29 −28 38
3
A = −22 23 −22
22 −22 29
" #
1 2
Example 2.2.2. Verify that A = satisfies its own characteristic
2 −1
equation and hence find A4 .
Solution: " #
1 2
Let A =
2 −1
The characteristic equation (C.E.) is λ2 − 5 = 0 ⇒ λ2 = 5. So, A2 - 5I = 0.
Verification " #" # " #
2 1 2 1 2 5 0
A = =
2 −1 2 −1 0 5
" # " # " #
2 5 0 5 0 0 0
A − 5I = − =
0 5 0 5 0 0
Thus, the given matrix satisfies its own C.E.
To find A4 :
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 47
A2 (A2 − 5I) = 0
A4 = 5A2
" # " #
5 0 25 0
=5 =
0 5 0 25
A2 − 5I =0
A2 =5I
A =5A−1
A−1 = 15 A = 1
5
" #
1 2
−1 5 5
A = 2
5
− 51
Solution:
To find the characteristic equation, we use
‘λ3 − S1 λ2 + S2 λ − S3 = 0
S1 = 0, S2 = −20, S3 = −8
A3 − 20A + 8I = 0 − − − − − (1)
A2 − 20I + 8A−1 = 0
8A−1 = −(A2 − 20I)
A−1 = − 18 A2 − 20I
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 48
Given: S1 = 6, S2 = 20, S3 = 35
So, A3 − 14A2 + 20A − 35I = 0
20 33 29 195 152 232
2 3
A = 15 29 23 A = 140 163 208
9 22 14 60 76 111
4. Find N T and AN .
5. Calculate D = N T AN
2.3.2 Problems
Example 2.3.1. Diagonalize the matrix
8 −6 2
A = −6 7 −4
2 −4 3
λ3 − 18λ2 + 45λ − 0 = 0
λ(λ2 − 18λ + 45) = 0
λ(λ − 3)(λ − 15) = 0
∴ λ = 0, 3, 15
2 −4 3 − λ x3 0
2
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 50
Case (ii): λ = 3
5 −6 2 x1 0
−6 4 −4 x2 = 0
2 −4 0 x3 0
5x1 − 6x2 + 2x3 = 0 − − − (5)
−6x1 + 4x2 − 4x3 = 0 − − − (6)
2x1 − 4x2 + 0x3 = 0 − − − (7)
x1 x2 x3
From (5) & (6), we get = =
16 8 −16
Thus,
2
X2 = 1
−2
Case (iii):λ = 15
−7 −6 2 x1 0
−6 −8 −4 x2 = 0
2 −4 −12 x3 0
−7x1 − 6x2 + 2x3 = 0 − − − (8)
−6x1 − 8x2 − 4x3 = 0 − − − (9)
2x1 − 4x2 − 12x3 = 0 − − − (10)
x1 −x2 x3
Consider (8) and (9), we get: 40
= 40
= 20
2
x3 = −2
−2
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 51
2
T
X2 X3 = 2 1 −2 −2 = 4 − 2 − 2 = 0
1
1
X3T X1 = 2 −2 1 2 = 2 − 4 + 2 = 0
2
The eigenvectors are orthogonal to each other.
The Normalised Matrix N is:
1 2 2
23 1
3 3
−2
N= 3 3 3
2 −2 1
3 3 3
1 2 2
1
∴ N = 2 1 −2
3
2 −2 1
1 2 2
1
∴ NT = 2 1 −2
3
2 −2 1
8 −6 2 1 2 2
1
Calculate AN : AN = −6 7 −4 · 2 1 −2
3
2 −4 3 2 −2 1
0 6 30
1
= 0 3 −30
3
0 −6 15
0 2 10
= 0 1 −10
0 −2 5
1 2 2 0 2 10
1
CalculateNT AN : NT AN = 2 1 −2 · 0 1 −10
3
2 −2 1 0 −2 5
0 0 0
D = 0 3 0 = N T AN
0 0 15
4 0 2
Solution:
S1 = 10, S2 = 12, S3 = −72, λ = 2, 6, 6
√1 √1 0 − √22 √6 0
1 1 0 2 2 2 −2 0 0
T
M = 0 0 1 , N= 0 0 1
, AN = 0 0 6 N AN = 0 6 0
−1 1 0 − √12 √1
2
0 √2
2
√6
2
0, 0 0 6
3. x2 + 2y 2 + z 2 + xy − xz + yz
Hence the quadratic form can be written as ni=1 nj=1 aij xi xj where aij =
P P
aji = 12 (bij +bji ). Therefore the quadratic form can be written as ni=1 nj=1 aij xi xj .
P P
so that the matrix A = [aij ] is always symmetric. The general quadratic form
Pn Pn T
i=1 j=1 aij xi xj where aij = aji can always be written as X AX The sym-
metric matrix
a11 a12 · · · a1n
Solution:
1 1
coeff of x21
2
coeff of x1 x2 2
coeff of x1 x3
1 1
Q = 2 coeff of x2 x1 coeff of x22 2
coeff of x2 x3
1 1
2
coeff of x3 x1 2
coeff of x3 x2 coeff of x23
So,
2 −1 −3
Q = −1 0 3
−3 3 4
and
h i 2 −1 −3 x1
x1 x2 x3 −1 0
3 x2
−3 3 4 x3
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 54
Solution:
1 1
1 2 2
Q = 21 1 1
2
1 1
2 2
1
Example 2.4.3. Write the quadratic form of the matrix
2 2 5
A = 2 0 −1
5 −1 8
Solution:
Example 2.4.4. Write down the quadratic form corresponding to the matrix
1 2 5
A = 2 0 3
5 3 0
Solution:
Q = x21 + 4x1 x2 + 10x1 x3 + 6x2 x3
X T AX = (P Y )T A(P Y )
= (Y T P T )A(P Y )
= Y T (P T AP )Y
= Y T CY where C = P T AP
···
λ1 0 0
0 λ2
··· 0
Y T DY = Y T 2 2 2
.. .. .. Y = λ1 y1 + λ2 y2 + · · · + λn yn
..
. . . .
0 0 · · · λn
2.5.3 Problems
Example 2.5.1. Reduce the quadratic form
Step 1:
6 −2 2
A = −2 3 −1
2 −1 3
Step 2: Characteristic equation:
λ3 − S1 λ2 + S2 λ − S3 = 0
S1 = 12, S2 = 36, S3 = 42
Hence, λ3 − 12λ2 + 36λ − 32 = 0
2 −1 3 − λ x3 0
Case (i): λ = 8
−2 −2 2 x1 0
−2 −5 −1 x2 = 0
2 −1 −5 x3 0
From the equations:
x1 x2 x3
= =
12 −6 6
Taking proportionality,
x1 = 2, x2 = −1, x3 = 1
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 57
Thus an eigenvector is
2
X1 = −1
1
Case (ii): λ = 2
4 −2 2 x1 0
−2 1 −1 x2 = 0
2 −1 1 x3 0
From Case (ii), when λ = 2, we have
2x1 − x2 + x3 = 0
If we set x1 = 0, then
−x2 + x3 = 0 ⇒ x2 = x3
1
Case (iii): To find the third eigenvector orthogonal
to X1 and X2 , note
l
that the matrix A is symmetric. We require a vector m such that
n
h i l
2 −1 1 m = 0
n
h i l
0 1 1
m = 0
n
That is,
2l − m + n = 0, m+n=0
Hence,
1
X3 = 1
−1
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 58
Then, 2
− √16 √1
√
6 6
NT = 0
√1 √1
2 2
√1 √1
− √13
3 3
Step 5: Compute AN
2
√1
√ 0
6 −2 2 6 3
√1 √1 √1
A = −2 3 −1 , N= − 6
2 3
2 −1 3
√1 √1
− √13
6 2
2
√1
√
0
6 −2 2 6 3
1 √1 √1
AN = −2 3 − √6
−1
2 3
2 −1
3 √1 √1
− √13
6 2
Simplifying:
16
√2
√ 0
6 3
√8 √2 √2
AN = − 6 2 3
√8 √2
− √23
6 2
Step 6: Compute N T AN
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 59
2 1 1
√ −√ √ √16 √2
6 6 6 0
1 1 6 3
T 8 √2 √2
N AN =
0 √ √
− √6 2 3
2 2
1 1 1 √8 2
− √23
√
√ √ −√ 6 2
3 3 3
8 0 0
N T AN =
0 2 0
0 0 2
Canonical Form
8 0 0 y
h i 1
y1 y2 0 2 0 y2 = 8y12 + 2y22 + 2y32
y3
y3
0 0 2
Thus, the canonical form is:
2.5.5 Definitions
Index of the Quadratic Form
The number of positive square terms in the canonical form is called the index
of the quadratic form.
Thus, the number of positive square terms = index = s.
1 −1 3
The characteristic equation is S1 = 11, S2 = 36, S3 = 36
The characteristic Equation is: λ3 − 11λ2 + 36λ − 36 = 0 and eigenvalues
are: λ1 = 2, λ2 = 3, λ3 = 6.
All eigenvalues are positive (2, 3, 6). Hence, the quadratic form is positive
definite. Index = 3, Signature = 3.
2.6 Applications
Example 2.6.1. Stretching of an elastic membrane
An elastic membrane in the x1 x2 -plane with boundary circle x21 + x22 = 1
(Fig. 2.1)is stretched so that a point P : (x1 , x2 ) goes over into the point
Q : (y1 , y2 ) given by
" # " #" #
y 5 3 x1
y = 1 = Ax = .
y2 3 5 x2
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 61
Find the principal directions , that is, the directions of the position vector
x of P for which the direction of the position vector y of Q is the same
or exactly opposite. What shape does the boundary circle take under this
deformation?
Solution: We are looking for vectors x such that y = λx. Since y = Ax,
this gives Ax = λx, an equation of the form (A − λI)x = 0, an eigenvalue
problem. In components, Ax = λx is
5−λ 3
= (5 − λ)2 − 9 = 0. (3)
3 5−λ
−3x1 + 3x2 = 0,
3x1 − 3x2 = 0.
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 62
(or a nonzero scalar multiple of these). These vectors make 45◦ and 135◦
angles with the positive x1 -direction. They give the principal directions, the
answer to our problem. The eigenvalues show that in the principal directions
the membrane is stretched by factors 8 and 2, respectively; see Fig.2.1
Accordingly, if we choose the principal directions as directions of a new
Cartesian u1 u2 -coordinate system, say, with the positive u1 -semiaxis in the
first quadrant and the positive u2 -semiaxis in the second quadrant of the
x1 x2 -system, and if we set
u1 = r cos ϕ, u2 = r sin ϕ,
z1 = 8 cos ϕ, z2 = 2 sin ϕ.
the population into three age classes of 2 years each. Let the “Leslie matrix”
be
0 2.3 0.4
L = 0.3 0 0,
0 0.5 0
where lik is the average number of daughters born to a single female during
the time she is in age class k, and sk (k = 1, 2) is the fraction of females in
age class k that will survive and pass into class (k + 1).
Problem: (a) What is the number of females in each class after t = 2, 4, 6
years if each class initially consists of 500 females? (b) For what initial
distribution will the number of females in each class change by the same
proportion? What is this rate of change?
Solution:
(a) Initially,
500
T
X0 = 500 .
500
After 2 years,
0 2.3 0.4 500 1350
X2 = LX0 = 0.3 0 0 500 = 150 .
90
243
−λ 2.3 0.4
det(L − λI) = 0.3 −λ 0 = −λ3 + 0.6λ + 0.345λ + 0.138λ + 0.072 = 0.
0 0.5 −λ
0.125
T
X by 923. Answer: 923 females in class 1, 462 in class 2, 115 in class 3.
Growth rate λ = 1.2.
Example 2.6.3. Vibrating system of two masses on two springs
Mass–spring systems involving several masses and springs can be treated
as eigenvalue problems. For instance, the mechanical system in figure 2 in is
governed by the differential equations
y = xeωt . (8)
ω 2 xeωt = Axeωt .
From (8) we thus obtain the four complex solutions (see Sec. 2.3):
The Evidence
After a thorough investigation, Officer Vikram’s team managed to re-
cover two critical pieces of information:
The coded matrix (C) from the intercepted email:
−44 13 18
−51 16 26
C=
−74 30 29
38 −18 −20
Now, the officers need your help to perform the final steps and decode
the message before the group can execute their plan.
C = P K.
P = C K −1 .
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 69
K 3 − 4K 2 + 6K + I = 0.
Rearrange to express K 3 :
K 3 = 4K 2 − 6K − I.
Step 4: Compute K 2
Compute the square of K:
0 −1 1
K2 =
7 −3 −3
.
−22 12 7
CHAPTER 2. ORTHOGONALITY AND DIAGONALIZATION 70
Step 5: Form K −1
Substitute K 2 into the formula for K −1 :
0 −1 1 1 −1 0 1 0 0
K −1 = − 7 −3 −3 + 4 1 0 −1 − 6 0 1 0
−22 12 7 −6 2 3 0 0 1
−2 −4 −1
13 21 13
2 1 9
P = .
0 16 15
18 20 0
Combining (and treating zeros as spaces) gives the hidden message: “MUM-
BAI PORT”.
Final Findings: The officers successfully decoded the hidden message,
which revealed that the smugglers planned to use the Mumbai Port for
their operation. Acting swiftly on this intelligence, the Anti-Drug Inspector
and Cybercrime Officer coordinated a raid. The smugglers were caught red-
handed on time, preventing the illegal shipment.
Key Insights
This example shows how encoding can be performed using a transfor-
mation matrix and how decoding is achieved using the inverse obtained
from the Cayley–Hamilton theorem. Such techniques form the foun-
dation of matrix-based cryptography and have applications in secure
communications.
Chapter 3
DIFFERENTIAL CALCULUS
3.1 Introduction
In day to day life we are often interested in the extent to which a change in
one quantity affects a change in another related quantity. This is called a
rate of change. For example, if you own a motor car you might be interested
in how much a change in the amount of fuel used affects how far you have
travelled. This rate of change is called fuel consumption. If your car has high
fuel consumption then a large change in the amount of fuel in your tank is
accompanied by a small change in the distance you have travelled. Sprinters
are interested in how a change in time is related to a change in their position.
This rate of change is called velocity.
Other rates of change may not have special names like fuel consumption or
velocity, but are nonetheless important. For example, an agronomist might
be interested in the extent to which a change in the amount of fertiliser used
on a particular crop affects the yield of the crop. Economists want to know
how a change in the price of a product affects the demand for that product.
Differential calculus is about describing in a precise fashion the ways in
which related quantities change.
To proceed with this booklet you will need to be familiar with the concept
of the slope (also called the gradient) of a straight line. You may need to
revise this concept before continuing.
72
CHAPTER 3. DIFFERENTIAL CALCULUS 73
Definition 3.2. A function, whose domain and co-domain are subsets of the
set of all real numbers, is known as a real-valued function.
Rule Formula
d
Constant Rule (c) = 0
dx
d n
Power Rule (x ) = nx n−1
dx
Constant Multiple d
c · f (x) = c · f ′ (x)
Rule dx
d
Sum Rule f (x) + g(x) = f ′ (x) + g ′ (x)
dx
d
Difference Rule f (x) − g(x) = f ′ (x) − g ′ (x)
dx
d
Product Rule f (x)g(x) = f ′ (x)g(x) + f (x)g ′ (x)
dx
f ′ (x)g(x) − f (x)g ′ (x)
!
d f (x)
Quotient Rule = 2
dx g(x)
g(x)
d
Chain Rule f (g(x)) = f ′ (g(x)) · g ′ (x)
dx
These rules form the foundation for solving more complex problems in Dif-
ferential Calculus.
CHAPTER 3. DIFFERENTIAL CALCULUS 75
Example:
d u vu′ − uv ′
=
dx v v2
2
′
6. f (x) = x x+x−2
3 +6 , then find f (x).
Solution:
x2 + x − 2
Givenf (x) = (Using Quotient Rule)
x3 + 6
d d
(x3 + 6) dx (x2 + x − 2) − (x2 + x − 2) dx (x3 + 6)
f ′ (x) =
(x3 + 6)2
(x3 + 6)(2x + 1) − (x2 + x − 2)(3x2 )
f ′ (x) =
(x3 + 6)2
2x4 + x3 + 12x + 6 − 3x4 − 3x3 + 6x2
f ′ (x) =
(x3 + 6)2
−x4 − 2x3 + 6x2 + 12x + 6
f ′ (x) =
(x3 + 6)2
x
7. If f (x) = ex , then find f ′ (x).
Solution:
ex
Given f (x) = , Using Quotient Rule
x
d d ′
′ x · dx (ex ) − ex · dx (x) xex − ex
f (x) = (x) =
f x2
ex (x − 1)
f ′ (x) =
x2
2
x ′ ′′
8. If f (x) = 1+x 2 , then find f (x) and f (x).
Solution:
x2
Given f (x) = 1+x 2 , Using Quotient Rule:
d d
(1 + x2 ) dx (x2 ) − (x2 ) dx (1 + x2 )
f ′ (x) =
(1 + x2 )2
(1 + x2 )(2x) − x2 (2x)
f ′ (x) =
(1 + x2 )2
2x(1 + x2 ) − 2x3
f ′ (x) =
(1 + x2 )2
2x
f ′ (x) =
(1 + x2 )2
2x
f ′ (x) =
(1 + x2 )2
CHAPTER 3. DIFFERENTIAL CALCULUS 79
du
Let u = 1 − x2 , then dx
= −2x.
From (1), y = u10 .
By the chain rule:
dy dy du
= · = (10u9 )(−2x).
dx du dx
dy
= −20x(1 − x2 )9 .
dx
10. Find y ′ if xy = y x .
Solution:
xy = y x ⇒ y log x = x log y
dy y x dy
Differentiate w.r.t. x: log x + = log y +
dx x y dx
dy x dy y
Rearranging: log x − = log y −
dx y dx x
!
dy x y
log x − = log y −
dx y x
dy y(log y − xy )
=
dx y log x − x
dy y(x log y − y)
= .
dx x(y log x − x)
Solution
The mathematical model of the process of radioactive decay is
y ′ = ky, y(t) = y0 ekt ,
14
where y0 is the initial amount of C.
e5730k = 12 .
Taking logarithms,
ln(1/2)
k= ≈ −0.000121.
5730
y0 ekt = 41 y0 .
Thus,
ln(1/4)
ekt = 14 , t= .
k
Substituting k ≈ −0.000121,
ln(1/4)
t= ≈ 11,460 years.
−0.000121
Final Answer
Hence, the bone is approximately 11,460 years old. Notice that this is
exactly twice the half-life, since 25% means two half-lives.
Physical information
Experiments show that the time rate of change dT /dt of the temperature T
of a body is proportional to the difference between T and the temperature
TA of the surrounding medium. This is called Newton’s law of cooling.
CHAPTER 3. DIFFERENTIAL CALCULUS 87
Solution
1st Step. Modeling. Denoting the unknown constant of proportionality
by k, we have
dT
= k(T − TA ) = k(T − 32).
dt
2nd Step. General solution. Separation of variables, integration, and
taking exponentials gives
Z
dT Z
= k dt ⇒ ln |T − 32| = kt + c,
T − 32
so
T (t) = 32 + cekt .
3rd Step. Particular solution. The initial condition is T (0) = 66,
hence
T (0) = 32 + c = 66, c = 34.
Thus
T (t) = 32 + 34ekt .
4th Step. Determination of k. Using T (2) = 63:
31
63 = 32 + 34e2k , e2k = ≈ 0.911765.
34
Taking logs:
2k = ln(0.911765) ⇒ k ≈ −0.046187.
5th Step. Answer and interpretation. Substituting this k into the
solution, at t = 10:
Final Answer
The temperature in the morning will be approximately 53.4◦ F.
CHAPTER 3. DIFFERENTIAL CALCULUS 88
∂u ∂u ∂u
, , and
∂x ∂y ∂z
treating x, y, and z respectively alone as variables can be obtained.
We can also find the higher order derivatives
∂ 2u ∂ 2u ∂ 2u ∂ 2u ∂ 2u ∂ 2u
, , , , , ,...
∂x2 ∂y 2 ∂z 2 ∂x∂y ∂y∂x ∂x∂z
They are evaluated as follows.
! ! !
∂ 2u ∂ ∂u ∂ 2u ∂ ∂u ∂ 2u ∂ ∂u
2
= , 2
= , 2
=
∂x ∂x ∂x ∂y ∂y ∂y ∂z ∂z ∂z
Also, !
∂ 2u ∂ ∂u
=
∂x∂y ∂x ∂y
!
∂ 2u ∂ ∂u
and =
∂y∂x ∂y ∂x
2
∂ u ∂ 2u
Generally, =
∂x∂y ∂y∂x
The third and higher orders of the partial derivatives can be obtained simi-
larly.
∂ u v ∂u ∂v
− u ∂x
∂x
=
∂x v v2
∂u ∂v
∂ u
v ∂y − u ∂y
=
∂y v v2
Therefore,
∂ 2u ∂ 2u y 2 − x2 x2 − y 2
+ = + = 0.
∂x2 ∂y 2 (x2 + y 2 )2 (x2 + y 2 )2
∂ 2r ∂ 2r ∂ 2r 2
2
+ 2+ 2 = .
∂x ∂y ∂z r
Solution. Given:
r 2 = x2 + y 2 + z 2 .
Differentiating w.r.t. x partially, we get
∂r ∂r x
2r = 2x ⇒ = .
∂x ∂x r
Now,
∂r 2
∂ 2r r−x· ∂x
r − xr r 2 − x2
= = = .
∂x2 r2 r2 r3
Similarly,
∂ 2r r2 − y 2 ∂ 2r r2 − z 2
= , = .
∂y 2 r3 ∂z 2 r3
Therefore,
3r2 − r2 2r2 2
= 3
= 3
= .
r r r
CHAPTER 3. DIFFERENTIAL CALCULUS 92
t3 x3 + t3 y 3 t3 (x3 + y 3 ) t2 (x3 + y 3 )
eu(tx,ty) = = = = t2 eu .
tx + ty t(x + y) x+y
∴ eu is a homogeneous function of degree 2.
Here, n = 2. By Euler’s theorem,
∂ u ∂
x (e ) + y (eu ) = 2eu .
∂x ∂y
∂u ∂u
⇒ xeu + yeu = 2eu .
∂x ∂y
!
u ∂u ∂u
e x +y = 2eu .
∂x ∂y
∂u ∂u
x +y = 2.
∂x ∂y
x2 y 2
Example 3.5.7. If sin u = x+y
, showthat
∂u ∂u
x +y = 3 tan u.
∂x ∂y
Solution.
x2 y 2
sin u(x, y) = .
x+y
t2 x2 t2 y 2 t4 (x2 y 2 )
sin u(tx, ty) = = = t3 sin u.
tx + ty t(x + y)
CHAPTER 3. DIFFERENTIAL CALCULUS 94
hence
∂u ∂u sin u
x +y = = tan u.
∂x ∂y cos u
Example 3.5.10. If u is a homogeneous function of degree n in x and y,
then show that:
∂ 2u ∂ 2u 2
2∂ u
x2 + 2xy + y = n(n − 1)u
∂x2 ∂x∂y ∂y 2
Step 1: Euler’s Theorem for homogeneous functions
Since u is homogeneous of degree n:
∂u ∂u
x +y = nu (1)
∂x ∂y
Step 2: Differentiate equation (1) with respect to x
!
∂ ∂u ∂u ∂
x +y = (nu)
∂x ∂x ∂y ∂x
Apply the product rule:
∂u ∂ 2u ∂ 2u ∂u
+x 2 +y =n
∂x ∂x ∂x∂y ∂x
Rearranging:
∂ 2u ∂ 2u ∂u
x + y = (n − 1) (2)
∂x2 ∂x∂y ∂x
Step 3: Differentiate equation (1) with respect to y
CHAPTER 3. DIFFERENTIAL CALCULUS 96
!
∂ ∂u ∂u ∂
x +y = (nu)
∂y ∂x ∂y ∂y
Apply the product rule:
∂ 2u ∂u ∂ 2u ∂u
x + +y 2 =n
∂x∂y ∂y ∂y ∂y
Rearranging:
∂ 2u ∂ 2u ∂u
x + y 2 = (n − 1) (3)
∂x∂y ∂y ∂y
Step 4: Multiply equation (2) by x, and equation (3) by y
From (2):
∂ 2u ∂ 2u ∂u
x2 2 + xy = (n − 1)x
∂x ∂x∂y ∂x
From (3):
∂ 2u ∂ 2u ∂u
xy + y 2 2 = (n − 1)y
∂x∂y ∂y ∂y
Add both:
!
∂ 2u ∂ 2u ∂ 2u ∂u ∂u
x2 2 + 2xy + y 2 2 = (n − 1) x +y
∂x ∂x∂y ∂y ∂x ∂y
∂u ∂u
!
∂(u, v) u, v ∂x ∂y
or J or J = ∂v ∂v .
∂(x, y) x, y ∂x ∂y
If u, v, w are continuous functions of three independent variables x, y, z
having first order partial derivatives, then the Jacobian of u, v, w w.r.t. x, y, z
is defined as
∂u ∂u ∂u
∂x ∂y ∂z
∂(u, v, w) ∂v ∂v ∂v
= ∂x ∂y ∂z .
∂(x, y, z) ∂w ∂w ∂w
∂x ∂y ∂z
∂(u, v)
∂(r, θ)
Given:
x = u(1 − v), y = uv.
Compute J1 :
∂x ∂x
1 − v −u
J1 = ∂u
∂y
∂v
∂y = = (1 − v)u − (−u)(v) = u(1 − v + v) = u.
∂u ∂v
v u
x =u − uv = u − y ⇒ x + y = u
y y
y =uv ⇒ v = = .
u x+y
We get:
1
J2 = .
u
Now,
1
J1 J2 = u · = 1.
u
Property III. If the functions u, v, w of three independent variables
x, y, z are not independent, then the Jacobian of u, v, w with respect to x, y, z
vanishes.
Solution:
Given u =x + 2y + z.
∂u ∂u ∂u
=1, = 2, = 1.
∂x ∂y ∂z
v =x − 2y + 3z.
∂v ∂v ∂v
=1, = −2, = 3.
∂x ∂y ∂z
w =2xy − xz + 4yz − 2z 2 .
∂w ∂w ∂w
=2y − z, = 2x + 4z, = −x + 4y − 4z.
∂x ∂y ∂z
∂u ∂u ∂u
∂x ∂y ∂z
∂(u, v, w) ∂v ∂v ∂v
= ∂x ∂y ∂z
∂(x, y, z) ∂w ∂w ∂w
∂x ∂y ∂z
1 2 1
= 1 −2 3
2y − z 2x + 4z −x + 4y − 4z
u + v = 2x + 4z, u − v = 4y − 2z.
(u + v)(u − v) = 2(x + 2z) · 2(2y − z)
u2 − v 2 = 4(2xy − xz + 4yz − 2z 2 )
u2 − v 2 = 4w.
Applications of Differentiation
• Motion – Velocity and acceleration are obtained as first and
second derivatives of displacement with respect to time.
So, the death occurred about 44.6 minutes before 9:00 PM, i.e., at ap-
proximately 8:15 PM.
Final Findings
The CBI confirms Mr. Vikram died around 8:15 PM. This simple
application of differentiation and Newton’s Law of Cooling helped solve
the mystery and identify the true culprit. Mathematics proves to be a
vital tool even in real-life investigations.
Note
Algor Mortis, the cooling of the body after death, plays a crucial role
in estimating the exact time of death. However, since body cooling is
influenced by environmental conditions, forensic experts also examine
Livor Mortis (the settling of blood causing skin discoloration) and
Rigor Mortis (the stiffening of muscles). By analyzing all three post-
mortem changes together, investigators can establish a more reliable
and precise timeline of death.
Key Insights
Differentiation provides a powerful tool to analyze changes in physi-
cal, biological, and economic systems. From calculating the speed of
vehicles to optimizing business profits, its applications span across dis-
ciplines. For an engineer, understanding differentiation is essential to
solve real-time problems effectively.
Chapter 4
FUNCTIONS OF SEVERAL
VARIABLES
4.1 Introduction
The students have studied in the lower classes the concept of partial differ-
entiation of a function of more than one variable. They were also exposed to
homogeneous functions of several variables and Euler’s theorem associated
with such functions. In this chapter, we discuss some of the applications of
the concept of partial differentiation, which are frequently required in engi-
neering problems.
104
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 105
dz ∂f dx ∂f dy
= +
dt ∂x dt ∂y dt
dz ∂z dx ∂z dy
i.e., = + [since f (x, y) ≡ z(x, y)]. − − − −(2)
dt ∂x dt ∂y dt
!
dz dx dy
and also and
dt dt dt
is called the total differential coefficient of z.
This name is given to distinguish it from the partial differential coefficients
∂z ∂z
and .
∂x ∂y
∂z ∂z
dz = dx + dy − − − −(3)
∂x ∂y
dz is called the total differential of z.
Corollary 2: If z is directly a function of two variables u and v, which are
in turn functions of two other variables x and y, clearly z is a function of x
and y ultimately. Hence the total differentiation of z is meaningless. We can
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 106
∂z ∂z
find only and by using the following results which can be derived as
∂x ∂y
result (2) given above.
∂z ∂z ∂u ∂z ∂v
= + − − − −(4)
∂x ∂u ∂x ∂v ∂x
∂z ∂z ∂u ∂z ∂v
= + − − − −(5)
∂y ∂u ∂y ∂v ∂y
We note that the partial differentiation of z is performed via the intermediate
∂z ∂z
variables u and v, which are functions of x and y. Hence and are
∂x ∂y
called partial derivatives of a function of two functions.
Note: Results (2), (3), (4) and (5) can be extended to a function z of several
intermediate variables.
Though (2) is an exact relation, it can be made use of to get the approximate
relation (1), by replacing dx and dy by ∆x and ∆y respectively. Let y = f (x).
If we assume that the value of x is obtained by measurement, it is likely that
there is a small error ∆x in the measured value of x. This error in the value
of x will contribute a small error ∆y in the calculated value of y, as x and y
are functionally related. The small increments ∆x and ∆y can be assumed
to represent the small errors ∆x and ∆y. Thus the relation between the
errors ∆x and ∆y can be taken as
′
∆y ≃ f (x)∆x
values of x, y, z, the likely errors ∆x, ∆y, ∆z will result in an error ∆u in the
calculated value of u, given by
∂u ∂u ∂u
∆u ≈ ∆x + ∆y + ∆z,
∂x ∂y ∂z
which can be assumed as the approximate version of the total differential
relation
∂u ∂u ∂u
du = dx + dy + dz
∂x ∂y ∂z
Note: The error ∆x in x is called the absolute error in x, while ∆x x
is called
the relative or proportional error in x and 100∆x
x
is called the percentage error
in x.
f (x, y) = 0,
If we denote
∂f ∂f ∂ 2f ∂ 2f ∂ 2f
= p, = q, = r, = s, =t
∂x ∂y ∂x2 ∂x∂y ∂y 2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 108
d2 y
We can express the second order derivative 2 in terms of p, q, r, s, t as given
dx
below. Noting that p and q are functions of x and y and differentiating both
sides of (2) with respect to x totally, we have
dp dq
d2 y q dx
− p dx
2
=−
dx q2
∂q ∂q dy ∂p ∂p dy
p ∂x
+ ∂y dx
−q ∂x
+ ∂y dx
=
q2
dy dy
p s+t· dx
−q r+s· dx
=
q2
dy p
Substituting = − , we get
dx q
2
dy p s + t · − pq − q r + s · − pq
=
dx2 q2
(qs − pt) − (qr − ps)
=
q3
p t − 2pqs + q 2 r
2
=
q3
du ∂u ∂u dy
= +
dx ∂x ∂y dx
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 109
Proof:
du ∂u dx ∂u dy
We have, = +
dt ∂x dt ∂y dt
du ∂u dx ∂u dy ∂u ∂u dy
Put t = x, = + = +
dx ∂x dx ∂y dx ∂x ∂y dx
du
Thus, is called the total differential co-efficient of u with respect to x.
dx
du
Example 4.3.2. Find in terms of t, if u = x3 +y 3 where x = at2 , y = 2at.
dt
Solution:
du ∂u dx ∂u dy
= + · · · (1)
dt ∂x dt ∂y dt
u =x3 + y 3
∂u
=3x2 = 3(at2 )2 = 3a2 t4
∂x
∂u
=3y 2 = 3(2at)2 = 12a2 t2
∂y
dx dy
x =at2 ⇒ = 2at, y = 2at ⇒ = 2a
dt dt
Substituting in (1):
du
= (3a2 t4 )(2at) + (12a2 t2 )(2a)
dt
du
= 6a3 t5 + 24a3 t2
dt
dy
Example 4.3.3. Find when y sin x = x cos y.
dx
Solution: Let
f (x, y) = y sin x − x cos y
∂f
= y cos x − cos y
∂x
∂f
= sin x + x sin y
∂y
!
∂f
dy ∂x y cos x − cos y
=− ! =−
dx ∂f sin x + x sin y
∂y
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 110
Solution:
u = ex cos y, v = ex sin y
∂u ∂v
= ex cos y = u, = ex sin y = v
∂x ∂x
∂u ∂v
= −ex sin y = −v, = ex cos y = u
∂y ∂y
∂ϕ ∂ϕ ∂u ∂ϕ ∂v
= + (Using chain rule)
∂x ∂u ∂x ∂v ∂x
∂ϕ ∂ϕ ∂ϕ
= ·u+ ·v
∂u ∂v ∂y
∂ϕ ∂ϕ ∂u ∂ϕ ∂v
= +
∂y ∂u ∂y ∂v ∂y
∂ϕ ∂ϕ
= · (−v) + ·u
∂u ∂v
∂ ∂ ∂ ∂ ∂ ∂
Hence, =u +v , = −v +u .
∂x ∂u ∂v ∂y ∂u ∂v
! ! !
∂ 2ϕ ∂ ∂ϕ ∂ ∂ ∂ϕ ∂ϕ
= = u +v u +v
∂x2 ∂x ∂x ∂u ∂v ∂u ∂v
! !
∂ ∂ϕ ∂ϕ ∂ ∂ϕ ∂ϕ
=u u +v +v u +v
∂u ∂u ∂v ∂v ∂u ∂v
" # " #
∂ 2 ϕ ∂ϕ ∂ 2ϕ ∂ 2ϕ ∂ϕ ∂ 2ϕ
=u u 2 + (1) + v +v u + (1) + v 2
∂u ∂u ∂u∂v ∂v∂u ∂v ∂v
2 2 2 2
∂ ϕ ∂ϕ ∂ ϕ ∂ ϕ ∂ϕ ∂ ϕ
= u2 2 + u + uv + uv +v + v 2 2 · · · (1)
∂u ! ∂u ∂u∂v ! ∂v∂u ∂v ! ∂v
∂ 2ϕ ∂ ∂ϕ ∂ ∂ ∂ϕ ∂ϕ
= = −v +u −v +u
∂y 2 ∂y ∂y ∂u ∂v ∂u ∂v
! !
∂ ∂ϕ ∂ϕ ∂ ∂ϕ ∂ϕ
= −v −v +u +u −v +u
∂u ∂u ∂v ∂v ∂u ∂v
" # " #
∂ 2ϕ ∂ 2ϕ ∂ϕ ∂ 2ϕ ∂ϕ ∂ 2ϕ
= −v −v 2 + u + (1) + u −v + (−1) + u 2
∂u ∂u∂v ∂u ∂v∂u ∂v ∂v
2 2 2 2
∂ ϕ ∂ ϕ ∂ϕ ∂ ϕ ∂ϕ ∂ ϕ
= v 2 2 − uv −v − uv −u + u2 2 · · · (2)
∂u ∂u∂v ∂v ∂v∂u ∂u ∂v
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 112
3(x2 − yz)
= 3
x + y 3 + z 3 − 3xyz
∂u 3(y 2 − zx) ∂u 3(z 2 − xy)
Similarly,= 3 , = .
∂y x + y 3 + z 3 − 3xyz ∂z x3 + y 3 + z 3 − 3xyz
∂u ∂u ∂u 3(x2 − yz + y 2 − zx + z 2 − xy)
+ + =
∂x ∂y ∂z x3 + y 3 + z 3 − 3xyz
3(x2 + y 2 + z 2 − yz − zx − xy)
= .
(x + y + z)(x2 + y 2 + z 2 − yz − zx − xy)
!
∂ ∂ ∂ 3
+ + u= .
∂x ∂y ∂z x+y+z
Differentiating both the sides partially w.r.t. x, we get
( ! )
∂ ∂ ∂ ∂ −3
+ + u = . Similarly,
∂x ∂x ∂y ∂z (x + y + z)2
( ! )
∂ ∂ ∂ ∂ −3
+ + u = , and
∂y ∂x ∂y ∂z (x + y + z)2
( ! )
∂ ∂ ∂ ∂ −3
+ + u = .
∂z ∂x ∂y ∂z (x + y + z)2
!( ! )
∂ ∂ ∂ ∂ ∂ ∂ −9
Adding, + + + + u =
∂x ∂y ∂z ∂x ∂y ∂z (x + y + z)2
!2
∂ ∂ ∂ −9
i.e., + + u= .
∂x ∂y ∂z (x + y + z)2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 113
∂Z ∂f ∂u ∂f ∂v ∂f ∂w
= + +
∂x ∂u ∂x ∂v ∂x ∂w ∂x
∂f ∂f ∂f ∂f ∂f
= (0) + (−1) + (1) = − + .
∂u ∂v ∂w ∂v ∂w
∂Z ∂f ∂f ∂Z ∂f ∂f
Similarly, = − , and =− + .
∂y ∂u ∂w ∂z ∂u ∂v
∂Z ∂Z ∂Z
Adding, + + = 0.
∂x ∂y ∂z
du
Example 4.3.8. If u = x log(xy) where x3 + y 3 + 3xy = 1, then find dx
.
Solution:
We begin by rewriting the expression for u:
dy
Group terms: (y 2 + x) · = −(y + x2 )
dx
dy y + x2
:=−
dx y(x + y 2 )
du
Substitute back into the expression for dx
:
!
du x y + x2
= log x + log y + 1 + · −
dx y y(x + y 2 )
du x(y + x2 )
= log x + log y + 1 −
dx y(x + y 2 )
Taylor’s theorem,
∂ h2 ∂ 2
f (x + h, y + k) =f (x, y + k) + h f (x, y + k) + f (x, y + k) + . . .
∂x 2! ∂x2
Now, considering f(x,y+k) as a function of y only, we have
∂ k2 ∂ 2
f (x, y + k) = f (x, y) + k f (x, y) + f (x, y) + . . .
∂y 2! ∂y 2
Differentiating (2) partially with respect to x, we have
∂ ∂ ∂2 k2 ∂ 3
f (x, y + k) = f (x, y) + k f (x, y) + f (x, y) + . . .
∂x ∂x ∂x∂y 2! ∂x∂y 2
Differentiating (3) partially with respect to x, we have
∂2 ∂2 ∂3 k2 ∂ 4
f (x, y + k) = f (x, y) + k 2 f (x, y) + f (x, y) + . . .
∂x2 ∂x2 ∂x ∂y 2! ∂x2 ∂y 2
Substituting (2),(3), (4) etc. in (1), we have
∂ k2 ∂ 2
f (x + h, y + k) = f (x, y) + k f (x, y) + f (x, y) + . . .
∂y 2! ∂y 2
∂ ∂2 k2 ∂ 3
+h f (x, y) + k f (x, y) + f (x, y) + . . .
∂x ∂x∂y 2! ∂x∂y 2
h2 ∂ 2 ∂3 k2 ∂ 4
+ 2 f (x, y) + k 2 f (x, y) + f (x, y) + . . .
2! ∂x ∂x ∂y 2! ∂x2 ∂y 2
k2 ∂ 4
+ f (x, y) + . . .
2! ∂x2 ∂y 2
We have f (x + h, y + k)
! !
∂ ∂ 1 ∂ 2f ∂ 2f ∂ 2f
= f (x, y) + h +k f (x, y) + h2 2 + 2hk + k2 2 + ···
∂x ∂y 2! ∂x ∂x∂y ∂y
h i 1 2
h
= f (x, y) + hfx (x, y) + kfy (x, y) + h fxx (x, y) + 2hkfxy (x, y)
i 2!
+ k 2 fyy (x, y) + · · · (5)
The above result can be written in symbolic form as
f (x + h, y + k)
! !2
∂ ∂ 1 ∂ ∂
= f (x, y) + h +k f (x, y) + h +k f (x, y) + · · · (6)
∂x ∂y 2! ∂x ∂y
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 116
By Taylor’s theorem
1h i 1h 2
f (x, y) =f (a, b) + hfx (a, b) + kfy (a, b) + h fxx (a, b) + 2hkfxy (a, b)
1! 2!
i 1h 3
+ k 2 fyy (a, b) + h fxxx (a, b) + 3h2 kfxxy (a, b) + 3hk 2 fxyy (a, b)
i 3!
+ k 3 fyyy (a, b) + · · ·
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 118
π
Case(i): a = 0, b = 2
π
h = x − a = x, k =y−b= y− 2
π
f (x, y) =0 + (x)(0) + y − 2
(−1)
1
2
2 π π
+ (x )(0) + (2x) y − 2 (−1) + y − 2 (0)
2!
1
+ (x3 )(0) + (3x2 ) y − π2 (−1)+
3!
3
π π
(3x) y − 2
(0) + y − 2
(1)
h i h 3 i
= −y + π
2
+ 1
2!
− 2xy + 2x π2 + 1
3!
− 3x2 y + 3π 2
2
x + y− π
2
Case (ii): a = 0, b = 0
h=x−a=x−0=x k =y−b=y−0=y
1h i
f (x, y) =f (0, 0) + xfx (0, 0) + yfy (0, 0)
1!
1h 2 i
+ x fxx (0, 0) + 2xyfxy (0, 0) + y 2 fyy (0, 0)
2!
1h 3 i
+ x fxxx (0, 0) + 3x2 yfxxy (0, 0) + 3xy 2 fxyy (0, 0) + y 3 fyyy (0, 0) + · · ·
3!
x 1 1
= 1 + + (x2 − y 2 ) + (x3 − 3xy 2 ) + · · ·
1! 2! 3!
x
Example 4.5.2. Expand e log(1 + y) in powers of x and y up to terms of
third degree.
f (x, y) = ex log(1 + y)
Solution:
Function Value at (0,0)
f (x, y) = ex log(1 + y) f =0
fx = ex log(1 + y) fx = 0
fy = ex (1 + y)−1 fy = 1
fxx = ex log(1 + y) fxx = 0
fxy = ex (1 + y)−1 fxy = 1
fyy = −ex (1 + y)−2 fyy = −1
Here, a = 1, b = −2, h = x − 1, k = y + 2.
Example 4.3.4 Taylor Series Expansion of f (x, y) = x2 y + 3y − 2 around
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 120
(1, −2).
Solution:
Given f (x, y) = x2 y + 3y − 2
f (1, −2) = 12 (−2) + 3(−2) − 2 = −2 − 6 − 2 = −10
4.5.1 Exercise
1. Use Taylor’s formula to expand the function f defined by f (x, y) =
x2 + xy + y 2 in powers of (x − 1) and (y − 2).
2. Find the Taylor’s series expansion of ex near the point (1, 1) upto the
first degree terms.
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 121
3x2 − 3 = 0 ⇒ x2 − 1 = 0 ⇒ x = ±1
3y 2 − 12 = 0 ⇒ y 2 − 4 = 0 ⇒ y = ±2
The stationary points are (1, 2), (1, −2), (−1, 2), (−1, −2). Now, compute the
second-order partial derivatives:
Subtracting:
2x = 12 ⇒ x=6
Substitute in (1):
24 + 3y = 36 ⇒ 3y = 12 ⇒ y=4
fy = 6xy − 30y = 0
6y(x − 5) = 0
We have
fxx = A = 6x − 30, fxy = B = 6y, fyy = C = 6x − 30
h i
∴ AC − B 2 = (6x − 30)2 − 36y 2 = 36 (x − 5)2 − y 2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 128
A = 36 − 30 = 6 > 0, AC − B 2 = 36 > 0
f (6, 0) = 63 + 0 − 15 · 36 + 72 · 6 = 108
A = 24 − 30 = −6 < 0, AC − B 2 = 36 > 0
f (4, 0) = 43 + 0 − 15 · 16 + 72 · 4 = 112
A = 0, AC − B 2 = −36 < 0
A = 0, AC − B 2 = −36 < 0
General Method
Suppose we want to maximize or minimize
f (x, y, z, . . . )
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 129
Applications
• In Economics: maximize profit or utility subject to budget con-
straints.
L(x, y, λ) = x2 + y 2 + λ(1 − x − y)
Conditions:
∂L
= 2x − λ = 0 ⇒ λ = 2x
∂x
∂L
= 2y − λ = 0 ⇒ λ = 2y
∂y
So, x = y
Constraint:
1
x+y =1 ⇒ x=y= 2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 130
Thus, 2 2
1 1 1 1 1
f ,
2 2
= 2
+ 2
= 2
1
Hence, the function has a minimum value 2
at ( 21 , 12 ). No maximum value
exists since f (x, y) → ∞ as (x, y) grows.
Example 4.7.2. Find the minimum value of
x2 + y 2 + z 2
Solution:
Let the auxiliary function F be
!
2 21 1 1 2
F (x, y, z, λ) = (x + y + z ) + λ + + −1
x y z
where λ is the Lagrange multiplier.
∂F 1 λ
Fx = = 2x + λ − 2 = 2x −
∂x x x2
!
∂F 1 λ
Fy = = 2y + λ − 2 = 2y −
∂y y y2
∂F 1 λ
Fz = = 2z + λ − 2 = 2z −
∂z z z2
For a minimum at (x, y, z), we must have
Fx = 0, Fy = 0, Fz = 0
Thus,
λ λ
2x − =0 ⇒ 2x3 = λ ⇒ x3 = (1)
x2 2
λ λ
2y − 2 = 0 ⇒ 2y 3 = λ ⇒ y3 = (2)
y 2
λ λ
2z − 2 = 0 ⇒ 2z 3 = λ ⇒ z3 = (3)
z 2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 131
x=y=z
Given condition:
1 1 1
+ + =1
x y z
Since x = y = z, we have
3
=1 ⇒ x=3
x
Therefore,
y = 3, z=3
Finally, the minimum value is
x2 + y 2 + z 2 = 32 + 32 + 32 = 27
Example 4.7.3. Find the dimensions of the open at the top box to have the
least surface area, whose volume is 32 cu. units.
Solution:
Let x, y, z be the length, breadth, and height of the box.
Volume V = xyz = 32
Now,
∂F
Fx = = y + 2z + λyz
∂x
∂F
Fy = = x + 2z + λxz
∂y
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 132
∂F
Fz = = 2x + 2y + λxy
∂z
Fλ = xyz − 32
Setting each equal to zero:
y + 2z + λyz = 0 (1)
x + 2z + λxz = 0 (2)
2x + 2y + λxy = 0 (3)
xyz = 32 (4)
From (1) and (2):
y + 2z x + 2z
= ⇒ x=y (5)
yz xz
From (2) and (3):
x + 2z 2x + 2y x
= ⇒ z= (6)
xz xy 2
From (4), (5), and (6):
x x3
x·x· = 32 ⇒ = 32 ⇒ x3 = 64 ⇒ x=4
2 2
Thus,
x
y = 4, z= =2
2
From (2) and (3):
x + 2z 2x + 2y x
= ⇒ z= (6)
xz xy 2
From (4), (5), and (6):
x x3
x·x· = 32 ⇒ = 32
2 2
x3 = 64 ⇒ x=4
Thus,
x
y = 4, z= =2
2
The dimensions of the box are:
x = 4, y = 4, z=2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 133
Example 4.7.4. A rectangular box open at the top is to have a given ca-
pacity K. Find the dimensions of the box requiring least material for its
construction.
Solution: Let x, y, z be the dimensions of the box. Surface area = xy +
2yz + 2zx is to be minimized, subject to
Volume = xyz = k
Fx = 0 Fy = 0 Fz = 0
1 2
y + 2z + λyz = 0 ⇒ + = −λ . . . (1)
z y
1 2
x + 2z + λxz = 0 ⇒ + = −λ . . . (2)
z x
2 2
2x + 2y + λxy = 0 ⇒ + = −λ . . . (3)
y x
From (1) and (2), we get
1 2 1 2 2 2
+ = + ⇒ = ⇒ x=y . . . (4)
z y z x y x
u = 400xyz 2 .
x2 + y 2 + z 2 = 1.
Solution:
Given:
u = f = 400xyz 2 (A)
ϕ = x2 + y 2 + z 2 − 1 = 0 (B)
Let the auxiliary function F be
Now,
∂F
Fx = = 400yz 2 + λ(2x),
∂x
∂F
Fy = = 400xz 2 + λ(2y),
∂y
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 135
∂F
Fz = = 800xyz + λ(2z).
∂z
For maximum or minimum:
Fx = 400yz 2 + 2λx,
Fy = 400xz 2 + 2λy,
Fz = 800xyz + 2λz.
For maximum or minimum, set these equal to 0:
400yz 2 + 2λx = 0,
400xz 2 + 2λy = 0,
800xyz + 2λz = 0.
From (1) and (2), we get
200yz 2 200xz 2
= ⇒ y 2 = x2 . (4)
x y
200xz 2
= 400xy ⇒ z 2 = 2y 2 . (5)
y
x2 + y 2 + z 2 = 1,
1 2 1 2
z + z + z 2 = 1,
2 2
1 1
2z 2 = 1 ⇒ z2 = ⇒ z = ±√ .
2 2
From (6):
1 1
x2 = ⇒ x=± ,
4 2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 136
1 1
y2 = ⇒ y=± .
4 2
2
u = 400xyz .
Selecting x, y, z > 0:
1 1 1
u = 400 2 2 2
,
u = 50.
The Maximum temperature is 50.
Example 4.7.6. Find the maximum volume of the largest rectangular par-
allelepiped that can be inscribed in an ellipsoid
x2 y 2 z 2
+ 2 + 2 = 1.
a2 b c
Solution:
Let a vertex of such parallelepiped be (x, y, z), then all other vertices will be
(±x, ±y, ±z). Hence, the sides of the solid are 2x, 2y, 2z (lengths). Therefore,
the volume is
V = (2x)(2y)(2z) = 8xyz.
Let f = 8xyz. We have to maximise V subject to the condition
x2 y 2 z 2
ϕ(x, y, z) = + 2 + 2 − 1 = 0.
a2 b c
Let !
x2 y 2 z 2
F (x, y, z, λ) = f + λϕ = 8xyz + λ 2 + 2 + 2 − 1 .
a b c
Now,
∂F 2xλ ∂F 2yλ ∂F 2zλ
Fx = = 8yz + 2 , Fy = = 8xz + 2 , Fz = = 8xy + 2 .
∂x a ∂y b ∂z c
To find the stationary values, set
Fx = 0, Fy = 0, Fz = 0.
Fx = 0 Fy = 0 Fz = 0
2yλ
8yz + a2 = 0 8xz + b2 = 0 8xy + 2zλ
2xλ
c2
=0
−2xλ −2yλ −2zλ
8yz = a2 8xz = b2 8xy = c2
4yz x y 4xy
−λ
= a2 4xz
−λ
= b2 −λ
= cz2
x2 y2 z2
⇒ x2 = 4yz
−λ a2
⇒ y2 = 4xz
−λ b2
⇒ z2 = 4xy
−λ c2
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 137
x2 y2 z2
= = (4)
a2 b2 c2
Given:
x2 y 2 z 2
+ 2 + 2 =1
a2 b c
By (4),
3x2 a2 a
=1 ⇒ x2 = ⇒ x= √ .
a2 3 3
Similarly,
b c
y=√ , z=√ .
3 3
Hence, the extremum point is
!
a b c
√ , √ , √ .
3 3 3
This will not give minimum V , because when x = 0, V = 0 and the solid
degenerates into a rectangular sheet. Hence, this gives only maximum value.
abc
∴ Vmax = 8 · √ .
3 3
Example 4.7.7. Find the maximum and minimum value of x2 + y 2 + z 2
subject to condition x + y + z = 3a.
Solution
Here, we try to find the conditional minimum of x2 + y 2 + z 2 subject to the
condition
x + y + z = 3a (1)
Using (1), we first express the given function as a function of x and y. From
(1),
z = 3a − x − y.
Using this in the given function, we get
Now,
fx = 2x − 2(3a − x − y),
fy = 2y − 2(3a − x − y),
fxx = 4, fxy = 2, fyy = 4.
The possible extreme points are given by fx = 0 and fy = 0:
fx = 0 fy = 0
2x − 2(3a − x − y) = 0 2y − 2(3a − x − y) = 0
x = 3a − x − y y = 3a − x − y
2x + y = 3a 2y + x = 3a
From (2) and (3), we get the only extreme point as (a, a).
at the point (a, a), since AC − B 2 > 0 and A > 0, f (x, y) is minimum at
(a, a) and the minimum value of f (x, y) is 3a2 . Alternatively, let the auxiliary
function F be
F (x, y, z) = (x2 + y 2 + z 2 ) + λ(x + y + z − 3a). (1)
We have,
∂F ∂F ∂F
Fx = = 2x + λ, Fy = = 2y + λ, Fz = = 2z + λ.
∂x ∂y ∂z
To find the stationary values:
Fx = 0 Fy = 0 Fz = 0
2x + λ = 0 2y + λ = 0 2z + λ = 0
−λ −λ −λ
x= (1) y = (2) z = (3)
2 2 2
From (1), (2) and (3), we get
x=y=z (4)
Given:
x + y + z = 3a
x + x + x = 3a (by (4))
3x = 3a ⇒ x = a.
Hence,
(a, a, a) is the point where minimum value occurs.
Therefore, the minimum value is
a2 + a2 + a2 = 3a2 .
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 139
L(x, y, λ) = xy + λ(1 − x2 − y 2 ).
C(x, y) = 5x + 8y,
x2 + y 2 = 100.
Story: Pressed for time before a funding meeting, Mr. Arjun consults
Dr. Meera, a mathematician, who applies the Lagrange multiplier method.
Within hours she computes the optimal (x, y) that minimizes cost without
violating safety regulations — saving the city money and keeping the design
safe.
Takeaway: This problem shows how constrained optimization (Lagrange
multipliers) provides practical engineering trade-offs between design variables
like thickness and length.
Mathematical Investigation: Problem restatement.
Minimize the cost
C(x, y) = 5x + 8y
subject to the safety constraint
g(x, y) = x2 + y 2 − 100 = 0,
CHAPTER 4. FUNCTIONS OF SEVERAL VARIABLES 141
Final Findings The minimum feasible cost under the given safety con-
straint occurs when the cable thickness and length are approximately 5.30
and 8.48 (in the chosen units), yielding a cost of about 94.34 units.
Key Insight
Lagrange multipliers convert a constrained optimization problem into
solving a simple system of equations. For design problems (like this
bridge cable), the method yields the precise trade-off between design
variables that minimizes cost while satisfying safety. The case study
involves an engineer designing a bridge cable, using the method to find
the cheapest design that still meets safety requirements. The technique
provides a precise way to balance design variables and make optimal
decisions.
Chapter 5
INTEGRAL CALCULUS
5.1 Introduction
Integral Calculus is the study of finding a function based on the infor-
mation about its rate of change. Definite integral is very useful in calculating
areas bounded by curves, arc length, volumes, velocity, length, moment of
inertia, work, etc.
d
Z
f (x) dx = f (x)
dx
R
The integral symbol “ ” was introduced by Leibnitz.
143
CHAPTER 5. INTEGRAL CALCULUS 144
2. I = x14 dx
R
x−4+1 x−3
Solution: I = x−4 dx = = − 13 x−3 + C.
R
−4+1
= −3
CHAPTER 5. INTEGRAL CALCULUS 145
3. I = (x2 + 1)(x + 3) dx
R
Solution: Z
I = (x3 + 3x2 + x + 3) dx
x4 3x3 x2
I= + + + 3x + C
4 3 2
x4 x2
I= + x3 + + 3x + C
4 2
tan2 x dx
R
4.
Z Z Z
= (sec2 x − 1) dx = sec2 x dx − dx
= tan x − x + C.
R 1
5. dx
1+sin x
Solution: Multiply numerator and denominator by (1 − sin x):
Z
1 − sin x Z
1 − sin x
= dx = dx
(1 + sin x)(1 − sin x) 1 − sin2 x
1 − sin x Z
1 sin x
Z
= dx = − dx
cos2 x cos2 x cos2 x
Z Z
sin x
= sec2 x dx − dx
Z cos2 x
= tan x − tan x sec x dx
= tan x − sec x + C
5.5.2 Function
The definite integral operates on a function f (x), which represents the curve
whose area is being measured.
where:
R
• : Integral symbol (indicating the operation)
• a, b: Limits of integration
5.7 Problems
Example 5.7.1.
Z 1
(4 + 3x2 ) dx
0
Solution:
Z 1 Z 1
= 4 dx + 3x2 dx
0 0
3 1
h i h i
= [4x]10 + x = [4(1) − 4(0)] + (1)3 − (0)3 = 4 + 1 = 5
0
Example 5.7.2.
Z 4
(x2 + 2x − 5) dx
1
Solution:
" #4
x3
= + x2 − 5x
3 1
! !
43 13
= + 42 − 5(4) − + 12 − 5(1)
3 3
64 1
= + 16 − 20 − +1−5
3 3
64 1 63
= − = = 21
3 3 3
CHAPTER 5. INTEGRAL CALCULUS 148
Example 5.7.3.
Z 10 Z 8 Z 10
f (x) dx = 17 and f (x) dx = 12, then find f (x) dx
0 0 8
Solution: Z 10 Z 8 Z 10
f (x) dx = f (x) dx + f (x) dx
0 0 8
Z 10
17 = 12 + f (x) dx
8
Z 10
f (x) dx = 17 − 12 = 5
8
we get
π
Z π/2 sin 2
−x
I=
π
π
dx.
0 sin 2
− x + cos 2
−x
Note that
π
sin − θ = cos θ,
2
π
cos − θ = sin θ.
2
Z π/2
cos x
I= dx − − − − − (2)
0 cos x + sin x
CHAPTER 5. INTEGRAL CALCULUS 149
we have Z π/2
π
I= log tan −x dx
0 2
Z π/2
I= log(cot x) dx − − − − − (2)
0
Solution:
Put u = ax + b, du = a dx =⇒ du
a
= dx
Z
du 1Z n 1 un+1 1 (ax + b)n+1
∴I= un = u du = = +c
a a an+1 a n+1
1 R
Example 5.7.7. Evaluate ax+b dx
Solution:
Put u = ax + b, du = a dx =⇒ du
a
= dx
Z
1 du 1Z 1 1 1
∴I= = du = log u = log(ax + b) + c
u a a u a a
Example 5.7.8. Evaluate x(4 + x2 )10 dx
R
Solution:
Put u = 4 + x2 , du = 2x dx =⇒ du
2
= x dx
Z
10 du 1 Z 10 1 u11 u11
∴I= u = u du = = +c
2 2 2 11 22
(4 + x2 )11
= +c
22
R log x
Example 5.7.9. Evaluate x
dx
Solution:
Put u = log x, du = x1 dx
Z
u2 (log x)2
∴I= u du = +c= +c
2 2
R sec2 (log x)
Example 5.7.10. Evaluate x
dx
Solution:
Put u = log x, du = x1 dx
Z
∴I= sec2 u du = tan u + c = tan(log x) + c
CHAPTER 5. INTEGRAL CALCULUS 151
3
Example 5.7.11. Evaluate ex x2 dx
R
Solution:
3 3 3
u = ex , du = ex · 3x2 dx =⇒ du
3
= ex · x2 dx
Z
du 1Z 1 1 3
∴I= = du = u + c = ex + c
3 3 3 3
Example 5.7.12. Evaluate ecos x sin x dx
R
Solution:
u = ecos x , du = ecos x · (− sin x) dx = −ecos x sin x dx
Z Z
∴I= (−du) = − du = −u + c = −ecos x + c
Solution:
Put u = cos θ, du = − sin θ dθ
Z Z
u4 cos4 θ
∴I= u3 (−du) = − u3 du = − +c=− +c
4 4
cos x R
Example 5.7.14. Evaluate sin 2 x dx
Solution:
Put u = sin x, du = cos x dx
Z
du Z −2 u−2+1 u−1 1 1
I= = u du = + c = + c = − + c = − +c
u2 −2 + 1 −1 u sin x
sec x R 2
Example 5.7.15. Evaluate 5+4 tan x
dx
Solution:
Put u = 5 + 4 tan x, du = 0 + 4 sec2 x dx
du
= sec2 x dx
4
Z
1 du 1Z 1 1 1
I= = du = log u = log(5 + 4 tan x)
u 4 4 u 4 4
R sin(log x)
Example 5.7.16. Evaluate x
dx
Solution:
Put u = log x, du = x1 dx
Z
I= sin(u) du = − cos u + c = − cos(log x) + c
CHAPTER 5. INTEGRAL CALCULUS 152
R π/2
Example 5.7.17. Evaluate 0 cos x sin(sin x) dx
Solution:
Put u = sin x, du = cos x dx When x → 0 ⇒ u → 0 When x → π/2 ⇒
u→1
Z 1
∴I= sin u du = [− cos u]10 = (− cos 1) − (− cos 0) = − cos 1 + 1
0
Solution:
Put u = 1 + sin x, du = cos x dx
Z
u5 (1 + sin x)5
∴I= u4 du = +c= +c
5 5
Choosing the right functions for u and dv can simplify the integration
process.
Integration by parts comes from the product rule of differentiation:
d dv du
(uv) = u + v
dx dx dx
Rearranging and integrating both sides gives:
Z Z
u dv = uv − v du
Example 5.8.1. Z
xex dx,
you’d choose:
u =x ⇒ du = dx,
dv =ex dx ⇒ v = ex .
Then apply the formula:
Z Z
xex dx = xex − ex dx = xex − ex + C.
Formula Z Z
u dv = uv − v du
Example 5.8.2. Z
x sin x dx
Solution: Let u = x, dv = sin x dx
Z
du =dx, v= sin x dx = − cos x
Z Z
u dv = uv − v du
Z
du = dx, v= sin x dx = − cos x
Z
= x(− cos x) − (− cos x) dx
Z
= −x cos x + cos x dx
= −x cos x + sin x + c
Example 5.8.3. Z
tet dt
Solution: Let u = t, dv = et dt
Z
du = dt, v= et dt = et
Z Z
u dv = uv − v du
Z
= tet − et dt
= tet − et
CHAPTER 5. INTEGRAL CALCULUS 154
Solution:
Z 1 Z 2 Z 1 Z 2
x(x + y) dy dx = x2 + xy dy dx
0 0 0 0
Z 1" #y=2
2xy 2
= x y+ dx
0 2 y=0
Z 1h i
= (2x2 + 2x) − (0 + 0) dx
0
Z 1 Z 1
3x
= 2x2 + 2x dx = x2 + dx
0 0 2
2 2
" #
3
x 3x
= +
3 4 0
1 3 13
= + − (0 + 0) =
3 4 12
Example 5.9.2. Evaluate
Z 1Z 1
(x2 + y 2 ) dx dy
0 0
Solution:
Z 1" 3 #x=1
Z 1Z 1
x Z 1
1
2 2 2
(x + y ) dx dy = +y x dy = + y 2 dy
0 0 0 3 x=0 0 3
" #1
y y3 1 1 2
= + = + − (0 + 0) =
3 3 0
3 3 3
Solution:
Z bZ 1 Z b Z 1 Z b Z 1
2 2
xy(x − y) dx dy = y x(x − y) dx dy = y (x y − xy ) dx dy
a 0 a 0 a 0
" #1 !
3
Z b
x x2 Z b
y y2
= y y − y2 dy = y − dy
a 3 2 0 a 3 2
!
Z b 2 3
y y
= − dy
a 3 2
" #b ! !
b3 b4 b3 b 4 a3 a4
= − = − − −
9 8 a
9 8 9 8
2 3 b
b3 y 2 b y
= −
6 3 a
!
3 2 2 3
ba ba
= − − (0 − 0)
6 3
2 2
ab
= (b − a)
6
Example 5.9.4. Evaluate
Z 3Z 2
ex+y dy dx
0 0
Solution: Let
Z 3Z 2
I= ex+y dy dx
0 0
Z 3 Z 2 Z 3 Z 2
x+y x y
= e dy dx = e e dy dx
0 0 0 0
= [ex ]30 [ey ]20 = (e3 − 1)(e2 − 1)
Solution:
Z 1 Z 2 Z 1 Z 2
xy 2 dy dx = x y 2 dy dx
0 0 0 0
3 2
" #
Z 1
y Z 1
8 8Z 1
= x dx = x dx = x dx
0 3 0 0 3 3 0
" #1
8 x2 8 1 4
= = × =
3 2 0
3 2 3
Solution:
Z 1 Z 2 Z 1 Z 2
2 2
xy dy dx = x y dy dx
0 0 0 0
3 2
" #
Z 1
y Z 1
8
= x dx = x dx
0 3 0 0 3
" #1
8Z 1 8 x2 8 1 4
= x dx = = × =
3 0 3 2 0
3 2 3
where R is the domain bounded by x = 2a, x-axis and the curve x2 = 4ay.
[Anna, May 1996]
Solution:
x2
X-axis: y = 0, x = 2a, x2 = 4ay ⇒ y=
4a
CHAPTER 5. INTEGRAL CALCULUS 157
x y
0 0
2a a
Here, y limits vary from 0 to a.
√
For a given y, x varies from 2 ay to 2a.
Hence, the required area is
Z a Z 2a
√ xy dx dy
0 2 ay
Diagram:
x2 = 4ay
x = 2a
y=a
Q
P
x
O (2a, 0)
CHAPTER 5. INTEGRAL CALCULUS 158
x 0 1 2 −1 −2
y = x 0 1 2 −1 −2
Given: y = x2 (2)
x 0 1 2 −1 −2
y = x2 0 1 4 1 4
Therefore, the point of intersection of (1) and (2) is (0, 0) and (1, 1).
Divide the area into vertical strips of width δx.
Diagram:
y
y = x2
y=x
(1, 1)
P
Q
x
O(0, 0)
" #1
x2 x3 1 1
= − = − − (0 − 0)
2 3 0
2 3
3−2 1
= = square unit.
6 6
Solution:
The curve is symmetrical about the initial line. Draw any line OP through
the pole cutting the curve at P .
Along this line, θ is constant and r varies from 0 to a(1 + cos θ). Then θ
varies from 0 to π in the upper half. Hence, the required area is
Z π Z a(1+cos θ)
=2 r dr dθ
0 0
Z π " 2 #a(1+cos θ)
r
=2 dθ
0 2 0
Z πh i
= a2 (1 + cos θ)2 dθ
0
Z π
= a2 1 + cos2 θ + 2 cos θ dθ
0
!
2
Z π
1 + cos 2θ
=a 1+ + 2 cos θ dθ
0 2
2 Z π
a
= 3 + cos 2θ + 4 cos θ dθ
2 "0 #π
a2 sin 2θ
= 3θ + + 4 sin θ
2 2 0
2
a
= (3π + 0 + 0 − (0 + 0 + 0))
2
3
= a2 π square units.
2
CHAPTER 5. INTEGRAL CALCULUS 160
Diagram:
y
π
θ= 2
θ=0
θ=π x
O
Solution: Let Z aZ bZ c
I= xyz dz dy dx
0 0 0
Z a "Z b # Z
c
= x dx y dy z dz
0 0 0
" #" #" #
x2 a y2 b z2 c
=
2 0 2 0 2 0
! ! !
2 2
a b c2 (abc)2
= =
2 2 2 8
Example 5.13.2. Evaluate
Z aZ bZ c
ex+y+z dz dy dx
0 0 0
Solution: Let
Z aZ bZ c
I= ex+y+z dz dy dx
0 0 0
Z a "Z b # Z
c
x y
= e dx e dy ez dz
0 0 0
" #
a b c
= ex ey ez
0 0 0
= (e − e )(e − e )(ec − e0 )
a 0 b 0
δyR
y P δx
x x
O
Z a Z √a2 −x2 Z
√
a2 −x2 −y 2
V =8 dz dy dx
0 0 0
Z aZ √
a2 −x2
√
a2 −x2 −y 2
=8 [z]0 dy dx
0 0
Z a Z √a2 −x2 q
=8 a2 − x2 − y2 dy dx
0 0
Z a" 2 ! #√a2 −x2
a − x2 y yq 2
=8 sin−1 √ 2 + a − x2 − y 2 dx
0 2 a − x2 2 0
" #
Z a
a2 − x 2 π
=8 · dx
0 2 2
" #a
Z a
2 2 x3 2
= 2π (a − x ) dx = 2π a x −
0 3 0
" ! #
3
a 2 4
3
= 2π a − − (0 − 0) = 2π a3 = πa3 cubic units.
3 3 3
Here,
z varies from 0 to z = 4 − y
x varies from − 2 to 2
√ √
y varies from − 4 − x2 to 4 − x2
CHAPTER 5. INTEGRAL CALCULUS 164
Z 2 Z √4−x2 Z 4−y
V = √ dz dy dx
−2 − 4−x2 0
√
Z 2 Z 4−x2
= √ [z]4−y
0 dy dx
−2 − 4−x2
√
Z 2 Z 4−x2
= √ (4 − y) dy dx
−2 − 4−x2
Z 2 " #√4−x2
y2
= 4y − dx
−2 2 −√4−x2
Z 2 " √ 2
!
√ 2
!#
4 − x 4 − x
= 4 4 − x2 − − −4 4 − x2 − dx
−2 2 2
Z 2 h √ √ i
= 4 4 − x2 − 12 (4 − x2 ) + 4 4 − x2 + 12 (4 − x2 ) dx
−2
Z 2 √
= 8 4 − x2 dx
−2
Z 2 √
=8 4 − x2 dx
−2
Z 2 √
= 16 4 − x2 dx
0
x√
2
4 −1 x
= 16 sin + 4 − x2
2 2 2 0
2π
= 16 + 0 − (0 + 0) = 16π cubic units
2
Example 5.13.5. Find the volume of the tetrahedron bounded by the planes
x y z
x = 0, y = 0, z = 0, + + =1
a b c
Solution: Let ZZZ
V = dz dy dx (1)
V
Limits of x: 0 ≤ x ≤ a
Limits of y: 0 ≤ y ≤ b 1 − xa
CHAPTER 5. INTEGRAL CALCULUS 165
x y
Limits of z: 0 ≤ z ≤ c 1 − a
− b
Z a Z b(1− x ) Z c(1− x − y )
a a b
⇒V = dz dy dx
0 0 0
Z a Z b(1− x ) c(1− x − y )
a a b
= z dy dx
0 0 0
Z a Z b(1− x )
x y
a
= −c 1−dy dx
0 0 a b
b(1− x )
Z a a
x 1
2
=c 1− y− y dx
0 a 2b
0
Z a " 2 #
x x 1 x
=c 1− b 1− − b2 1 − dx
0 a a 2b a
Z a " 2 2 #
x x
= bc 1− − 21 1 − dx
0 a a
bc Z a x 2
= 1− dx
2 0 a
3 a
x
bc 1 − a
=
2 − a1 · 3
0
abc
3 a
=− 1 − xa
6 0
abc abc
=− [0 − 1] = cubic units
6 6
y = 0, x = 2, y=x
Step 3 – Solve:
Z 2 h i2
x2 4
= x dx = 2 0
= 2
=2
0
Final Answer:
Area = 2 sq. units
Bridge Construction Problem
A community water reservoir is de-
signed in the shape of a paraboloid
given by the equation z = 4 − x2 − y 2 ,
where the base lies on the xy-plane
(z ≥ 0). Calculate the total volume of
water the reservoir can hold by setting
up and evaluating a triple integral.
• Limits for r (radius): The projection of the reservoir onto the xy-
plane is a circle. We find its radius by setting z = 0 in the equation,
which gives x2 + y 2 = 4, or r2 = 4. Thus, the radius r extends from
the center to the edge, with limits from 0 to 2.
• Limits for θ (angle): Since the base is a full circle, the angle θ sweeps
from 0 to 2π.
Key Insight
The case studies demonstrate this multiple integrals by calculating the
area of a park for landscaping and the volume of a water reservoir
for capacity planning. Mastering integration is shown to be an essen-
tial skill for solving engineering problems involving physical space and
design.