Introduction to Differential Equations
Introduction to Differential Equations
Differential Equations:
Differential Equations
A differential equation is an equation that involves one or more derivatives, or
differentials. Differential equations are classified by:
Ex1:
dy
= 5x + 3 1st order-1st degree
dx
Ex2:
2 5
æ d3y ö æ d2y ö
çç 3 ÷÷ + çç ÷÷ 3rd order-2nd degree
è dx ø è dx ø
Ex3:
d3y d2y
4 + sin x + 5 xy = 0 3rd order-1st degree
dx 3 dx 2
Solution
The solution of the differential equation in the unknown function y and the independent
variable x is a function y(x) that satisfies the differential equation.
-1-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Note:
The solution in example above is called general solution since it's contain an arbitrary
constant c1 and c2, i.e. the general solution of differential equation is the set of all solutions,
and the particular solution is any one of these solutions.
Exercise:
1. Show that y=3e2x-e-2x is a solution to y''-4y=0
2. Determine whether y(x)= 2e-x+xe-x is a solution of y''+2y'+y=0
3. Determine whether y= x2-1 is a solution of (y')4+y2=-1
1- Variable Separable:
A first order [Link]. can be solved by integration if it is possible to collect all y terms
with dy and all x terms with dx, that is, if it is possible to write the [Link]. in the form
f ( x)dx + g ( y )dy = 0
then the general solution is:
Ex.1:
dy
Solve = ex+ y
dx
Sol.:
dy
= ex × e y
dx
dy
y
= e x dx
e
ò e dy = ò e ×dx
-y x
- ò e - y × (- dy ) = ò e x dx Þ - e- y = e x + c
Ex.2:
dy
Solve (1 + x) = x( y 2 + 1)
dx
Sol.:
dy x
ò (y 2
+ 1)
=ò
x +1
dx
-2-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
1
tan -1 y = ò dx - ò dx
x +1
tan -1 y = x - ln x + 1 + c
dy
Ex.3: Solve = ( y - x) 2 L(1)
dx
dy du dy du
Sol.: put y-x =u, -1 = Þ = +1 ….. (2)
dx dx dx dx
du du
dx
+ 1 = u2 Þ òu 2
-1 ò
= dx
é 1/ 2 - 1/ 2 ù
\ò ê + du = ò dx
ë u - 1 u + 1 úû
1
[ln (u - 1) - ln (u + 1)] = x + c
2
1 u -1
ln = x+c
2 u +1
u - 1 2x+c
=e
u +1
dy
3. sin x +cosh 2y=0 ans: sinh 2y-2cosx=c
dx
x2 + 1 x2
y
4. xe dy+ dx = 0 ans: ey(y-1)+ +ln |x|=c
y 2
3 1
dy 2 2
5. 2 xy =1 ans: y = x2 + c
dx 3
2- Homogeneous:
Some times a [Link]. which variables can't be separated can be transformed by a change of
variables into an equation which variables can be separated. This is the case with any equation
that can be put into form:
dy y
= f ( ) …(1)
dx x
Such an equation is called homogenous.
y dy du
Put =u Þ y = ux , = u + x× and (1) becomes
x dx dx
du
x× + u = f (u )
dx
-3-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Ex.1:
dy x 2 + y 2
Solve =
dx xy
Sol.:
y2
1+
dy x2 y dy du
= Þ homo. Put =u Þ = x× +u
dx y x dx dx
x
du 1 + u2 du 1 + u 2 - u 2
x× +u = Þ x× =
dx u dx u
du 1 dx
x× =
dx u
, ò u × du = ò x
u2 y2
= ln x + c Þ = ln x + c
2 2x 2
dy 2 y y dy du
Sol.: xdy = 2 ydx Þ = put =u Þ = x× +u
dx x x dx dx
du x x2
x× + u = 2u ln | x | - ln | u |= c Þ =cÞ =c
dx u y
Exercise: Show that the following differential equations are homogenous and solve.
1. (x2+y2)dx+xy dy=0 ans: x2(x2+2y2)=c
x
2. x2dy+(y2-xy)dx=0 ans: y =
ln x - c
y -y
3. ( xe x + y )dx - xdy = 0 ans: ln | x | +e x
=c
3 - Linear
dy
The equation of the form + p × y = Q where P and Q are functions of only x or
dx
dy
constant is called linear in y and .
dx
Find integrating factor ( I . f .) = e ò
Pdx
, then the general solution is
y × ( I . f .) = ò ( I . f .) Q . dx
-4-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
dy y
Ex.1: Solve - = x × ex
dx x
1
P ( x) = - , Q( x) = x.e x
x
-1
ò dx 1
( I . f .) = e x = e - ln x =
x
Solution is
1 1
y × = ò × xe x × dx
x x
y
= ex + c
x
Ex.2:
dy
Solve + x. y = x
dx
P=x, Q=x
x2
( I . f .) = e ò = e 2
xdx
Solution is
x2 x2
y×e 2
= òe 2
× x × dx
x2 x2 - x2
y×e 2
=e 2
+ c Þ y = 1 + ce 2
is the solution
Exercise:
dy
1. + 2 y = e-x ans: y=e-x+ce-2x
dx
dy sin x
2. x + 3y = 2 ans: x3y=c-cosx
dx x
y c
3. xdy + ydx = ydy ans: x = +
2 y
4- Exact
¶M ¶N
The equation M ( x, y )dx + N ( x, y )dy = 0 is said to be exact if =
¶y ¶x
General Solution is
c = ò Mdx + ò (terms in N do not contains x)dy
Ex.1:
Show that the following [Link]. are exact [Link].
a) (3 x 2 y + 2 xy )dx + ( x 3 + x 2 + 2 y )dy = 0
-5-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
¶M ¶N
= 3x 2 + 2 x , = 3x 2 + 2 x
¶y ¶x
¶M ¶N
=
¶y ¶x
\ The [Link]. is exact.
dy (x2 + y2 )
Ex.2: Is the [Link]. =- exact or not?
dx 2 xy
Sol.
2 xydy = -( x 2 + y 2 )dx
¶M ¶N
= 2y , = 2y
¶y ¶x
¶M ¶N
Q = , \ [Link]. is exact
¶y ¶x
Ex.3:
Solve the exact [Link]. in Ex.1(a) above (3 x 2 y + 2 xy )dx + ( x 3 + x 2 + 2 y )dy = 0
Sol.
c = ò (3x 2 y + 2 xy )dx + ò 2 ydy
x3 x2 y2
= 3y × + 2y × + 2×
3 2 3
the solution is x 3 y + x y + y 2 = c
2
Ex.4:
Solve ( x + y )dx + ( x + y 2 )dy = 0
Sol.
¶M ¶N
=1 , =1
¶y ¶x
\ [Link]. is exact
-6-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Exercise:
1. (2+yexy)dx+(xexy-2y)dy=0 ans: c=2x+exy-y2
2. (tanx+tany)dy+(ysec2x+secx tanx)dx=0 ans: c=y tanx-lncosy+secx
3. (2xy+y2)dx+(x2+2xy-y)dy=0 ans: x2y+y2x-y2/2=c
Problems:
Solve the following differential equations:
1- y ln ydx + (1 + x 2 )dy = 0
2- e x + 2 y dy - e y - 2 x dx = 0
3- (2 x + y )dx + ( x - 2 y )dy = 0
y
4- x dy = ( y + x cos 2 ( ))dx
x
6- x dy + (2 y - x 2 - 1)dx = 0
8- (1 + y 2 )dx + (2 xy + y 2 + 1)dy = 0
x+ y
9- (e x + ln y )dx + ( )dy = 0
y
1
10- x(1 + e y )dx + ( x 2 + y 2 )e y dy = 0
2
References:
1- Calculus & Analytic Geometry (Thomas).
2- Calculus (Haward Anton).
3- Advanced Mathematics for Engineering Studies ( ﺭﻳﺎﺽ ﺍﺣﻤﺪ ﻋﺰﺕ.)ﺃ
4- Modern Introduction Differential Equations, Schaum's Outline Series.
-7-
Mathematics: Lecture 1 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
-8-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Ex:
1) y''-x2y'+sinx y=0 is linear, 2nd order, homo.
2) y''-(y')2+ y=sinx is non linear, 2nd order, non homo.
3) y''+2yy'=lnx
a) Homogeneous.
b) Nonhomogeneous.
- Undeterminant coefficients.
- Variation of parameters.
-9-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
− b m b 2 − 4ac
r=
2a
Case 1: If b 2 − 4ac f 0 then r1 and r2 are distinct (r1≠ r2) and real roots, and the general
solution is y = c1e r1 x + c2e r2 x
y = (c1 + c 2 x)e rx
Case 3: If b 2 − 4ac p 0 then the roots are two complex conjugate roots r = α ± iβ , i = − 1 ,
and the general solution is:
y = eαx (c1 cos βx + c2 sin βx)
r 2 − 2r − 3 = 0 , y = 1 , y′ = r , y′′ = r 2
(r + 1)(r − 3) = 0
r +1 = 0 ⇒ r = −1
r −3= 0 ⇒ r =3
the general solution is
y = c1e − x + c 2 e 3 x
Ex.2: Solve y ′′ − 6 y ′ + 9 y = 0
Solution:
y ′′ − 6 y ′ + 9 y = 0
r 2 − 6r + 9 = 0
(r − 3) 2 = 0 ⇒ r1 = r2 = 3
∴ y = (c1 + c 2 x)e 3 x
-10-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
r2 + r +1 = 0 a = 1, b = 1, c = 1
− b ± 1 − 4.1.1
r=
2.1
-1 ± - 3 - 1 ± 3i
= =
2 2
−1 3 -1 3
r= ± i α= , β=
2 2 2 2
−1
x 3 3
∴ y=e 2
(c1 cos x + c 2 sin x)
2 2
Exercise: solve
1. 4y''-12y'+5y=0 ans:y=c1e(1/2)x+ c2e(5/2)x
2. 3y''-14y'-5y=0 ans:y=c1e5x+ c2e(-1/3)x
3. 4y''+y=0 ans:y=c1cos(x/2)+ c2sin(x/2)
4. y''-8y'+16y=0 ans:y=c1e4x+ c2xe4x
5. y''+9y=0 ans:y=c1cos3x+ c2sin3x
-11-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
b) The Second order linear non homogenous [Link]. with constant coefficient:
The general form is: ay ′′ + by ′ + cy = F (x) …(3)
where a, b and c are constants.
y = yh + y p y h (complementary function)
y p (porticular integral)
i) y h is y homo.
ii ) y p (use the table)
Methods of finding y p :
1) F ( x) = 3 x 2 , k =3 , n=2
y p = k 2 x 2 + k1 x + k 0
-12-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
− 1 -3x -1
2) F ( x) = e , k= ⇒ c
2 2
y p = ce −3 x
3) F ( x) = 2 cos 3x , k=2 , β =3
y p = c1 cos 3x + c 2 sin 3x
4) F ( x) = 3x 2 - 3x + 5 - 2e3x , k = −3 , c = −2
y p = k2 x 2 + k1 x + k0 + ce3 x
1
5) F ( x) = 2 cos x − sin x
2
y p = c1 cos x + c 2 sin x
6) F ( x) = sin x − cos 2 x
y p = c1 cos x + c 2 sin x + A cos 2x + B sin 2x
yh = c1e − x + c2e 2 x
f(x)=4x2 is polynomial of second degree then
y p = k2 x 2 + k1 x + k0 ... (2)
⇒ y′p = 2k2 x + k1 , y′p′ = 2k2
Substitution gives
2 k 2 − ( 2 k 2 x + k 1 ) − 2( k 2 x 2 + k 1 x + k 0 ) = 4 x 2
coeff . of x 2 : −2k 2 = 4 ⇒ k 2 = −2
coeff . of x : −2k 2 − 2k1 = 0 ⇒ k1 = 2
const : 2k 2 − k1 − 2k 0 = 0 ⇒ k 0 = -3
y p = −2 x 2 + 2x - 3
y g = y h + y p = (c1e − x + c 2 e 2 x ) − 2 x 2 + 2 x − 3
-13-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Ex.3: y ′′ − y ′ − 2 y = e 3 x
Solution:
y ′′ − y ′ − 2 y = e 3 x .... (1)
y ′′ − y ′ − 2 y = 0
r2 − r − 2 = 0
(r − 2)(r + 1) = 0 ⇒ r1 = 2, r2 = −1
Substitute In (1)
9ce3x-3ce3x-2ce3x=e3x
1
9c-3c-2c=1⇒ 4c = 1 ⇒ c=
4
1
In (2)⇒ y p = e3x
4
1
y g = y h + y p = c1e 2 x + c2e − x + e3 x
4
. x ﺍﻟﺴﺎﺑﻖ ﻓﻲy p ← ﻳﻀﺮﺏ0 = ﻭﻛﺎﻥ ﺍﺣﺪ ﺟﺬﺭﻱ ﺍﻟﻤﻌﺎﺩﻟﺔ ﺍﻟﻘﻴﺎﺳﻴﺔF ( x) = kx n ( ﺍﺫﺍ ﻛﺎﻥ1
(2
. x ﺍﻟﺴﺎﺑﻖ ﻓﻲy p ← ﻳﻀﺮﺏp = ﻭﻛﺎﻥ ﺍﺣﺪ ﺟﺬﺭﻱ ﺍﻟﻤﻌﺎﺩﻟﺔ ﺍﻟﻘﻴﺎﺳﻴﺔF ( x) = ke px
ﺍﺫﺍ ﻛﺎﻥ- a
. x 2 ﺍﻟﺴﺎﺑﻖ ﻓﻲy p ← ﻳﻀﺮﺏp = ﻭﻛﺎﻥ ﺟﺬﺭﻱ ﺍﻟﻤﻌﺎﺩﻟﺔ ﺍﻟﻘﻴﺎﺳﻴﺔF ( x) = ke px ﺍﺫﺍ ﻛﺎﻥ- b
k cos βx
. x ﺍﻟﺴﺎﺑﻖ ﻓﻲy p ← ﻳﻀﺮﺏ r = miβ , α = 0 ﻭﻛﺎﻥF ( x) = ﺍﺫﺍ ﻛﺎﻥ (3
k sin βx
-14-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
y''p=x(-c3cosx-c4sinx)+(-c3sinx+c4cosx)+(-c3sinx+c4cosx)
Substitution gives
-2c3sinx+2c4cosx=sinx
-2c3=1⇒ c3=-1/2, 2c4=0⇒c4=0
x
y g = c1 cos x + c2 sin x − cos x
2
-15-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
2- Variation of parameters.
Let yh=c1u1+c2u2 be the homogenous solution of ay ′′ + by ′ + cy = F( x ) and the particular
solution has the form y p = u 1 v1 + u 2 v 2 where v1 and v2 are unknown functions of x which
must be determined, first solve the following linear equations for v'1 and v'2:
v'1u1+ v'2u2=0
v'1u'1+ v'2u'2=F(x)
which can be solved with respect to v'1 and v'2 by Grammar rule as follows
u1 u2 0 u2 u 0
D= , D1 = , D2 = 1
u 1′ u ′2 F( x ) u ′2 u 1′ F( x )
D1 D
and v1′ = , v ′2 = 2
D D
by integration of v'1 and v'2 with respect to x we can find v1 and v2.
Ex.1:
′ ′
v 1 (e − x ) + v 2 (e 2 x ) = 0
′ ′
v1 (−e − x ) + v 2 (2e 2 x ) = e 3 x
Solving this system by Cramer rule gives
e −x e 2x 0 e 2x e −x 0
D= = 3e x , D1 = 3 x = − e 5x
, D = = e 2x
− e −x − e −x
2x 2 3x
2e e 2e 2 x e
− e5 x − 1 4 x −1 1
v'1 = x
= e ⇒ v1 = ∫ e 4 x = − e 4 x ,
3e 3 3 12
2x
e 1 1 1
v'2 = x = e x ⇒ v 2 = ∫ e x = e x
3e 3 3 3
-16-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
1 1 1
∴ y p = − e 4 x e − x + e x e 2 x = e 3x
2 3 4
1
the general solution is : y = c1e − x + c 2 e 2 x + e 3 x
4
Ex.2: solve
y''+y=secx
Solution:
y''+y=0
r2+1=0 ⇒r2=-1 ⇒ r = ± i α=0, β=1
yh=c1cosx + c2sinx, u1=cosx, u2=sinx, f(x)=secx
yp= v1u1+v2u2
= v1cosx +v2sinx then
′ ′
v1 (cos x ) + v 2 (sin x ) = 0
′ ′
v1 (− sin x ) + v 2 (cos x ) = sec x
cos x sin x
D= = cos 2 x + sin 2 x = 1,
− sin x cos x
0 sin x 1
D1 = = − sin x sec x = − sin x = − tan x ,
sec x cos x cos x
cos x 0
D2 = = cos x sec x = 1
− sin x sec x
− tan x − sin x
v1′ = = − tan x ⇒ v1 = ∫ dx = ln | cos x |
1 cos x
v' 2 = 1 ⇒ v 2 = ∫ dx = x
Exercise
1. y''-2y'+y = ex lnx
ex
2. y''-2y'+y =
x5
3. y''+4y=sin22x
-17-
Mathematics: Lecture 2 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
4- y ′′ + y = x 2 + x
12e x
5- y ′′ − 2 y ′ + y =
x3
6- y′′ + 4 y = 4 sec 2 x
References:
1- calculus & Analytic Geometry (Thomas).
2- Calculus (Haward Anton).
3- Advanced Mathematics for Engineering Studies ( ﺭﻳﺎﺽ ﺍﺣﻤﺪ ﻋﺰﺕ.)ﺃ
4- Modern Introduction Differential Equations, Schaum's Outline Series.
-18-
Mathematics: Lecture 3 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
m x 3 ± 2x 2
6 x 2 − 3x
m 6 x 2 ± 12 x
9 x − 18
m 9 x ± 18
0
1
Mathematics: Lecture 3 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
2
Mathematics: Lecture 3 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Ex.2:
y(4)-3y'''+3y''-y'=0
r 4 − 3r 3 + 3r 2 − r = 0 ⇒ r (r 3 − 3r 2 + 3r − 1) = 0
r (r - 1)3 = 0
⇒ r1 = 0 , r2 = r3 = r4 = 1 ⇒ m=3
⇒ y h = c1e r1x + (c 2 x m −3 + c3 x m − 2 + c 4 x m −1 )e rx
y h = c1 + c 2 e x + c3 xe x + c 4 x 2 e x
Ex.3:
y ( 4 ) − 3 y′′′ − 2 y′′ + 2 y′ + 12 y = 0
r 4 − 3r 3 − 2r 2 + 2r + 12 = 0
r = 2 is a root ⇒ (r - 2) is a factor
1 -3 -2 2 12
2 ↓ 2 -2 -8 -12
1 -1 -4 -6 0
⇒ r 3 − r 2 − 4r − 6 = 0
⇒ (r − 2)(r 3 − r 2 − 4r − 6 ) = 0 , r =3 root ⇒ (r - 3) is a factor
1 -1 -4 -6
3 ↓ 3 6 6
1 2 2 0
⇒ r 2 + 2r + 2 = 0
(r − 2)(r − 3) (r 2 + 2r + 2) = 0
r1 = 2, r2 = 3, r = −1 m i α = −1 , β = 1
b) Nonhomogenous: the general form of nth order nonhomogenous differential equation is:
y ( n ) + a1 y ( n −1) + K + an −1 y + an y = F ( x) ...... (1)
3
Mathematics: Lecture 3 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Ex.1: y(4)-8y''+16y=-18sinx
Solution:
yg = yh + y p
y(4)-8y''+16y=0
r4-8r2+16=0 ⇒ (r2-4)2=0 ⇒ r2=4 ⇒ r=±2
yh=c1e2x+c2xe2x+c3e-2x+c4xe-2x
let yp=Acosx+Bsinx, y'p=-Asinx+Bcosx, y''p= -Acosx-Bsinx
y'''p= Asinx-Bcosx, y(4)p= Acosx+Bsinx
Acosx+Bsinx+8Acosx+8Bsinx+16Acosx+16Bsinx=-18sinx
25Acosx+25Bsinx=-18sinx
25A=0⇒A=0
25B=-18⇒B=-18/25
18
y g = c1e 2x + c 2 xe 2x + c 3 e -2x + c 4 xe -2x - sin x
25
2) Variation of parameters
In this method, the particular solution yp has the form yp=v1u1+v2u2+… +vnun
Where u1, u2, …, un are taken from yh=c1u1+c2u2+… +cnun.
To find v1, v2, …, vn, we must solve the following linear eqs. For v'1, v'2, …, v'n:
v1′ u 1 + v ′2 u 2 + … + v ′n u n = 0
v1′ u 1′ + v ′2 u ′2 + … + v ′n u ′n = 0
M
( n−2) ( n−2)
v1′ u 1 + v ′2 u 2 + … + v ′n u n =0
(n - 2)
4
Mathematics: Lecture 3 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
1 cos x sin x
D= 0 − sin x cos x = sin 2 x + cos 2 x = 1
0 − cos x − sin x
0 cos x sin x
D1 = 0 − sin x cos x = sec x (sin 2 x + cos 2 x ) = sec x
sec x − cos x − sin x
1 0 sin x
0 cos x
D2 = 0 0 cos x = = − cos x sec x = −1
sec x − sin x
0 sec x − sin x
1 cos x 0
− sin x 0
D 3 = 0 − sin x 0 = = − sin x sec x = − tan x
− cos x sec x
0 − cos x sec x
′ D
v1 = 1 = sec x ⇒ v1 = ∫ sec xdx = ln(sec x + tan x )
D
′ D
v 2 = 2 = −1 ⇒ v 2 = ∫ − 1 dx = − x
D
′ D
v3 = 3 = − tan x ⇒ v3 = − ∫ tan x dx = ln cos x
D
yp= ln (secx+tanx)-x cosx-ln cosx sinx
yg= c1+c2cosx+c3sinx+ ln (secx+tanx)-x cosx - ln cosx sinx
5
Mathematics: Lecture 3 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Differential Equations:
Exercise: Solve
1) y'''-6y''+12y'-8y=0
2) y'''-y=0
3) y(5)-2y(4)+y'''=0
4) y'''-6y''+2y'+36y=0
5) y(4)+8y'''+24y''+32y'+16y=0
6) y(4)-4y''+4y=0
References:
1- Calculus & Analytic Geometry (Thomas).
2- Calculus (Haward Anton).
3- Advanced Mathematics for Engineering Studies ( ﺭﻳﺎﺽ ﺍﺣﻤﺪ ﻋﺰﺕ.)ﺃ
4- Modern Introduction Differential Equations, Schaum's Outline Series.
6
Mathematics: Lecture 4 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Matrices:
When a system of equations has more than two equations, it is difficult to discuss
them without using matrices and vectors.
The size of the matrix is described by the number of its row and columns. A
matrix of n rows and m columns is said to be n × m matrix.
[ ]
= aij , i = 1,2,..., n , j = 1,2,..., m.
an1 an 2 L anm n× m
Types of matrices:
Square matrix: It is a matrix whose number of rows are equal to the number of
columns ( n = m ). For example:
1 3 0
1 5
A= , B = 3 2 1
2 4 2× 2 1 8 0 3×3
Diagonal matrix: It is a square matrix which all its elements are zero except the
elements on the main diagonal. For example:
4 0 0
A = 0 9 0
0 0 1
Identity matrix: It is a diagonal matrix whose elements on the main diagonal are equal
to 1, and it is denoted by In. For example:
1 0 0
1 0
I 3 = 0 1 0 , I 2 =
0 1
0 0 1
1
Mathematics: Lecture 4 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Ex.1:
1 − 1 2 3 3 2
0 2 + 4 5 = 4 7
cA = c[a ij ] = [ca ij ]
Ex.2:
1 − 1 3 − 3
3 =
0 2 0 6
A matrix with only one column, n × 1 in size, is called a column vector, and one
of only one row, 1 × m in size, is called a row vector.
Matrices multiplication
Let A be an n× k matrix and B be a k×m matrix then C=AB is an n×m matrix,
where the element in the ith row and jth column of AB is the sum
n
cij = ai1b1 j + ai 2 b2 j + ... + ain bnj = ∑ aik bkj , i = 1,2,..., m and j = 1,2,..., p.
k =1
Ex.3
5 - 2
3 7 1
Suppose A = , B = 0 3 then
− 2 1 − 3 2×3 1 - 1 3×2
16 14
AB =
− 13 10 2×2
Determinants
With each square matrix A we associate a number det(A) or |aij| called the
determinant of A, calculated from the entries of A as follows:
2
Mathematics: Lecture 4 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
a a12
For n =2, det 11 = a11a 22 − a 21a12
a 21 a 22
Minors
To each element of a 3× 3 matrix there corresponds a 2 × 2 matrix that is
obtained by deleting the row and column of that element. The determinant of the 2 × 2
matrix is called the minor of that element.
a 22 a 23 a a 23
where is the minor of a11 , 21 is the minor of a12 ,
a 32 a 33 a 31 a 33
a 21 a 22
and is the minor of a13 .
a 31 a 32
Ex.4:
Find the determinant of each matrix
1 3
a)
− 2 5
1 3
= 11
−2 5
2 4
b)
6 12
2 4
=0
6 12
3
Mathematics: Lecture 4 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Solution:
By choosing the second row we get
1 3 −5
3 −5 1 −5 1 3
det( A) = − 2 4 6 = −(−2) +4 − 6⋅
−7 9 0 9 0 −7
0 −7 9
= 62
Note that 62 is the same value that was obtained for this determinant in Example
above.
Note:
If a matrix A is triangular (either upper or lower), its determinant is just the
product of the diagonal elements:
Ex1: Let v1=(3, 6, -1); v2=(8, 2, -4); v3=(1, -1, 1), determine whether v1, v2, v3 are
linearly dependent or not.
Sol: Since
3 8 1
6 2 − 1 = 3 2 −1 − 8 6 −1 + 6 2
= 3(2 − 4) − 8(6 − 1) + (−24 + 2) = −68 ≠ 0
−4 1 −1 1 −1 − 4
− 1 − 4 1
then v1, v2, v3 are linearly independent
Ex2: Let v1=(2, 4, 6); v2=(1, 3, 3); v3=(1, 2, 3), determine whether v1, v2, v3 are linearly
dependent or not.
Sol: Since
2 1 1
4 3 2 = 2 3 2 − 4 2 + 4 3 = 2(9 − 6) − (12 − 12) + (12 − 18) = 6 − 0 − 6 = 0
3 3 6 3 6 3
6 3 3
then v1, v2, v3 are linearly dependent
4
Mathematics: Lecture 4 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Exercise:
1) Determine whether the given vectors are linearly dependent or linearly independent.
a) (3,2);(1,-1)
b) (4,-3,1);(10,-3,0);(2,-6,3)
2) Find determinant of the following matrices
− 4 1 0 1
0 1 0 0
a)
0 0 2 0
1 0 0 3
3 −2 1
b) 1 10 − 1
− 3 − 2 1
References:
1- Calculus & Analytic Geometry (Thomas).
2- Calculus (Haward Anton).
3- Advanced Mathematics for Engineering Studies ( ﺭﻳﺎﺽ ﺍﺣﻤﺪ ﻋﺰﺕ.)ﺃ
5
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Depends on the coefficients of x and y and the constants on the right-hand side of
the equation. The matrix of coefficients for this system is the 2 × 2 matrix
1 − 2
3 1
If we insert the constants from the right-hand side of the system into the matrix of
coefficients, we get the 2 × 3 matrix
1 − 2 − 5
3 1 6
We use a vertical line between the coefficients and the constants to represent the
equal signs. This matrix is the augmented matrix of the system also it can be written
as:
1 − 2 x − 5
3 1 y = 6
Note:
Two systems of linear equations are equivalent if they have the same solution set.
Two augmented matrices are equivalent if the systems they represent are equivalent.
Ex.1:
Write the augmented matrix for each system of equations.
x+ y−z =5
a) 2x + z = 3
2x − y + 4z = 0
1 1 − 1 5
2 0 1 3
2 − 1 4 0
x + y =1
b) y+z=6
z=0
1 1 0 1
0 1 1 6
0 0 1 − 5
1
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
1) Cramer's rule
The solution to the system
a1 x + b1 y = c1
a2 x + b2 y = c2
Dx Dy
Is given by x = and y = where
D D
a1 b1 c1 b1 a1 c1
D= , Dx = and Dy =
a2 b2 c2 b2 a2 c2
Provided that D ≠ 0
Notes:
1. Cramer's rule works on systems that have exactly one solution.
2. Cramer's rule gives us a precise formula for finding the solution to an
independent system.
3. Note that D is the determinant made up of the original coefficients of x and y .
D is used in the denominator for both x and y . Dx is obtained by replacing the
first (or x ) column of D by the constants c1 and c 2 . Dy is found by replacing
the second (or y ) column of D by the constants c1 and c 2 .
Sol.:
First find the determinants D, Dx , and D y :
3 −2
D= = 3 − (−4) = 7
2 1
4 −2 3 4
Dx = = 4 - 6 = -2 , Dy = = -9 - 8 = -17
−3 1 2 −3
2
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Because (3,2) satisfies both of the original equations, the solution se is {(3,2)} .
3
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Ex.1:
Use Gaussian elimination method to solve the system (two equations in two
variables):
x − 3 y = 11
2x + y = 1
Sol.:
Start with the augmented matrix:
1 − 3 11
2 1 1
1 − 3 11
R′2 = -2R1 + R 2
0 7 − 21
1 − 3 11 1
R′2 = R 2
0 1 − 3 7
1 0 2
R′1 = 3 R 2 + R
0 1 − 3
1
Ex.2: Use Gaussian elimination method to solve the system (three equations in three
variables):
2 x − y + z = −3
x+ y−z =6
3x − y − z = 4
Sol.:
2 − 1 1 − 3
1 1 − 1 6
3 − 1 − 1 4
4
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
1 1 − 1 6 R′ = -2R + R
1 1 − 1 6
1 2
R ↔ R 2 −1 1 − 3
2
0 − 3 3 − 15
1 2 R′ = -3R + R
3 − 1 − 1 4 1 3 0 − 4 2 − 14
3
1 1 − 1 6 R′ = -R + R
1 1 0 1
1 2 1
R′2 = - R 2 0
1 −1 5 1
0 1 − 1 5
3 R′ = 4R + R
0 − 4 2 − 14 3 2 3 0 0 − 2 6
1 0 0 1 1 0 0 1
1
R′3 = - R 3 0 1 − 1 5 R′2 = R 3 + R 0 1 0 2
2
2
0 0 1 − 3 0 0 1 − 3
This augmented matrix represents the system x = 1 , y = 2 and z = −3 . So the
solution set to the system is {(1,2,−3)}.
x + 2y =1
2)
3x + 6 y = 3
2x + y + z = 4
3) x + y − z =1
x − y + 2z = 2
5
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Matrix Inverse
The matrix A has an inverse denoted by A-1 if |A|≠0 where A.A-1=I. We'll take two
methods to find A-1 where A is an n×n matrix.
2 1
Ex1: Use Row operation to find A-1 if A=
1 4
2 1 1 0 1 1
1 1 0
→ R1 = R1 →
1 4 0 1 2 1 24 02 1
1 1
1 2 2 0
R ′2 = R 2 − R 1 →
7 −1
0 1
2 2
1
1 1 0
2
R ′2 = R 2 2
7
2 −1 2
0 1
7 4
4 − 1
1 1 0
R 1′ = R 1 − R 2 = 7 7
−1 2
2 0 1
7 7
4 − 1
A-1 = 7 7
−1 2
7 7
2 − 1 3
Ex2: Find A if A = 1 0 − 2
-1
4 0 2
−1 3 1
2 − 1 3 1 0 0 1 0 0
2 2 2
0 1 0 →R2= R2-R1
1
1 0 − 2 0 1 0 → R 1 = 2 R 1 1 0 −2
4 0 2 0 0 1 4 0 2 0 0 1
−1 3 1
1 0 0 −1 3 1
2 2 2 1 0 0
−7 −1 2 2 2
1 0 →R2=2R2 0 1 − 7 − 1 2 0
1
→R3=R3-4R1 0
2 2 2
0 2 −4 − 2 0 1 0 2 − 4 − 2 0 1
6
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
−4
1 0 0 1 0
2
→R1= R 2 + R 1 →R3=-2R2+R3 0 1 − 7 − 1 2 0 → R 3 = R 3
1 1
2 10
0 0 10 0 − 4 1
1 1
0
5
1 0 − 2 0 1 0
1 0 0 5
−4 7
0 1 − 7 − 1 2 0 → R1=2R3+R1→ R2=R2+7R3 0 1 0 − 1
−2 1 5 10
0 0 1 0
5 10
0 0 1 0 − 2 1
5 10
1 1
0 5 5
−4 7
∴ A −1 = − 1
5 10
0 −2 1
5 10
2 1
Ex.: Use determinant to find A-1 where A =
1 4
1
A-1 = adj( A)
A
2 1
A= = 8 −1 = 7
1 4
4 − 1
Cof(A) =
− 1 2
C11 = (-1)1+1 |4| = 4
C12 = (-1)1+2 |1| = -1
C21 = (-1)2+1 |1| = -1
C22 = (-1)2+2 |2| = 2
4 − 1 4 − 1
T
Adj(A) = =
−1 2 −1 2
7
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
4 −1
1 4 − 1
∴ A −1 = = 7 7
7 −1 2 −1 2
7 7
2 − 1 3
Ex2: Find A if A = 1 0 − 2
-1
4 0 2
Solution:
2 −1 3
A=1 0 − 2 = 2 + 8 = 10
4 0 2
0 − 10 0
cof ( A) = 2 − 8 − 4
2 7 1
0 − 4 1
1 1
0 5 5
−4 7
∴ A −1 = − 1
5 10
0 −2 1
5 10
8
Mathematics: Lecture 5 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Matrices:
Problems:
1) write the augment matrix to the following systems then find the solution:
x − y + z =1
a) 2x − 2 y + 2z = 2
− 3 x + 3 y − 3 z = −3
x+ y−z =2
b) 2x − y + z = 1
3x + 3 y − 3z = 8
2x 2 = 1
x 2 − 2x 3 = 2
c)
x1 − 2x 4 = −10
x1 + x 4 = 5
2) Find the inverse of each following matrix
2 1 − 1
a) 3 5 2
5 − 2 4
1 1 − 3
b) 2 − 1 1
1 2 −1
References:
1- Calculus & Analytic Geometry (Thomas).
2- Calculus (Haward Anton).
3- Advanced Mathematics for Engineering Studies ( ﺭﻳﺎﺽ ﺍﺣﻤﺪ ﻋﺰﺕ.)ﺃ
9
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Vector:
A vector is a matrix that has only one row – then we call the matrix a row vector
– or only one column – then we call it a column vector.
A row vector is of the form: a = [a1 a 2 ... a n ]
A column vector is of the form:
b1
b
b= 2
M
bm
A quantity such as force, displacement, or velocity is called a vector and is
represented by a directed line segment
A vector in the plane is directed line segment. The directed line segment AB
has initial point A and terminal point B; its length is denoted by AB . Two vectors
Component form
If v is a two dimensional vector in the plane equal to the vector with initial
point at the origin and terminal point (v1 , v2 ) ,then the Component form of v is:
v = (v1 , v2 )
If v is a three dimensional vector in the plane equal to the vector with initial
point at the origin and terminal point (v1 , v2 , v3 ) , then the Component form of v is:
v = (v1 , v2 , v3 )
1
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
v = (v1 , v2 , v3 ) equal to PQ is
v = ( x2 − x1 , y2 − y1 , z 2 − z1 )
v = v1 + v2 + v3 = ( x2 − x1 ) 2 + ( y2 − y1 ) 2 + ( z 2 − z1 ) 2
2 2 2
The only vector with length 0 is the zero vector 0 = (0,0) or 0 = (0,0,0) . This
vector is also the only vector with no specific direction.
Ex.: Find a) component form and b) length of the vector with initial point P (−3 ,4 ,1)
and terminal point Q(−5 ,2 ,2)
Solution:
a) v = (−5 + 3 , 2 - 4 , 2 - 1)
Addition:
u + v = (u1 + v1 , u 2 + v2 , u3 + v3 )
2
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
If the length of ku is the absolute value of the scalar k times the length of u .
The vector (−1)u = −u has the same length as u but points in the opposite direction.
Ex.:
Let u = (−1,3,1) and v = (4,7,0) , find
1
a) 2u + 3v b) u − v c) u
2
Solution:
a) 2u + 3v = (−2, 6, 2) + (12, 21, 0) = (10, 27, 2)
b) u − v = (−5, - 4, 1)
1 −1 3 1 1
c) u = , , = 11
2 2 2 2 2
3
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Unit vectors
A vector v of length 1 is called unit vector. The standard unit vectors are:
i = (1,0,0) , j = (0,1,0) , k = (0,0,1)
v = (v1 , v2 , v3 ) = (v1 ,0,0) + (0, v2 ,0) + (0,0, v3 )
= v1 (1,0,0) + v2 (0,1,0) + v3 (0,0,1)
= v1i + v2 j + v3 k
We call the scalar (or number) v1 the i-component of the vector v , v2 the
j-component of the vector v , and v3 the k-component. In component form,
P1 ( x1 , y1 , z1 ) and P2 ( x2 , y2 , z 2 ) is
P1 P2 = ( x2 − x1 )i + ( y2 − y1 )j + ( z 2 − z1 )k
If v ≠ 0 , then
v
u = is a unit vector in the direction of v , called the direction of the
v
nonzero vector v .
Ex.:
Find a unit vector u in the direction of the vector P1 (1,0,1) and P2 (3,2,0) .
Solution
P1 P2 = (3 − 1)i + (2 - 0)j + (0 - 1)k = 2i + 2j - k
P1 P2 = ( 2) 2 + (2) 2 + (-1) 2 = 9 =3
P1 P2 2i + 2 j − k 2 2 1
u= = = i+ j− k
P1 P2 3 3 3 3
4
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
( x1 + x2 ) ( y1 + y2 ) ( z1 + z 2 )
, ,
2 2 2
Ex.:
The midpoint of the segment joining P1 (3,−2,0) and P2 (7,4,4) is
3+7 −2+ 4 0+ 4
, , = (5,1,2)
2 2 2
Product of vectors
u & v are vectors,
There are two kinds of multiplication of two vectors:
1- The scalar product (dot product) u.v. The result is a scalar.
2- The vector product (cross product) u×v. The result is a vector.
5
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Note:
i ⋅i i⋅ j
j ⋅ j = 1.1 = 1 , j ⋅ k = 0
k ⋅ k k ⋅ j
Ex.:
a)
(3,5) ⋅ (−1,2) = 3(−1) + 5(2) = 7 scalar
(3i + 5 j ) ⋅ (−i + 2 j ) = 7
b)
(1,−3,4) ⋅ (1,5,2) = 1 − 15 + 8 = −6 scalar
(i − 3 j + 4k ) ⋅ (i + 5 j + 2k ) = −6
u ⋅v 2+2+4
cos θ = =
u⋅v 4 +1+ 4 ⋅ 1+ 4 + 4
8 8
cos θ = ⇒ θ = cos -1
9 9
6
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Ex.:
Find the angle θ in the triangle ACB determined by the vertices
C(5,2)
A
CA = (−5,−2) and CB = (-2,3)
CA ⋅ CB = (−5)(−2) + (-2)(3) = 4
CA = (−5) 2 + (−2) 2 = 29
CB = (−3) 2 + (3) 2 = 13
4
θ = cos −1
29 ⋅ 13
Orthogonal vectors
Vectors u = (u1 , u 2 , u3 ) and v = (v1 , v2 , v3 ) are orthogonal (or perpendicular)
if and only if u ⋅ v = 0
Ex.:
a) u = (3,−2) and v = (4,6) are orthogonal because u ⋅ v = 0
4) u ⋅ u = u
2
5) 0 ⋅ u = 0
7
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Vector projection
Vector projection of u onto v
u ⋅v
projv u = 2 v …… (1)
v
projv u ("The vector projection of u onto v")
Ex.:
Find the vector projection of u = 6i + 3 j + 2k onto v = i − 2 j − 2k and the
scalar component of u in the direction of v.
Solution:
We find projv u from eq.(1):
u⋅v u ⋅v 6−6−4 -4 -4 8 8
projv u = 2 v = v = (i − 2 j − 2k ) = (i − 2 j − 2k ) = i + j + k
v v⋅v 1+ 4 + 4 9 9 9 9
We find the scalar component of u in the direction of v from eq.(2):
Problems:
1) Let u = (3,−2) and v = (−2,5) . Find the a) component form and b) magnitude
(length) of the vector.
1. − 2u + 5v
3 4
2. u+ v
5 5
2) Find the component form of the vector:
8
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
4) Find the vectors whose lengths and directions are given. Try to do the calculation
without writing:
Length Direction
a. 2 i
b. 3 -k
1 3 4
c. j+ k
2 5 5
6 2 3
d. 7 i− j+ k
7 7 7
a) v = 2i − 4 j + 5 k , u = −2i + 4 j − 5 k
3 4
b) v = ( )i + ( ) k , u = 5i + 12 j
5 5
c) v = −i + j , u = 2i + 3 j + 2 k
d) v = 5i + j , u = 2i + 17 j
1 1 1 −1
e) v = , , u= ,
2 3 2 3
9
Mathematics: Lecture 6 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
b) u = 3i − 7 j , v = 3i + j − 2k
c) u = i + 2 j − 2k , v = −i + j + k
8) Find the measures of the angles between the diagonals of the rectangle whose
vertices are A = (1,0) , B(0,3) , C(3,4) and D(4,1)
References:
10
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Parallel vectors
Nonzero vectors u and v are parallel if and only if u × v = 0 .
5) 0 × u = 0
v×u
Notes:
i × j = −( j × i ) = k
j × k = −( k × j ) = i
k × i = −(i × k ) = j
i×i
j × j = 0
k × k
11
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
i j k
u × v = u1 u 2 u3
v1 v2 v3
Ex.:
Find u × v and v × u if u = 2i + j + k and v = −4i + 3 j + k
Solution
i j k
1 1 2 1 2 1
u×v = 2 1 1 = i - j+ k
3 1 -4 1 -4 3
−4 3 1
= -2i - 6j + 10k
v × u = -(u × v) = 2i + 6j − 10k
Ex.: Find a vector perpendicular to the plane of P(1,−1,0) , Q(2,1,−1) and R(−1,1,2) .
Solution
i j k
2 -1 1 -1 1 2
PQ × PR = 1 2 − 1 = i - j+ k
2 2 -2 2 -2 2
−2 2 2
= 6i + 6k
Ex.: Find a unit vector perpendicular to the plane of P(1,−1,0) , Q(2,1,−1) and
R(−1,1,2) .
Solution
12
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
PQ × PR 6i + 6k 1 1
n= = = i + k
PQ × PR 6 2 2 2
Calculating the Triple scalar product (volume): also called Box product
u1 u2 u3
(u × v) ⋅ w = v1 v2 v3
w1 w2 w3
Ex.:
Find the volume of the box determined by u = i + 2 j − k , v = −2i + 3k and
w = 7 j − 4k .
Solution
1 2 −1
(u × v) ⋅ w = − 2 0 3 = - 23
0 7 −4
which P0 P is parallel to v .
L
v
13
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
x = x0 + tv , y = y0 + tv , z = z0 + tv , -∞ p t p ∞
and ( x, y, z ) = ( x0 + tv , y0 + tv , z0 + tv)
Ex.:
Find the equations for the line through (−2,0,4) parallel to v = 2i + 4 j − 2k .
Solution
With P0 ( x0 , y0 , z0 ) equal to (−2,0,4) and v = v1i + v2 j + v3 k equal to
v = 2i + 4 j − 2k
x = −2 + 2t , y = 4t , z = 4 − 2t
Ex.: Find the equations for the line through P(−3,2,−3) and Q(1,−1,4) .
Solution
A( x − x0 ) + B ( y − y0 ) + C ( z − z0 ) = 0
14
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Ex.:
Find an equation for the plane through P0 (−3,0,7) perpendicular to
n = 5i + 2 j − k .
Solution
A( x − x0 ) + B ( y − y0 ) + C ( z − z0 ) = 0
5( x − (−3)) + 2( y − 0) + (−1)( z − 7) = 0
5 x + 15 + 2 y − z + 7 = 0
5 x + 2 y − z = −22
Notice in this example how the components of n = 5i + 2 j − k become the
coefficients of x , y and z in equation 5 x + 2 y − z = −22 . The vector
n = Ai + Bj + Ck is normal to the plane Ax + By + Cz = D .
Ex.:
Find an equation for the plane through A(0,0,1) , B(2,0,0) and C (0,3,0) .
Solution
We find a vector normal to the plane and use it with one of the point to write
an equation for the plane.
The cross product:
i j k
AB × AC = 2 0 − 1 = 3i + 2 j + 6k is normal to the plane.
0 3 −1
3( x − 0) + 2( y − 0) + 6( z − 1) = 0
3x + 2 y + 6 z = 6
Lines of intersection
- Two lines are parallel if and only if they have the same direction.
- Two planes are parallel if and only if their normals are parallel.
- The planes that are not parallel intersect in a line.
Ex.:
Find a vector parallel to the line of intersection of the planes 3 x − 6 y − 2 z = 15
and 2 x + y − 2 z = 5 .
15
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Solution
The line of intersection of two planes is perpendicular to both planes' normal
vectors n1 and n2 and therefore parallel to n1 × n2 . i.e. n1 × n2 is a vector parallel to
the planes' line of intersection.
i j k
n1 × n2 = 3 − 6 − 2 = 14i + 2 j + 15k
2 1 −2
8
Ex.: Find the point where the line x = + 2t, y = −2t , z = 1 + t intersects the plane
3
3x + 2 y + 6 z = 6
Solution
8
The point + 2t , − 2t , 1 + t
3
8
3 + 2t + 2 (− 2t ) + 6(1 + t ) = 6
3
8 + 6t - 4t + 6 + 6t = 6
8t = -8
t = -1
2
The point of intersection is ( x, y, z ) t =−1 = ( , 2 , 0)
3
Ex.:
Find the angle between the planes 3 x − 6 y − 2 z = 15 and 2 x + y − 2 z = 5
Solution
The vectors n1 = 3i − 6 j − 2k and n2 = 2i + j − 2k
n1 ⋅ n2
θ = cos −1
n n
1 2
are normals to the planes. The angle between them is
4
= cos −1
21
16
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
Problems:
1) Sketch the coordinate axes and then include the vectors u , v and u × v as
vectors starting at the origin
a. u =i , v= j
b. u =i-k , v = j+ k
c. u = 2i - j , v = i + 2j
d. u=i+ j , v=i− j
2) In the triangle that determined by the points P , Q and R , find a unite vector
perpendicular to plane PQR .
a. P(1,1,1) , Q(2,1,3) and R(3,−1,1)
b. P (−2,2,0) , Q(0,1,−1) and R (−1,2,−2)
17
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
j. The z - axis.
planes 2 x + y − z = 3 , x + 2y + z = 2 .
8) Find a plane through the points P1 (1, 2, 3) , P2 (3, 2, 1) perpendicular to the
plane 4 x − y + 2 z = 7 .
9) Find the angles between the planes:
a. x + y =1 , 2x + y − 2z = 2
b. 5 x + y − z = 10 , x − 2 y + 3 z = −1
10) Find the point in which the line meets the plane.
a. x =1− t , y = 3t , z = 1 + t , 2 x − y + 3z = 6
b. x=2 , y = 3 + 2t , z = −2 − 2t , 6 x + 3 y − 4 z = −12
References:
1- Calculus & Analytic Geometry (Thomas).
2- Calculus (Haward Anton).
3- Advanced Mathematics for Engineering Studies ( ﺭﻳﺎﺽ ﺍﺣﻤﺪ ﻋﺰﺕ.)ﺃ
18
Mathematics: Lecture 7 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Vectors:
19
Double Integral : Lecture 8
ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Double Integral
n
Lim
n →∞
∑ f (x
r =1
r , y r )∆A r = ∫∫ f (x, y) dA
∆A r → 0 R
y2
b y2 R
∫∫ f (x, y) dA = ∫ ∫ f (x, y) dy dx
R a y1
y1
a b
dxdy ﺍﻣﺎ ﺍﺫﺍ ﻛﺎﻧﺖ ﺍﻟﻤﻨﺤﻨﻴﺎﺕ ﺑﺎﻟﺸﻜﻞ ﺍﻟﺘﺎﻟﻲ ﻳﺆﺧﺬ ﺍﻟﻤﻘﻄﻊ ﺍﻓﻘﻴﺎ
x1 x2
d
d x2
1
Double Integral : Lecture 8
ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Examples:
3 2
1) Evaluate ∫ ∫ (1 + 8xy )dydx
0 1
x2 3
= ( x + 12 )
2 0
= (3 + 6(9)) - (0) = (3 + 54) = 57
∫∫ (2 x − y
2
2) Evaluate )dA over the triangular R enclosed by
R
y =1− x , y =1+ x , y=3
i) sketch:
y =1− x , y =1+ x
if x = 0 ⇒ y = 1 , if x = 0 ⇒ y = 1
if y = 0 ⇒ x = 1 , if y = 0 ⇒ x = −1
⇒ (0,1) & (1,0) , ⇒ (0,1) & (-1,0)
2
Double Integral : Lecture 8
ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
3 y −1
∫∫ (2 x − y )dA = ∫ ∫ (2 x − y 2 )dxdy
2
R 1 1− y
∫ {[( y − 1) ] [ ]}
3 y −1 3
= ∫ ( x − y x)
2 2
dy = 2
− y 2 ( y − 1) − (1 − y ) 2 − y 2 (1 − y ) dy
1 1− y 1
{ }
3
= ∫ y 2 − 2 y + 1 − y 3 + y 2 − 1 + 2 y − y 2 + y 2 − y 3 dy
1
3
= ∫ (−2 y 3 + 2 y 2 )dy
1
y4 y3 3
= (−2 +2 )
4 3 1
− 18 −1 2 81 1 2
= + 18 − ( + ) = 18 − + −
2 2 3 2 2 3
244
= 18 −
6
2 1
∫∫
2
3) Evaluate ex dx dy
0 y
2
Reverse the order of integration
∫∫ dx dy = ∫ ∫ e x dy dx = ∫ e x y dx
2 2 2
ex
0 y 0 0 0 0
2
1
= ∫ e x (2 x − 0)dx
2
0
1
= ex = e1 − e0 = e - 1
2
3
Double Integral : Lecture 8
ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
ππ
sin x
4) Evaluate ∫∫
0 y
x
dx dy
From left x= y
y=π
From right x = π
value of y , from 0 ⇒ x
reverse the order
x=π
ππ π x
sin x sin x
⇒ ∫∫
0 y
x
dx dy = ∫ ∫
0 0
x
dy dx
π π
sin x x sin x
=∫ ⋅ y dx = ∫ ⋅ x dx
0
x 0 0
x
π π
= ∫ sin x dx = - cos x = - (-1 - 1) = 2
0 0
5)
2 2 2 y
0 x 0 0
[ ]
2 2
= ∫ [− 2 y cos xy]0 dy = ∫ − 2 y cos y 2 + 2 y dy
y
0 0
[ ]
= - sin y 2 + y 2 0 = 4 − sin4
2
0 x+2
0 x +2
∫∫ (x 2 + y 2 )dy dx (-1,1)
−1 − x
1 0 2 0
= ∫ ∫ (x 2 + y 2 )dxdy + ∫ ∫ (x
2
+ y 2 )dxdy
0 −y 1 y −2
4
Double Integral : Lecture 8
ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
π ex
A= ∫ ∫ dydx
− π sin x
π
= ∫ y sin x
ex
−π
π
= ∫ (e x − sin x)dx
−π
π
= e x + cos x
−π
e π − e −π + cos π − cos(−π) = e π − e −π
Solution:
(2,-2)
−2 y + 4 0 −y
A= ∫ ∫ dxdy + ∫ ∫ dxdy
−3 − y −2 −y
3 3 (1,-3)
−2 0
y +4 −y
= ∫x −4 dy + ∫ x −4 dy
−3 3 −2 3
−2 0
4 y
= ∫ (y + 4 + )dy + ∫ (−y + )dy
−3
3 −2
3
−2 0
y2 y2 − y2 y2
( + 4y + ) + + =2
2 6 −3 2 6 −2
5
Double Integral : Lecture 8
ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Problems
1 1 ln 2 1
x
∫∫ ∫ ∫
2
1) dydx 2) xy e y x
dydx
0 0
(xy + 1) 2 0 0
π x2 ln 8 ln y
1 y
3) ∫∫
π 0
x
cos dydx
x
4) ∫ ∫1 0
e x + y dxdy
2
2 2x 1π
x
5) ∫∫
1 x
y
dydx 6) ∫∫
0 0
y cos xy dxdy
π
4 2 2 sin θ
∫∫ ∫ ∫ r cos θ drdθ
3
x
7) e dxdy 8)
0 y 0 0
9) Evaluate ∫∫ dA
R
, R: 1st quadrant bounded by y 2 = x & x 2 = y
1
−
∫∫ x(1 + y ) 2 dA , R: the region in the 1 quadrant enclosed by:
2 st
11) Evaluate
R
y = x2 , y = 4 , x = 0
1 1
13) ∫∫
0 y
x 2 e xy dxdy
References
6
Mathematics: Lecture 9 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
2) θ is the angle from the Initial ray to (op). The angle θ is positive if the
rotation is counterclockwise and negative if the rotation is clockwise.
cos(−θ ) = cosθ
even functions
sec(−θ ) = secθ
sin 2 θ + cos 2 θ = 1
sec 2 θ − tan 2 θ = 1
csc 2 θ − cot 2 θ = 1
sin( x + y ) = sin x cos y + cos x sin y if x = y ⇒ sin(2 x) = 2 sin x cos x
cos( x m y) = cos xcos y ± sin x sin y if x = y ⇒ cos(2 x) = cos 2 x − sin 2 x
tan x m tan y 2 tanx
tan( x m y ) = if x = y ⇒ tan 2 x =
1 ± tan x tan y 1 − tan 2 x
1 + cos 2 x
cos 2 x =
2
1 − cos 2 x
sin 2 x =
2
Mathematics: Lecture 9 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
x
cosθ = or x = r cos θ
r
y
sinθ = or y = r sin θ
r
y y
tan θ = or θ = tan −1
x x
dydx
dA = ⇒ r dr dθ
dxdy
Cartesian Coordinates
y = f (x)
Polar Coordinates
r = f (θ )
x2 + y2 − 4 y = 0
Since x 2 + y 2 = r 2 and y = r sin θ
⇒ x2 + y2 − 4y = 0
r 2 − 4r sin θ = 0
r (r − 4 sin θ ) = 0
r = 0 or r = 4 sin θ
the graph of r = 0 is the pole. because the pole is included in the graph of r - 4sinθ = 0,
we can discared r = 0 and keep only r = 4 sinθ
r = a (1 - cos θ ) , r = a (1 + cos θ )
cordioid
r = a (1 - sin θ ) , r = a (1 + sin θ )
r 2 = a 2 cos 2θ
1) Circle
a) r = a
r=2
θ =0 ⇒ r=2
π
θ= ⇒ r=2
4
π
θ= ⇒ r=2
2
M
b) r = a sin θ
i) replace θ by -θ
∴ r = a sin (-θ ) ⇒ r = − a sin θ
Not symmetric about x-axis
ii ) replace θ by π-θ
∴ r = a sin (π - θ ) ⇒ r = a sin θ
symmetric about y-axis
iii ) Not symmetric about the origin.
θ r
0 0
π
a
2
π a
6 2
Mathematics: Lecture 9 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
c) r = a cos θ
i) replace θ by -θ
∴ r = a cos (-θ ) ⇒ r = a cos θ
symmetric about x-axis
θ r
0 a
π
0
2
π a
3 2
2) Cardioids
a) r = a (1 + cos θ ) Symmetric about x-axis
θ r
0 2a
π
a
2
π 0
π 3a
3 2
2π a
3 2
b) r = a (1 + sin θ )
H.W
r = a (1 - cos θ )
r = a (1 - sin θ )
π 1− cos θ
A = 2∫ ∫ rdrdθ
0 0
1− cos θ
2
π
r π
= 2∫ dθ = ∫ (1 − cosθ ) 2 dθ
0 2 0
0
π π
1
= ∫ (1 − 2 cosθ + cos θ )dθ = ∫ (1 − 2 cosθ + (1 + cos 2θ ))dθ
2
0 0 2
1 1 π 3π
= (θ − 2 sin θ + θ + sin 2θ ) =
2 4 0 2
Mathematics: Lecture 9 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
Problems
1) Converting equations from Cartesian form to polar form
a) x 2 + y 2 − 6 x = 0
b) y 2 = 5 y − x 2
c) y 2 = 4 x
d) 2 xy = 1
2) Converting an equation from polar form to Cartesian form
a) r + 2 sinθ = 0
b) r (3 cosθ − 4 sinθ = −1
c) r = 4
π
d) θ =
4
3) a) sketch r = 5 (1 + sin θ )
b) sketch r = 8 cos 2θ
1 1− x 2
b) ∫ ∫ dydx
−1 − 1− x 2
1 1− y 2
∫ ∫ (x + y 2 )dxdy
2
c)
0 0
6 y
d) ∫ ∫ x dydx
0 0
a a2 −x2
dydx
5) Use polar coordinate ∫ ∫
0 0
(1 + x 2 + y 2 )3 / 2
Mathematics: Lecture 9 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
6) Find the area of the region R that lies inside the cardioid r = (1 + cos θ )
and outside the circle r = 1 .
7) Find the area of the region R that lies inside the cardioid
r = 2(1 + cos θ ) and outside the circle r = 3 .
8) Find the area of the region R that lies inside the circle r = 4(sin θ ) and
outside the circle r = 2 .
9) Find the area of the region R cut from the first quadrant by the cardioid
r = (1 + sin θ ) .
10) Find the area of the region common to the r = (1 + cos θ ) and
r = (1 − cos θ ) .
References:
3) Leaves rose
r = a cos nθ , r = a sin nθ
r 2 = a 2 cos 2θ
1- Number of leaves:
r = a cos nθ , r = a sin nθ
a) cos nθ = 1 ⇒ nθ = 0 ⇒ θ = 0
π π
b) sin nθ = 1 ⇒ nθ = ⇒θ =
2 2n
π π
nθ = ⇒ θ =
a) cos nθ = 0 ⇒ 2 2n
nθ = − π ⇒ θ = − π
2 2n
nθ = 0 ⇒ θ = 0
b) sin nθ = 0 ⇒ π
nθ = π ⇒ θ = n
1
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
Ex.1: r = cos 2θ
1- No. of leaves = 4
2- cos2θ = 1 ⇒ 2θ = 0 ⇒ θ = 0
π π
2θ = 2 ⇒ θ = 4
3- cos2θ = 0 ⇒
2θ = − π ⇒ θ = − π
2 4
360 π π
4- = , this mean every leaf repeated.
4 2 2
Ex.2: r = sin 2θ
1- No. of leaves = 4
π π
2- sin 2θ = 1 ⇒ 2θ = ⇒θ =
2 4
2θ = 0 ⇒ θ = 0
3- sin 2θ = 0 ⇒ π
2θ = π ⇒ θ = 2
360 π π
4- = , this mean every leaf repeated.
4 2 2
2
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
Ex.3: r = cos 3θ
1- No. of leaves = 3
2- cos3θ = 1 ⇒ 3θ = 0 ⇒ θ = 0
π π
3θ = 2 ⇒ θ = 6
3- cos3θ = 0 ⇒
3θ = − π ⇒ θ = − π
2 6
360 2π 2π
4- = , this mean every leaf repeated.
3 3 3
Ex.4: r = sin 3θ
1- No. of leaves = 3
π π
2- sin 3θ = 1 ⇒ 3θ = ⇒θ =
2 6
3θ = 0 ⇒ θ = 0
3- sin 3θ = 0 ⇒ π
3θ = π ⇒ θ = 3
360 2π 2π
4- = , this mean every leaf repeated.
3 3 3
3
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
Ex.5: r = cos 4θ
1- No. of leaves = 8
2- cos4θ = 1 ⇒ 4θ = 0 ⇒ θ = 0
π π
4θ = 2 ⇒ θ = 8
3- cos4θ = 0 ⇒
4θ = − π ⇒ θ = − π
2 8
360 2π π π
4- = = , this mean every leaf repeated.
8 8 4 4
Ex.6: r = sin 4θ
Ex.7: r = cos 5θ
4
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
Ex.8: r = sin 5θ
1- No. of leaves = 5
π π
2- sin 5θ = 1 ⇒ 5θ = ⇒θ =
2 10
5θ = 0 ⇒ θ = 0
3- sin 5θ = 0 ⇒ π
5θ = π ⇒ θ = 5
360 2π π 2π
4- = = , this mean every leaf repeated.
5 5 4 5
Ex.9: r 2 = a 2 cos 2θ
1- No. of leaves = 2
2- cos2θ = 1 ⇒ 2θ = 0 ⇒ θ = 0
π π
2θ = ⇒ θ =
3- cos2θ = 0 ⇒ 2 4
2θ = − π ⇒ θ = − π
2 4
360 2π
4- = , this mean every π leaf repeated.
2 2
5
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
Ex.10: r 2 = a 2 sin 2θ
1- No. of leaves = 2
π π
2- sin 2θ = 1 ⇒ 2θ = ⇒θ =
2 4
2θ = 0 ⇒ θ = 0
3- sin 2θ = 0 ⇒ π
2θ = π ⇒ θ = 2
360 2π
4- = = π , this mean every π leaf repeated.
2 2
Problems
11) Find the area of the region enclosed by the cardioid r 2 = 4 cos 2θ .
12) Find the area of the region enclosed by the cardioid r = 12(cos 3θ ) .
13) Find the area of the region in the first quadrant bounded by r = 1 and
π π
r = sin 2θ , ≤θ ≤
4 2
References:
6
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
6) Find the area of the region R that lies inside the cardioid r = (1 + cos θ )
and outside the circle r = 1 .
7) Find the area of the region R that lies inside the cardioid
r = 2(1 + cos θ ) and outside the circle r = 3 .
8) Find the area of the region R that lies inside the circle r = 4(sin θ )
and outside the circle r = 2 .
4
7
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
9) Find the area of the region R cut from the first quadrant by the cardioid
r = (1 + sin θ ) .
10) Find the area of the region common to the r = (1 + cos θ ) and r = (1 − cos θ ) .
11) Find the area of the region enclosed by the cardioid r 2 = 4 cos 2θ .
13) Find the area of the region in the first quadrant bounded by r = 1 and
π π
r = sin 2θ , ≤θ ≤
4 2
8
Mathematics: Lecture 10 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Polar Integral:
9
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
Fourier Series:
Are series of cosine and sine terms and arise in the important practical task of
representing general periodic functions.
Periodic functions:
A function f (x) is called periodic if it is defined for all real x and if there is
some positive No. T such that
f ( x + T ) = f ( x)
The No. T is called a period of f (x) .
a0 ∞ 2 nπ 2 nπ
f ( x) = + ∑ an cos x + bn sin x
2 n =1 T T
B
2
a0 =
T ∫ f ( x) dx
A
2nπ
B
2
an =
T ∫ f ( x) cos
A
T
x dx
2 nπ
B
2
bn =
T ∫ f ( x) sin
A
T
x dx
Ap x pB
Notes:
sin nπ = 0 , (n = 0 , ± 1 , ± 2 ,....) , n integer No.
- 1 n = 1 , 3 , 5 , ...
cos nπ =
1 n = 0 , 2 , 4 , ...
1
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
EX.:
Write Fourier series for f ( x) = x , 0 p x p 2π
⇒ T = 2π - 0 = 2π
B
2
a0 =
T ∫ f ( x) dx
A
2π 2π
=
2
2π ∫
1 x2
x dx = ⋅
π 2
=
1
2π
[ ]
4π 2 − 0 = 2π
0 0
2nπ
B
2
an =
T ∫ f ( x) cos
A
T
x dx
2π
2 2nπ
=
2π ∫ x cos
0
2π
x dx
2π
1
=
π ∫ x cos nx dx
0
, by udv
2π
1 1
2π
1
= x ⋅ sin nx − ∫ sin nx dx
π n 0 0
n
2π
∴ an = 0
2nπ
B
2
bn =
2π ∫ x sin
A
2π
x dx
B
1
=
π ∫ x sin nx dx
A
, u = x , dv = sin nx
2π
1
2π
−1 −1
= x ⋅ ( cos nx) − ∫ cos nx dx
π n 0 0
n
2π
1 −1 1
= ( 2π ⋅ 1 − 0) + sin nx
π n n 2
0
−2
bn =
n
2
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
−2 −2 −2
b1 = , b2 = , b3 =
1 2 3
∞
2
⇒ f ( x) = ∑ bn sin nx , an = 0
2π n =1
= π + (b1 sin x + b 2 sin 2 x + b3 sin 3 x + L )
−2 −2 −2
=π +( sin x + sin 2 x + sin 3 x + L )
1 2 3
1 1
= π − 2 ( sin x + sin 2 x + sin 3 x + L )
2 3
2 nπ
B
2
iii) a n = ⋅ 2 ∫ f ( x) cos x dx
T 0
T
Def.:
A function f (x) is even if f (− x) = f ( x) for all x . For example, f ( x) = x 2 .
A function f (x) is odd if f (− x) = − f ( x) for all x . For example, f ( x) = x 3 .
Notes:
- If f (x) symmetric about y-axis ⇒ even.
f ( x) = x 2 , f ( x) = cos x , f ( x) = f ( x) , f ( x) = constant
f ( x) = sin x
EX.:
− 1 , -2p xp0
Write Fourier series for f ( x) =
1 , 0p xp2
⇒ T = 2 - (-2) = 4
3
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
⇒ a0 = an = 0
2 nπ
B
2
bn = ⋅ 2 ∫ 1 ⋅ sin x dx
4 0 4
nπ
B
= ∫1 ⋅ sin x dx
0
2
nπ
2
-2 -2
= cos x = (cos nπ - 1)
nπ 2 0 nπ
2
∴ bn = (1 − cos nπ ) …. (1)
nπ
2 4 2
∴ b1 = (1 − (−1)) = , b2 = (1 − 1)) = 0
π π 2π
2 4 2
b3 = (1 + 1)) = , b4 = (1 − 1)) = 0
3π 3π 5π
2 4
b5 = (1 + 1)) =
5π 5π
∞
nπ
⇒ f ( x) = ∑ b n sin x
n =1 2
4 4 π 3π 4 5π
= sin sin x + 0+
x +0 + sin x + .....
π 2 3π 2 5π 2
4 π 1 3π 1 5π
= (sin x + sin x + sin x + .....)
π 2 3 2 5 2
Notes:
4
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
EX.:
-π π
cos x , pxp
Write Fourier series for f ( x) = 2 2
0 π 3π
, pxp
2 2
3π π
⇒ T= + = 2π
2 2
-π π
f (x) is even in pxp ⇒ bn = 0
2 2
π
π
B
2 2 2 2 2 2 2
a 0 = ⋅ 2 ∫ f ( x)dx = ⋅ 2 ∫ cos x dx = sin x = [1 − 0] =
T 0
2π 0
π 0 π π
2 2 2nπ
a n = ⋅ 2 ∫ f ( x) cos x dx
T 0
2
π
2
2
= ⋅ 2 ∫ cos x cos n x dx ....(1)
2π 0
π
2 21
π ∫0 2
= [cos( x + nx) + cos ( x − nx)] dx
π
1 1 1 2
= sin ( x + nx) + sin ( x − nx)
π 1 + n 1− n 0
1 1 π π 1 π π
= sin ( + n ) − sin 0 + sin ( − n ) − 0 ....(2)
π 1 + n 2 2 1− n 2 2
5
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
π π
π
2 2
1 2 2
1 1 2
∴ a1 = ⋅ ∫ cos x dx = ⋅ ∫ (1 + cos 2 x) dx = x + sin 2 x
π 0 π 02 π 2 0
1 π 1
= ( + 0 − (0 + 0)) =
π 2 2
in eq.(2)
1 1 3π −π
a2 = {sin } − {sin }
π 3 2 2
1 −1 2
= ( + 1) =
π 3 3π
1 1 1
a3 = {0 - {0}} = 0
π 4 2
1 1 5π 1 − 3π
a4 = {sin } − {sin }
π 5 2 3 2
1 1 1 −2
= ( − )=
π 5 3 15π
a0 ∞
⇒ f ( x) = + ∑ a n cos nx
2 n =0
1 1 2 2
= + cos x + cos 2 x − cos 4 x + ......
π 2 3π 15π
Problems:
a , 0 p x pπ
1) f ( x ) =
− a , π p x p 2π
2) f ( x) = x , -π p x pπ
π + x , -π p x p 0
3) f ( x) =
π − x , 0 p x pπ
4) f ( x) = sin x , -π p x pπ
6
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
0 , −2p xp0
5) f ( x) =
1 , 0pxp2
− 1 , −1p x p 0
6) f ( x) =
2 x , 0 p x p1
−π π
k , pxp
2 2
7) f ( x) =
0 π 3π
, pxp
2 2
−π π
x , pxp
2 2
8) f ( x) =
π - x π 3π
, pxp
2 2
9) f ( x) = x , -π p x p π .
10) f ( x) = x 3 , -π p x p π .
1 , -π p x p 0
11) f ( x) =
− 1 , 0 p x pπ
−π π
x , pxp
2 2
12) f ( x) =
0 π 3π
, pxp
2 2
13) Find the Fourier series of the function f (x) which is assumed to have the period
2π . 1
-π π/2 π/2 π
-π π
7
Mathematics: Lecture 11 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Fourier series:
-k π 2π
References:
8
Mathematics: Lecture 12 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
Partial Differentiations
Z = f ( x, y ) or f(x, y, z) = 0
∂Z
= Zx = fx
∂x
1st partial derivatives
∂Z
= Zy = fy
∂y
∂2Z
= Z xx = f xx
∂x 2
∂2Z
= Z yy = f yy
∂y 2
2nd partial derivatives
∂ Z
2
= Z yx
∂y∂x
∂2Z
= Z xy
∂x∂y
Z xy = Z yx
Ex.1
∂Z ∂Z
If Z = x y , find ,
∂x ∂y
∂Z ∂Z
= y x y -1 y constant , = x y ⋅ ln x ⋅ dy , x constant ⇒ power function
∂x ∂y
Ex.2
y
If Z = tan −1 , show that Z yx = Z xy
x
1 −y −y
Zx = ⋅ = 2
y 2
x x + y2
1+ 2
x
( x 2 + y 2 )(−1) + y.2 y y 2 − x2
Z yx = = 2 L (1)
( x 2 + y 2 )2 ( x + y 2 )2
1
Mathematics: Lecture 12 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
1 1 x
Zy = ⋅ = 2
y x x + y2
2
1+ 2
x
( x + y 2 )(1) + x.2 x
2
y 2 − x2
Z xy = = L (2)
( x 2 + y 2 )2 ( x 2 + y 2 )2
Properties:
1) If ω = f (υ ) , υ = g( x, y)
∂ω ∂ω ∂υ ∂f ∂υ
= ⋅ or ⋅
∂x ∂υ ∂x ∂υ ∂x
chain rule
∂ω ∂ω ∂υ
= ⋅
∂y ∂υ ∂y
2) If ω = f ( x, y ) , x = g(r, s) , y = h(r, s) \
∂ω ∂ω ∂x ∂ω ∂y
= ⋅ + ⋅
∂r ∂x ∂r ∂y ∂r
chain rule
∂ω ∂ω ∂x ∂ω ∂y
s= ⋅ + ⋅
∂r ∂x ∂s ∂y ∂s
3) Total differential
If ω = f ( x, y, z ,.....)
dω = f x dx + f y dy + f z dz + ...
or dω = ω x dx + ω y dy + ω z dz + ...
Ex.1
dω
If ω = f ( x, y, z ) = xyz + x 2 + y 2 + z 2 , Find
dx
By property (3)
2
Mathematics: Lecture 12 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
dω = ω x dx + ω y dy + ω z dz
dω = ( yz + 2 x)dx + ( xz + 2 y )dy + ( xy + 2 z )dz
dω dx dy dz
= ( yz + 2 x) + ( xz + 2 y ) + ( xy + 2 z )
dx dx dx dx
Ex.2
∂ 2ω 2 ∂ ω
2
If ω = f ( x + ct ) + g ( x − ct ) ..... (1) , Show that =c
∂t 2 ∂x 2
There are two methods to solve this Ex.
First method:
Let x + ct = r , x − ct = s
Eq.(1) becomes
ω = f (r ) + g ( s) ..... (1)
∂ω ∂f (r ) ∂r ∂g ( s ) ∂s
= ⋅ + ⋅
∂t ∂r ∂t ∂s ∂t
= f ′(r ) ⋅ c + g ′( s ) ⋅ (−c)
∂ 2ω ∂f (r ) ∂r ∂g ( s ) ∂s
= c ⋅ −c ⋅
∂t ∂r ∂t ∂s ∂t
2
∂ 2ω
∴ = c 2 ( f ′′(r ) ) + ( g ′′( s ) ) ...... (2)
∂t 2
∂ω ∂f (r ) ∂r ∂g ( s ) ∂s
= ⋅ + ⋅
∂x ∂r ∂x ∂s ∂x
= f ′(r ) ⋅ 1 + g ′( s ) ⋅ 1
∂ 2ω
= f ′′(r ) ⋅ 1 ⋅ 1 + g ′′(r ) ⋅ 1 ⋅ 1
∂x 2
In eq.(2)
∂ 2ω 2 ∂ ω
2
= c
∂t 2 ∂x 2
3
Mathematics: Lecture 12 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
Second method:
t ( ﻣﺒﺎﺷﺮﺓ ﺑﺎﻟﻨﺴﺒﺔ ﻟـ1) ﻧﺸﺘﻖ ﻣﻌﺎﺩﻟﺔ
∂ω
= f ′( x + ct ) ⋅ c + g ′( x − ct ) ⋅ (−c)
∂t
∂ 2ω
= f ′′( x + ct ) ⋅ c ⋅ c + g ′′( x − ct ) ⋅ (−c) ⋅ (−c)
∂t 2
∂ 2ω
∴ = c 2 [ f ′′ + g ′′] ..... (2)
∂t 2
∂ω
= f ′( x + ct ) ⋅ 1 + g ′( x − ct ) ⋅ 1
∂x
∂ 2ω
= f ′′( x + ct ) ⋅ 1 ⋅ 1 + g ′′( x − ct ) ⋅ 1 ⋅ 1
∂x 2
∂ 2ω
∴ 2 = [ f ′′ + g ′′] ..... (3)
∂x
∂ 2ω 2 ∂ ω
2
= c
∂t 2 ∂x 2
Ex.3
y ∂z ∂z
If z = xn f , Show that x + y = nz
x ∂x ∂y
∂z y −y y
= x n ⋅ f ′( ) ⋅ ( 2 ) + n x n −1 ⋅ f ( )
∂x x x x
∂z y y
x ⋅ = x ⋅ − x n ⋅ x − 2 ⋅ y f ′( ) + n x n −1 ⋅ f ( )
∂x x x
∂z y y
x ⋅ = − x n −1 ⋅ y f ′( ) + n x n ⋅ f ( ) ..... (1)
∂x x x
∂z y 1
= x n ⋅ f ′( ) ⋅ ( ) + 0
∂y x x
∂z y
y⋅ = x n −1 ⋅ y f ′( ) ..... (2)
∂y x
4
Mathematics: Lecture 12 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
Ex.4
∂ω ∂ω
Express and in terms of r & s if ω = x + 2 y + z 2 ,
∂r ∂s
r
x= , y = r 2 + ln s , z = 2r
s
∂ω ∂ω ∂x ∂ω ∂y ∂ω ∂z
= ⋅ + ⋅ + ⋅
∂r ∂x ∂r ∂y ∂r ∂z ∂r
1 1 1
= 1 ⋅ + 2 ⋅ 2 r + 2 z ⋅ 2 = + 4 r + 4 z = 8r +
s s s
∂ω ∂ω ∂x ∂ω ∂y ∂ω ∂z
= ⋅ + ⋅ + ⋅
∂s ∂x ∂s ∂y ∂s ∂z ∂s
−r 1 −r 2
= 1⋅ 2 + 2 ⋅ + 2z ⋅ 0 = 2
s s s s
Problems:
∂f ∂f ∂f
Find , ,
∂x ∂y ∂z
y
1) f ( x, y, z ) = z sin -1
x
x(2 - cos2y)
2) f ( x, y , z ) =
x 2 + y2
∂ω
3) Find when
∂υ
y
u=0 , υ = 0 if ω = x 2 +, x = u − 2υ + 1 , y = 2u + υ - 2
x
xy ∂ω ∂ω
4) If ω = f 2 , show that x
2
+y =0
x +y ∂x ∂y
5) If ω = f ( x, y ) , and x = r cosθ , y = r sin θ , show that
∂ω 1 ∂ω
( ) 2 + 2 ( ) 2 = f x2 + f y2
∂x r ∂y
dz
6) If f ( x, y, z ) = 0 & z = x + y , find
dx
5
Mathematics: Lecture 12 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
y
7) Find the directional derivative of f ( x, y ) = x tan −1 at (1,1) in the
x
r r r
direction of A = 2i − j
x2 − y2
8) In which direction is the directional derivative of f ( x, y ) =
x2 + y2
9) The D.D. of f ( x, y ) at p0 (1,2) in the direction towards p1 (2,3) is
2 2 and the D.D. at p0 (1,2) towards p2 (1,0) is -3 , find D.D. at
p0 towards the origin.
References:
6
Mathematics: Lecture 13 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
Partial Differentiations
f (x, y, z) = 0
r ∂f r ∂f r ∂f r r r r
υ= i+ j+ k , i, j &k unit vectors
∂x ∂y ∂z
Ex.1:
Find D.D. of f = x 3 − xy 2 − z at (1, 1, 0) in the direction of
r r r r
A = 2i − 3 j + 6k
Sol.: r
First we find υ
∂f
= 3 x 2 − y 2 = 3(1) − (1) = 2
∂x
∂f
= −2 xy = −2(1)(1) = -2
∂y
∂f
= -1
∂z
r ∂f r ∂f r ∂f r
∴ υ= i+ j+ k
∂x ∂y ∂z
r r r r
∴ υ = 2i + −2 j − k
r r
⇒ D.D. = υ ⋅ u ,
r
r A
=υ ⋅ r
A
r r r
r r r 2i + −3 j + 6k r r
= (2i + −2 j − k ) ⋅ , i ⋅i =1
4 + 9 + 36
4+6-6 4
= =
49 7
1
Mathematics: Lecture 13 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
3) f xx ⋅ f yy − ( f xy ) 2 p 0
f = x 2 − xy + y 2 + 2 x + 2 y − 4
f x = 2x - y + 2
f y = −x + 2 y + 2
2x - y + 2 = 0 ...(1)
− x + 2y + 2 = 0 ...(2)
⇒ 3x + 6 = 0 ⇒ x = -2 , y = -2 , (-2,-2)
f xx = 2 , f yy = 2 , f xy = −1
f xx ⋅ f yy − ( f xy ) 2 = (2)(2) − 1 = 3 f0
Since f xx f 0 ⇒ (-2,-2) is m
f = x 3 + y3 − 3axy
2
Mathematics: Lecture 13 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
f x = 3x 2 - 3ay
f y = 3 y 2 − 3ax
3x 2 - 3ay = 0 ...(1)
3 y − 3ax = 0
2
...(2)
x2
From (1) ⇒ y=
a
x4
In (2) ⇒ − ax = 0
a2
⇒ x 4 − a3 x = 0
x( x 3 − a 3 ) = 0
⇒ x=0 , x=a
∴ y=0 , y=a
f xx = 6 x , f yy = 6 y , f xy = −3a
1) at (0,0) ⇒ f xx = 0 , f yy = 0 , f xy = −3a
f xx ⋅ f yy − ( f xy ) 2 = −9a 2 p0
2) at (a, a) ⇒ f xx = 6a , f yy = 6a , f xy = −3a
f xx ⋅ f yy − ( f xy ) 2 = (6a)(6a) − 9a 2
= 36 a 2 - 9 a 2 = 27 a 2 f0
i) if a f 0 ⇒ f xx f 0 ⇒ (a, a) is m
ii) if a p 0 ⇒ f xx p 0 ⇒ (a, a) is M
Problems:
∂f ∂f ∂f
Find , ,
∂x ∂y ∂z
y
1) f ( x, y, z ) = z sin -1
x
x(2 - cos2y)
2) f ( x, y , z ) =
x 2 + y2
3
Mathematics: Lecture 13 ﻣﺪﺭﺱ ﻣﺴﺎﻋﺪ ﺍﺯﻫﺎﺭ ﻣﺎﻟﻚ
Partial Differentiations:
∂ω
3) Find when
∂υ
y
u=0 , υ = 0 if ω = x 2 + , x = u − 2υ + 1 , y = 2u + υ - 2
x
xy ∂ω ∂ω
4) If ω = f 2 , show that x
2
+y =0
x +y ∂x ∂y
5) If ω = f ( x, y ) , and x = r cosθ , y = r sin θ , show that
∂ω 1 ∂ω
( ) 2 + 2 ( ) 2 = f x2 + f y2
∂x r ∂y
dz
6) If f ( x, y, z ) = 0 & z = x + y , find
dx
y
7) Find the directional derivative of f ( x, y ) = x tan −1 at (1,1) in the
x
r r r
direction of A = 2i − j
x2 − y2
8) In which direction is the directional derivative of f ( x, y ) =
x2 + y2
9) The D.D. of f ( x, y ) at p0 (1,2) in the direction towards p1 (2,3) is
2 2 and the D.D. at p0 (1,2) towards p2 (1,0) is -3 , find D.D. at
p0 towards the origin.
References: