Lecture Notes
Lecture Notes
OHI – MATH 3
BAS111
SS 2022 - 2023
Instructor and Textbooks
Instructor: Assoc. Prof. Dr. R. E. Abo elkhair
E- mail: elkhair33@yahoo.com, elkhair33@azhar.edu.eg
Textbooks:
Calculus, Stewart, 6e.
Calculus, Minton, 3e.
Advanced Engineering Mathematics, 8th edition, by E. Kreyszig, J.
Wiley & Sons, 1999.
Advanced Engineering Mathematics, by H.K. DASS, S. CHAND &
COMPANY PVT. LTD. (AN ISO 9001 : 2008 COMPANY)
Lecture notes (presentations).
1
Assoc. Prof. Dr. R. E. Abo elkhair
Course main objectives
Motivation
(1) Find the product of three positive numbers if their sum is 100.
(2) Describe the distance between a given point (x0, y0) and a
variable point (x, y) in xy- plane.
(3) Write down the expression of the volume of a box with side
lengths x, y and z.
(4) Express the distance between the origin and the plane
3x + 2y + 6z = 12.
Conclusion:
Functions of several variables appear quite frequently in many
engineering applications
Functions of several variables
Definition 1: A function of two real variables x and y is the rule
which assigns a unique real number f(x, y) to each point in some set
D in the xy - plane.
Definition 2: A function of three real variables x, y and z is the rule which assigns
a unique real number f(x, y,z) to each point in the set D in the 3 dimensional space.
x y0
We first draw the line x + y = 0 which will
divide the xy-plane into two parts,
one part on each side of the line.
On one part x + y > 0 and on the second
part x + y < 0.
We just take any point in any side to check
the sign of the expression x + y on this side
Example 2: Find and sketch the domain of the function
f ( x , y ) ln( 9 x 2 9 y 2 )
9 x 2 9 y 2 0 x 2 9 y 2 9
x2
y2 1
9
We first draw the ellipse x2/9 + y2 = 1
which will divide the xy-plane into two parts,
one part inside the ellipse and the other
part outside. On the inner part x2/9 + y2 = 1
may be positive or negative.
We just take any point in any part to check
the sign of the expression on this side
Example 3 For the following function, evaluate f(3, 2)
and find its domain.
Solution
(1) D = {(x, y) |x + y + 1 ≥ 0, x ≠ 1}
8
Example 4 Evaluate f(3, 2) and find the domain of the
function
9
Domain of functions of three variables
12
Partial derivatives
calculate
Solution
Higher order partial derivatives
Example Find the second partial derivatives of
f(x, y) = x3 + x2y3 – 2y2
calculate
Solution
Higher order partial derivatives
Example Find the second partial derivatives of
f(x, y) = x3 + x2y3 – 2y2
For instance,
It can be shown that fxyy = fyxy = fyyx if these functions are continuous.
Solution
ux = ex sin y uy = ex cos y
uxx = ex sin y uyy = –ex sin y
uxx + uyy = ex sin y – ex sin y = 0
Thus, u satisfies Laplace’s equation, and hence an
analytic function.
Example
xy
Find the four 2nd order partial derivatives of z e
= +x.
Solution
∂z ∂z xy
xy
= ye + 1 = xe
∂x ∂y
2
2
∂ z ∂ z 2 xy
2 xy
=y e 2
= x e
∂x 2 ∂y
∂2 z ∂2 z xy xy
xy
= xye + e xy = xye + e
∂y∂x ∂x∂y
Example
4
∂ u 2 x+ y2
Compute if u = z e .
∂z∂y∂x 2
Solution
∂u 2 x +y 2
=z e
∂x
∂ 2u 2 x +y 2
2
=z e
∂x
∂ 3u 2 x +y 2
2
= 2 yz e
∂y ∂x
∂ 4u x +y 2
2
= 4 yze
∂z ∂y ∂x
Theorem:
If the function z = f ( x, y )
and its partial derivatives are defined and continuous at any
point and in some neighborhood of it, then at this point
2 2
∂f ∂f
=
∂y ∂x ∂x ∂y
z = f (u ,v )
and let u and v be continuous functions of the independent
variables x, y :
u = φ ( x, y ), v = ψ ( x, y ).
then:
∂z ∂z ∂u ∂z ∂v
= +
∂x ∂u ∂x ∂v ∂x
∂z ∂z ∂u ∂z ∂v
= +
∂y ∂u ∂y ∂v ∂y
Example
Given z =2 3 y . Find ∂z
u + 2v , u =
xy , v = .
x ∂x
Solution
∂z ∂z ∂u ∂z ∂v y
= + 2
=2uy + 6v − 2
∂x ∂u ∂x ∂v ∂x x
3
y
= 2 xy 2 − 6 4
x
y
2u y 2
6v − 2
x
Example
2
Given z = ln(u + v), u = e
x+ y2
, v = x 2 . Find ∂z .
∂x
Solution
∂z ∂z ∂u ∂z ∂v 2u x+ y2 1
= = 2
+ e + 2 2x
∂x ∂u ∂x ∂v ∂x u +v u +v
2 x+ y2
= 2 (ue + x)
u +v
2u e x + y 2 1 2x
u2 + v u2 + v
Example If z = x2y + 3xy4, where x = sin 2t and y
= cos t, find dz/dt when t = 0.
Solution:
1 𝐹𝐹 𝑥𝑥, 𝑦𝑦 = 𝑦𝑦 4 + 3𝑦𝑦 − 4𝑥𝑥 3 − 5𝑥𝑥 − 1 = 0
𝑑𝑑𝑑𝑑 𝐹𝐹𝑥𝑥 −12 𝑥𝑥 2 − 5 12 𝑥𝑥 2 + 5
=− =− =
𝑑𝑑𝑑𝑑 𝐹𝐹𝑦𝑦 4 𝑦𝑦 3 + 3 4 𝑦𝑦 3 + 3
2 𝐹𝐹 𝑥𝑥, 𝑦𝑦 = 𝑦𝑦 3 − 3𝑥𝑥𝑥𝑥 − 5𝑥𝑥 2 𝑦𝑦 2 = 0
𝑑𝑑𝑑𝑑 = − 𝐹𝐹𝑥𝑥 = − −3𝑦𝑦 − 10𝑥𝑥 𝑦𝑦 2 = 3𝑦𝑦 + 10𝑥𝑥 𝑦𝑦 2
𝑑𝑑𝑑𝑑 𝐹𝐹𝑦𝑦 3 𝑦𝑦 2 − 3𝑥𝑥 − 10 𝑥𝑥 2 𝑦𝑦 3 𝑦𝑦2 − 3𝑥𝑥 − 10 𝑥𝑥 2 𝑦𝑦
𝜕𝜕𝜕𝜕 𝜕𝜕𝜕𝜕
Ex.2 Find and if 𝑧𝑧 = 𝑓𝑓(𝑥𝑥, 𝑦𝑦) is determined implicitly by,
𝜕𝜕𝜕𝜕 𝜕𝜕𝑦𝑦
𝑥𝑥 2 𝑧𝑧 2 + 𝑥𝑥𝑦𝑦 2 − 𝑧𝑧 3 + 4𝑦𝑦𝑦𝑦 − 5 = 0
Solution:
𝜕𝜕𝜕𝜕 𝐹𝐹𝑥𝑥 2𝑥𝑥𝑧𝑧 2 + 𝑦𝑦 2
=− =−
𝜕𝜕𝜕𝜕 𝐹𝐹𝑧𝑧 2 𝑥𝑥 2 𝑧𝑧 − 3𝑧𝑧 2 + 4𝑦𝑦
𝜕𝜕𝜕𝜕 𝐹𝐹𝑦𝑦 2𝑥𝑥𝑥𝑥 + 4𝑧𝑧
=− =−
𝜕𝜕𝜕𝜕 𝐹𝐹𝑧𝑧 2 𝑥𝑥 2 𝑧𝑧 − 3𝑧𝑧 2 + 4𝑦𝑦
Exercise 1
Applications on
Partial
Derivatives
LINEARIZATION & LINEAR
APPROXIMATION
The function
L(x,y)= f(x0, y0) + fx(x0, y0)(x – x0) + fy(x0, y0)(y – y0)
The approximation
f(x, y) ≈ L(x,y)
Solution
fx=xyexy+exy, fx(x0,y0)= fx(1,0) = 1, fy=x2exy, fy(x0,y0)= fy(1,0) = 1
Hence, the linearization of f(x, y) near the point (1, 0)is given by
L(x,y)= f(x0, y0) + fx(x0, y0)(x – x0) + fy(x0, y0)(y – y0)
= f(1, 0) + fx(1, 0)(x – x0) + fy(1, 0)(y – y0)
= 1 + 1(x – 1)+1(y – 0) = x + y
Therefore,
the approximate value of f(1.1, – 0.1) = L(1.1, – 0.1) = 1.1 – 0.1 =1.
Notice that the exact value of f(1.1, – 0.1) = 1.1e (1.1)(– 0.1) =
0.98542.
Differential
z = f (x , y )
f ( x, y ) ≈ P2 ( x, y ) = f ( a, b ) + h f x ( a, b ) + k f y ( a, b )
1 2
+ h f xx ( a, b ) + 2 hk f xy ( a, b ) + k 2 f yy ( a, b ) + ...
2!
x = a + h and y = b + k
Example
Find the second order approximation to the function:
f (x , y ) = e 2x −y
near the point ( 0,0 ) .
Solution:
f (x , y ) =
e 2 x − y ⇒ f ( 0,0 ) =
1 f y (x , y ) =
−e 2 x − y ⇒ f y ( 0,0 ) =
−1
f x (x , y ) =
2e 2 x − y ⇒ f x ( 0,0 ) =
2 f yy ( x , y ) =
e 2 x − y ⇒ f yy ( 0,0 ) =
1
f xx ( x , y ) =
4e 2 x − y ⇒ f xx ( 0,0 ) =
4 f xy ( x , y ) =
−2e 2 x − y ⇒ f xy ( 0,0 ) =
−2
e 2 x − y =1 + 2 ( x − 0 ) − ( y − 0 )
1
4 ( x − 0 ) −4 ( x − 0 )( y − 0 ) + ( y − 0 )
2 2
+
2!
GRADIENT VECTOR FIELD ON R2 and R3
(2)
−z 2 −z 2 −z
∇f ( x, y, z ) = 2 xye i + x e j − x ye k
Example: Find the tangent plane and the normal line to the
surface of the function z = 9 − x2 − y2 at the point P0 = (1, 2,4).
Solution:
We first consider the surface of the function
z = f(x, y) = 9 − x2 − y2 as a level surface of the function
g(x, y, z) = x2 + y2 + z − 9 = 0.
(1) Find ∇g(x, y, z) = 〈 gx , gy , gz 〉 = 〈2x , 2y , 1〉
(2) Substitute to get ∇g|(1, 2, 4) = 〈2 , 4 , 1〉.
Hence, the equation of the tangent plane is
2(x − 1) + 4(y − 2) + 1(z − 4) = 0
The parametric equations of the normal line are
x = 1 + 2t , y = 2 + 4t, z = 4 + t
MAXIMUM & MINIMUM VALUES
Look at the hills and valleys in the graph of f shown here.
There are two points (a, b) where f has a local maximum—that is,
where f(a, b) is larger than nearby values of f(x, y). The larger of
these two values is the absolute maximum.
Likewise, f has two local minima—where f(a, b) is smaller than
nearby values. The smaller of these two values is the
absolute minimum.
LOCAL EXTREMA OF A FUNCTION OF TWO VARIABLES
HOW TO FIND LOCAL EXTREMA OF f(x,y)
Saddle
point
THE SECOND DERIVATIVE TEST FOR LOCAL
EXTREMA OF A FUNCTION OF TWO VARIABLES
D >0 D <0 D =0
Local Local
maximum minimum
Example 1
Test the following function for maximum and minimum:
z = x3 + y 3 − 3 xy
Solution:
2
f x 3x − 3 y
=
2
3x − 3 y =
0 y = x2
f y 3 y2 − 3x
= 3 y2 − 3x =
0 y2 − x =0
x4 − x =0
= , x 1
x 0=
f xx = 6 x
f yy = 6 y
f xy = −3
( )
2
=D f xx f yy − f xy
= 36xy − 9
Example 3 Find the shortest distance from
the point (1, 0, –2) to the plane x + 2y + z = 4.
Solution
The distance from any point (x, y, z) to the point (1, 0, –2) is:
2 2 2
d= ( x − 1) + y + ( z + 2)
However, if (x, y, z) lies on the plane x + 2y + z = 4, then
z = 4 – x – 2y. Thus, we have:
2 2 2
d= ( x − 1) + y + (6 − x − 2 y )
We can minimize d by minimizing the simpler expression
2
d = f ( x, y )
2 2 2
= ( x − 1) + y + (6 − x − 2 y )
By solving the equations
f x = 2( x − 1) − 2(6 − x − 2 y ) = 4 x + 4 y − 14 = 0
f y =2 y − 4(6 − x − 2 y ) =4 x + 10 y − 24 =0
we find that the only critical point is ( 11 , 5 ) .
6 3
Solution
Let the dimensions of the box be x, y , and z.
Then the volume of the box is
V = xyz = 500. This implies that z = 500/xy (1)
The total surface area of that box is
S = xy + 2yz + 2xz
Substituting from (1) we get
S(x,y) = xy + 1000/x + 1000/y
By solving the two equations
1000 1000
S x = y − 2 = 0, S y = x − 2 = 0
x y
we find that there are two critical points (0, 0) and (10,
10).
The point (0, 0) has no practical significance ( there will
be no box). Hence, the only significant critical point is
(10, 10). Since at that point Sxx = 2, Sxy = 1, and Syy = 2,
we have: D(x, y) = Sxx Syy – (Sxy)2 = 3 > 0 and Sxx > 0
So, by the Second Derivatives Test, S has a local
minimum at (10, 10) and hence the required dimensions
are x =10, y = 10, and z = 5.
Exercise 2
Differential equations concepts and its usage
to the solution of engineering problems.
1. BASIC CONCEPTS & CLASSIFYING DE’S
2. SOLUTION OF FIRST ORDER ODE
3. METHODS OF SOLUTION OF FIRST
ORDER ODE
(1) Separable Differential Equations:
(2) Homogeneous DE’s
(3) Exact Differential Equations:
(4) Linear DE’s:
(5) DE’s Reducible to Linear (Bernoulli DE):
4. ENGINEERING APPLICATIONS OF FIRST
ORDER DIFFERENTIAL EQUATIONS
What is the Differential Equation?
Differential equation is an equation that involves ordinary or
partial derivatives. When the DE involves ordinary derivatives
it is called ordinary differential equation (ODE) for example:
dy
x 2 y sin x y cos x
dx
d3y dy
7 3 2y 4 y ln x
dx dx
But, when the DE involves partial derivatives it is called partial
differential equation (PDE) for example:
u u
x2 y 2
x y
The Solution of Differential Equation
2 Solution
d y y 2sin x
2
y0
(explicit solutions)
dx
dy
y Solution y
x y
dx
xe x ln x e x 50 (Implicit solutions)
Classifications of Differential Equations
(i) Types of DE’s:
We have two types of DEs ordinary differential equations
(ODE’s) and partial differential equations (PDE’s) according
to the number of independent variables.
d2y (ODE’s)
2
y0
dx
(ODE’s)
( x sin y ) dx ( x y cos x ) dy 0
3u u (PDE’s)
x 2
y 2
x 3 y
(ii) Order of DE’s:
The order of the DE equal to the highest derivative in the
given DE for example,
d2y (order = 2)
y0
dx 2
3u u 2 2
x y (order = 3)
x3 y
5
d y2
2 y 0 (order = 2)
dx
(iii) Degree of DE’s:
The degree of the DE is the highest exponent of the highest derivativ
appearing in the DE for example,
5
d y
2
2 y 0 (degree = 5)
dx
3u u
x 2
y 2
(degree = 1)
x 3 y
2 5
d y d y
3 2
7
3 2 y y (degree = 2)
dx dx
(iv) Linearity of DE’s:
The nth order linear ODE takes the form:
dny d n 1 y dy
an an 1 ... a1 a0 y f ( x)
dy n
dx n 1 dx
2 5
d y d y
3 2
3 2 y 7
y Nonlinear
dx dx
y xy x 2 y e y Nonlinear
Note
dny d n 1 y dy
In the DE: an an 1 ... a1 a0 y f ( x)
dy n
dx n 1 dx
f x 0 DE said to be homogeneous.
f x 0 DE said to be non-homogeneous.
Methods of Solution of First Order ODE
dy g ( x )
dy
dx
f ( x, y )
dx h( y )
h( y) dy g ( x)dx c
M ( x, y )dx N ( x, y )dy 0 a x b y dx c( x) d y dy 0
Example
e x
dx e1 y
dy c e x e1 y c
x 0 y 1 1 1 c c 2
e x e1 y 2 0
Example
Solve the DE x 2
y 2x 2
dy
dx
xy 2 y x 2
Solution
x y 2x
2 2 dy
dx
xy 2 y x 2
x 2 ( y 2)dy y ( x 2) ( x 2)dx
x 2 ( y 2)dy ( x 2)( y 1)dx
y2 x2 1 1 2
y 1
dy 2 dx 1 ( y 1)dy x x 2 dx c
x
2
y ln( y 1) ln x c
x
DE’s Reducible to Separable
dy
f (ax by c)
dx
Put u ax by c
dy y
This type takes the form: f
dx x
y
u
x
y y
dy dy y
Solve the DE: x y x ex e x
dx dx x
Solution
y
let u y ux
x du
differentiate w.r.t. x, we get: x eu
dx
dy du 1
e du x dx c
u
u x
dx dx
u
u x
du
u eu e ln x c
dx
Example
y
1
Solve the DE: dy x y dy
x
dx x y dx 1 y
x
Solution
y du 1 u
let u y ux x u
x dx 1 u
differentiate w.r.t. x, we get:
du 1 u u u 2
x
dy du dx 1 u
u x
1 u 1
1 u2 du x dx c
dx dx
du 1 u
u x
tan u ln 1 u 2 ln x c
1
dx 1 u 1
2
(3) Exact Differential Equations:
This type takes the form: M ( x, y ) dx N ( x, y )dy 0
Such that: M N
y x
Solve the DE 2 y 2 x 3 dx 2 yx 2 7 dy 0
Solution
M N
2
M 2y x 3 2
N 2 yx 7 4 yx
y x
𝒇 𝒙, 𝒚 𝟐𝒚𝟐 𝒙 𝟑 𝒅𝒙 𝟕 𝒅𝒚 𝒄
f ( x, y ) y x 3 x 7 y c
2 2
Example
Solve the DE y 3 y 2 sin x x dx 3xy 2 2 y cos x dy 0
Solution
M 2 N
3 y 2 y sin x
y x
𝒇 𝒙, 𝒚 𝟑𝒙𝒚𝟐 𝟐𝒚 𝒄𝒐𝒔 𝒙 𝒅𝒚 𝒙 𝒅𝒙 𝒄
1 2
f ( x , y ) xy y cos x x c
3 2
2
DE’s Reducible to Exact:
This type takes the form: M ( x, y ) dx N ( x, y )dy 0
Such that: M N
y x
M ( x, y )dx N ( x, y )dy 0
𝟏 𝝏𝑵 𝝏𝑴 𝑨 𝒙 𝒅𝒙
𝑨 𝒙 𝝁 𝒙 𝒆
𝑵 𝝏𝒙 𝝏𝒚
Case (II):
𝟏 𝝏𝑴 𝝏𝑵 𝝁 𝒚 𝒆 𝑩 𝒚 𝒅𝒚
𝑩 𝒚
𝑴 𝝏𝒚 𝝏𝒙
Example
Solve the DE
y 2 xy y dx x 2 3xy 2x dy 0
Solution
M y xy y
2
N x 3 xy 2 x
2
M N
2y x 1 2x 3y 2
y x
1 M N x y 1 1
B( y )
M y x y x y 1 y
1
dy
( y ) e B ( y ) dy e y
eln y y
y 2 xy y dx x 2 3 xy 2 x dy 0
y 3 xy 2 y 2 dx yx 2 3 xy 2 2 xy dy 0
M N
𝒇 𝒙, 𝒚 𝒚𝟑 𝒙𝒚𝟐 𝒚𝟐 𝒅𝒙 𝟎 𝒅𝒚 𝒄
1 2 2
f ( x, y ) xy x y xy 2 c
3
2
Example
Solve the DE
cos2 x sin x dy y cos3 x 1 dx 0
Solution
M y cos x 1
3
N cos x sin x 2
M N
cos3 x cos3 x 2cos x sin 2 x
y x
2
sin x 1
2 dx ln 1
2 ln cos x
( x) e cos x e e cos x
sec 2 x
cos 2 x
cos 2 x sin x dy y cos3 x 1 dx 0
sin x dy y
cos x sec 2
x dx 0
𝒇 𝒙, 𝒚 𝐬𝐢𝐧 𝒙 𝒅𝒚 𝐬𝐞𝐜 𝟐 𝒙 𝒅𝒙 𝒄
f ( x, y ) y sin x tan x c
(4) Linear DE’s:
The general first order linear DE takes the form:
dy
p( x) y q( x)
dx
Solution steps:
p ( x ) dx
( x) e
y ( x)
1
( x)
( x) q( x) dx c
Example
dy
Solve the DE cos x y sin x 1
dx
Solution
dy sin x 1
y
dx cos x cos x
sin x 1
p ( x) q( x)
cos x cos x
sin x 1
dx ln 1
ln cos x
( x) e cos x e e cos x sec x
cos x
1 1
y ( x) sec x dx c y sec x tan x c
sec x cos x
(5) DE’s Reducible to Linear (Bernoulli DE):
The general form of Bernoulli DE is:
dy
p( x) y q( x) y n
dx
u y1 n
du
(1 n) p ( x) u (1 n)q ( x)
dx
Example dy
Solve the DE x 4y x 2 y
dx
Solution
1
dy 4
y x y2 n 1/ 2
dx x q x
p x
1 du
le t u y 2 (1 n) p ( x) u (1 n)q ( x)
dx
du 2 1 1 1
u x u(x) x 2 x dx c
2
dx x 2 x 2
2
2 1
dx ln 1 1
( x) e x e2ln x
e x u ( x) x ln x c
2
x2 2
Main
objectives
Tarek Emam2012 ٣٤
How to find the equation of the Orthogonal trajectories?
dI dI dI
L RI E ( t ) 0 . 1 50 I 30 500 I 300
dt dt dt
( t ) e 500 dt e 500 t I ( t ) e 500 t [ 300 e 500 t dt c ]
3
I ( t ) ce 500 t
5
3 3 3 3 500 t
I ( 0 ) 0 0 c c I (t ) e
5 5 5 5
3 3 3
As t , I lim ( e 500 t ) . Try to solve this
t 5 5 5 problem if
E(t) = 3sin2t
3. Newton’s law of cooling
1 13
T (3) 200 200 70 230e3k e3k 13
23
k ln 23 0.19018
3
T (t ) 70 230e 0.19018t
It is clear that the temperature reaches the room temperature when t .
5. Terminal velocity problem
Let v(t) is the velocity of a falling object under the influence of gravity
through a medium such as water, oil, or air, which retards the downward
motion. Laboratory experiments suggests that the retarding force is
proportional to the square of the velocity of the object.
Hence, by Newton’s law of motion we have
dv
ma mg v 2 m mg v 2
dt
This is a separable DE which can be solved to determine the velocity of
the object at any time t. If we assume that the initial velocity v(0) = 0,
then the solution of the given initial value problem is given by
𝑚𝑔 𝛼𝑔
𝑣 𝑡 tanh 𝑡
𝛼 𝑚
Fourier Series
1
Main
objectives
2
Definition
A function f(x) is said to be periodic with period p > 0, if f(x) is
defined for all real x, and f(x + p) = f(x) for all x, where p is the
smallest number satisfying this property.
Exapmles:
(1) The functions sin x and cos x are periodic with period 2, since
sin( x + 2) = sin x and cos( x + 2) = cos x
(2) sin nx and cos nx are also periodic with period 2/n.
(3) We shall consider f(x) = 1 as periodic with any period.
(4) a0 + a1cos x + b1sin x + a2cos 2x + b2sin 2x is periodic with
period 2.
3
Fourier Series for Continuous Periodic Functions with period 2L
5
The computation and study of Fourier series is
known as harmonic analysis and is extremely
useful as a way to break up an arbitrary periodic
function into a set of simple terms that can be
plugged in, solved individually, and then
recombined to obtain the solution to the original
problem or an approximation to it to whatever
accuracy is desired or practical.
6
f(x) Periodic Function a0
2
=
x
a1 cos x b1 sin x
L L
+ +
2 2
a2 cos x b2 sin x
L L
+ + + …
7
8
2L 2 L
1
sin nx
sin n 0, n 0,1,2,....
cos n (1) , n 0,1,2,....
n
9
1/2
10
(a) (b)
2
sin x
2 2
sin x sin 3 x
3
(c)
(d)
2 2 2 2 2 2 2
sin x sin 3 x sin 5 x sin x sin 3 x sin 5 x sin 7 x
3 5 3 5 7
(e) (f)
1 2 2 2
2 2 2 2 2 sin x sin 3 x sin 23 x
sin x sin 3x sin 5 x sin 7 x sin 9 x 2 3 23
3 5 7 9 11
Then prove that
1 1 1 2
1 2 2
k 1 ( 2k 1)
2
3 5 8
12
Solution =1
2L 2 L 1
13
14
The previous Fourier series represents the function |x|
for 1 x 1, i.e.:
1 4
| x | cos[(2k 1)x]
2 k 1 (2k 1)
2 2
Substituting x = 0, we get: 0 1 4
2 k 1 (2k 1)2 2
Thus, we get the formula:
1 1 1 2
k 1 ( 2k 1)
2
1 2 2
3 5 8
15
Sometimes we use the
Example 3 variable t instead of x
Solution
The function is described by the following graph
16
Solution
The period 2 L 2 L 1
t 2 1
1 1 1 11
a0 f (t )dt tdt 0
L 1 1 2 1 2
17
t cos nt 1 cos nt
1
11 1
bn f (t ) sin ntdt t sin ntdt dt
L 1 1 n 1 1 n
cos n [ cos( n )] sin nt
1
2 2
n n 1
2 cos n sin n sin( n ) 2 cos n 2(1) n 2(1) n 1
n n2 2
n n n
a0
Hence, f (t ) ( an cos nt bn sin nt )
2 n 1
2( 1) n 1
sin nt
n 1 n
2 2 2
sin t sin 2t sin 3t
2 3
18
Example 4
2 t , 0 t 2
Sketch the graph of the function v(t )
0 , 2t 4
v(t 4) v(t ), 0 t 12. Then compute its Fourier series.
Given
Solution
The function is described by the following graph
v (t)
t
0 2 4 6 8 10 12
19
2L 4 L 2
2 2
1 2 14 1 2 4
12 1 t
a0 v (t ) dt v (t ) dt ( 2 t ) dt
0 dt ( 2 t ) dt 2t 1
L 2 20 2 0 2 20 2 2 0
14 12 4
an v(t ) cos ntdt (2 t ) cos ntdt 0dt ,
20 20 2 L
1 (2 t ) sin nt 1 2 sin nt
2
dt
2 n 0 2 0 n
1 cos nt 1 cos 2n 2(1 cos n ) 2[1 (1) n ]
2
0 2 2
2 n 0 2n
2 2
n2 2
n 2 2
20
14 12 4
bn v(t ) sin ntdt (2 t ) sin ntdt 0dt
20 20 2
Definitions
Let f(x) be a function defined for all real x:
(1) f is an even function if for all x, f(x) = f(x), i.e. the graph of f is
symmetric about the y-axis.
Examples: 1, x2, cosx, 5x6 2sin2x are all even functions.
(2) f is an odd function if for all x, f(x) = f(x), i.e. the graph of f is
symmetric about the origin.
Examples: x, x3, sinx, 5x7 2sin3x are all odd functions.
L L
It is clear that if f(x) is even then f ( x)dx 2 f ( x)dx
L 0
L
And if f(x) is odd then f ( x)dx 0
L
22
Fourier Series for even periodic functions
2L n
bn f ( x) sin xdx
L0 L
24
Example: Find the Fourier series for the saw tooth function
defined by f(x) = x for < x , and f(x + 2) = f(x) for all x. For
which values of x is f(x) equal to the sum of its Fourier series?
2 1 1
(1)
n 1
n 1
n
sin(nx) 2 sin x sin 2 x sin 3 x
2 3
25
Half Range Fourier Series Expansion
26
Example: Find the Fourier cosine series for the function:
1 if 0 x 1
f ( x)
0 if 1 x 2
28
Thank you
29
NUMERICAL
TECHNIQUES
1. Solving Non-Linear equations
We wish to find a root to the equation f(x)=0
in the interval [a,b]
f (b) 0
a b
𝒇 𝒙𝒊 − 𝟎
The slope 𝒎 = 𝒇′ 𝒙𝒊 = Then 𝒙𝒊+𝟏 = 𝒙𝒊 −
𝒇 𝒙𝒊
𝒙𝒊 − 𝒙𝒊+𝟏 𝒇′ 𝒙𝒊
Example 4
f ( x, y, z )dv
V
Important properties of the Triple integral:
a f x, y , z dv a f x , y , z dv ,
V V
f x, y , z dv
V
b 2 x 2 x , y
f x, y , z dv f x , y , z dz dA
V b 1 x 1 x , y
Example
Evaluate the iterated integral x y dv
V
over the region V bounded by the planes:
x 0 , y 0 , z 0 , x y z 1.
Solution:
1 1 x 1 x y
x y dv x y dz dy dx
V 0 0 0
1 1 x z 1 x y
x y z dy dx
0 0 z 0
1 1 x
x y 1 x y dy dx
0 0
Remark:
If f ( x , y , z ) 1 , then the volume of the solid V is
V dv
V
If ( x , y , z ) , is density, then the mass of the solid V
m ( x , y , z )dv
V
The coordinates of the center of the solid V are given by:
1 1
xc x ( x , y , z )dv , yc y ( x , y , z )dv ,
m m
V V
1
z c z ( x , y , z )dv .
m
V
Example
Find the volume and the coordinates of the center of gravity of
the region bounded by the parabolic cylinder:
z 4x 2
and x 0 , y 0 , y 6 , z 0 .
Assuming the density to be constant k.
Solution:
x 2 y 6 z 4 x2 x 2 y 6
z 4 x2
V dz dy dx z z 0
dy dx
x 0 y 0 z 0 x 0 y 0
x 2 y 6 x2
4 x 2 dy dx 4 x2 y 0
y y 6
dx
x 0 y 0 x 0
x2
2
1 3
6 4 x2 dx 6 4 x x 32
3 0
x 0
The mass of solid is:
m x , y , z dx dy dz k dx dy dz
V V
k dx dy dz kV 32k
V
1 k
zc
m z dz dy dx 32k z dz dy dx
V V
2 6 4 x2
1 8
zdzdydx
32 5
0 0 0
INTRODUCTION
Green’s Theorem gives the relationship between a line
integral around a simple closed curve C and a double
integral over the plane region D bounded by C. We
assume that D consists of all points inside C as well as
all points on C.
Notations We shall mean by the positive orientation of a simple
closed curve C the counterclockwise traversal of C.
Thus, if C is given by the vector function r(t), a ≤ t ≤ b, then the
region D is always on the
left as the point r(t) traverses C.
Theorem Let C be a positively oriented, “piecewise-
smooth” simple closed curve in the plane and let D
be the region bounded by C. If P and Q have
continuous partial derivatives on an open region that
contains D, then
Q P
C P dx Q dy D x y dA
Double integral
Line integral
Example 1 Use Green’s theorem to evaluate
where C is the triangular curve consisting of
C
x 4 dx xy dy
the line segments from (0, 0) to (1, 0), from (1, 0) to (0, 1), and from (0, 1) to (0,
0).
Q P
C x dx xy dy D x y dA
4
1 1 x
( y 0) dy dx
0 0
1
[ 12 y 2 ] yy 10 x dx
0
1
1
2 0
(1 x) 2 dx
Can you verify by evaluating the
3 1
(1 x)
1
6
1
6 corresponding line integral?
0
Example 2 Evaluate ( 𝐶ׯ3𝑦 − 𝑒 sin 𝑥 )𝑑𝑥 + 7𝑥 + 𝑦 4 + 1 𝑑𝑦
where C is the circle x2 + y2 = 9.
a f x, y dA a f x , y dA
R
f x, y g x, y dA f x, y dA g x , y dA
R R R
f x, y dx dy f x, y dx dy f x , y dx dy
R R1 R2
Example
2 3
ydxdy
Evaluate the iterated integral: 2
x
1 0
y 2
2 3
3 2
Solution:
ydxdy x ydx dy
2
x
1 0 y 1 0
3
2
x 3 2
y dy 9 ydy
1 3 0 1
2
y 2
27
9
2 1 2
Evaluating Double Integrals over General Regions
b g 2 x d h2 y
f ( x , y ) dA
f x , y dy dx
f ( x , y ) dA f x , y dx dy
a g 1x D c h1 y
D
Example
Evaluate D
( x 2 y )dA
D : y 2 x 2 and y 1 x 2 .
Solution:
1 1 x 2
D
( x 2 y )dA
x 1 y 2 x 2
( x 2 y )dydx
1 1 x 2
xy y 2 dx
1 2 x2
1
32
(1 x 2x 2 x 3 3x 4 )dx
1
15
Example
2 1
e
y 2
Evaluate dy dx
0 x /2
Solution:
D : y x / 2, y 1, x 2, x 0. y
y 1
2 1 1 2y
2
y y 2
e dy dx e dx dy
y x /2
0 x /2 0 0
x
2 x2 y
1
x e y x 2
dy
x 0
0
1 1
2 y e y 2 dy e y 2 e1 1 1 1
0 e
0
The Double Integral in Polar Coordinate:
x r cos y r sin
x y r
2 2 dA rdrd
Example
Evaluate D
(3x 4 y 2 )dA in the upper half-plane
bounded by the circles D : x 2 y 2 1 and x 2 y 2 4.
Solution:
2
1
0
15 15
(7cos 15sin )d (7cos (1 cos2 ))d
2
0 0
2 2
Applications of Double Integrals:
(1) Calculating the area of a plane region:
A dA
D
(2) Calculating the Volumes:
V f ( x, y )dA .
D
Example
Calculate the area of a region bounded the curves:
y 2 x 2, y x .
Solution:
1 2 x2 1
2 x2
A dA dy dx y x
dx
D 2 x 2
1
2 1
3
x x
2 x x dx 2 x
2
3 2
2 2
1 1 8 4 27
2 4
3 2 3 2 6
Example
Calculate the volume of a solid bounded by the surfaces:
x 0, y 0, x y z 1, z 0 .
Solution:
V f ( x, y ) dA
D
1 x y dA
D
1 1 x
1 x y dy dx
0 0
1 x
1
y2 1
1 x
2
1 x y dx 1 x 1 x dx
2 2
0 0 0
1
1
1 x 2 1 x
3
1
dx
2 6 6
0 0
Example
Find the volume of the solid bounded by the paraboloid:
z 1 x 2 y 2, z 0 .
Solution:
V f ( x, y ) dA (1 x 2 y 2 )dA
D D
2 1 2 1
2 3
(1 r ) rdrd d ( r r )dr
0 0 0 0
1
r r
2 4
2
2 4 0 2