Fourier Series
Fourier Series
174
Introduction
176
and formality. Fourier series are used in the analysis of
periodic functions. Many of the phenomena studied in
engineering and science are periodic in nature eg. the current
and voltage in an alternating current circuit. These periodic
functions can be analysed into their constituent components
(fundamentals and harmonics) by a process called Fourier
analysis. We are aiming to find an approximation using
trigonometric functions for various square, saw tooth, etc
waveforms that occur in electronics. We do this by adding
more and more trigonometric functions together. The sum of
these special trigonometric functions is called the Fourier
series.
a0 nx nx
f(x) = + a n cos( ) + b n sin( )
2 n=1
177
T T
1
a 0 f(x) dx , a n 1 f(x) cos( nx ) dx ,
T -T T -T
T
bn 1 f(x) sin( nx ) dx .
T
-T
Dirichlet Conditions
178
Example 1:
0 4 x 0
f(x) = , expand in Fourier series
5 0 x 4
Solution
This function is neither even nor odd, therefore
a0 nx nx
f(x) = + a n cos( ) + b n sin( ) , T=4
2 n=1
4 4
a 0 1 f(x) dx = 1 5 dx = 5
4 -4 40
4 4
a n 1 f(x)cos( nx ) dx = 1 5 cos( nx ) dx = 0
4 -4 40
179
a0 nx nx
f(x) = + a n cos( ) + b n sin( ) , T=2
2 n=1
2 2
1 1 1 x3 x 2 2 8
a 0 f(x) dx = (x x)dx = ( + ) =
2
2 -2 2 -2 2 3 2 2 3
2
1 nx 1 2 nx
a n (x 2 x)cos( ) dx = [(x 2 x)( sin ( )) -
2 -2 2 n
4 nx 8 nx 2 16
(2x 1)(- 2 2
cos( )) 2(- 3 3
sin ( ))] = 2 2 cosn
n n 2 n
2
1 nx 1 -2 nx
bn (x 2 x)sin( ) dx = [(x 2 x)( cos ( )) -
2 -2 2 n
4 nx 8 nx 2 -4
(2x 1)(- sin( )) 2( cos ( ))] = cosn
n 2 2 n 33 2 n
f(x) = 4 + 16 cosn cos( nx ) 4 cosn sin( nx )
3 n=1 n 22 n
This section can make our lives a lot easier because it reduces
the work required. In some of the problems that we
encounter, the Fourier coefficients ao, an or bn become zero
after integration.
180
Finding zero coefficients in such problems is time consuming
and can be avoided. With knowledge of even and odd
functions, a zero coefficient may be predicted without
performing the integration.
a0 nx
f(x) = + a n cos( ), -T< x < T
2 n=1
T T
2 2 nx
a 0 f(x) dx , a n f(x) cos( ) dx , bn 0
T0 T0
Example 3:
a) f(x) = x , -3< x < 3 , b) f(x) = x2, - < x <
Expand in Fourier series the above functions.
181
Solution
The functions f(x) = x , f(x) = x2 are even
Y
Y
X
X
f(x) = x f(x) = x2
a0 nx
Hence f(x) = + a n cos( ) , T=3
2 n=1
x when x 0
Since x = , therefore
-x when x < 0
3 3 2 3
a 0 2 f(x) dx = 2 x dx = ( x ) = 3
30 30 3 0
3
a n 2 x cos( nx ) dx = 2 [x( 3 sin( nx ))-( -9 cos( nx )) 3
30 3 n n 2 2 0
= 26 2 (cos n -1)
n
182
cos n-1
Thus f(x) = 3 + 62 ( )cos( nx )
2 n=1 n
2
2 2x 3 2 2
2
a 0 x dx = ( ) =
0
a n x 2 cos(nx) dx = 2 [x 2 ( sin(nx) )- 2x2 (-cos(nx))
2
0 n n
+ 23 (-sin(nx))] = 42 (cos n)
n 0 n
2 cos n
Therefore f(x) = + 4 ( 2 )cos( nx )
n=1 n 3
183
T
f(x) = bn sin( nx ) , where bn 2 f(x) sin( nx ) dx ,
n=1
T0
a0 an 0
Example 4: f(x) = x3 , -1< x < 1 , expand in Fourier series
y
Solution
f(-x) = (-x)3= -x3= - f(x), therefore f(x) is odd
Hence f(x) = bn sin( nx ) , T= 1
n=1
1
bn 2 x3 sin(nx) dx = 2[x3 ( -cos(nx) )-3x 2 ( -sin(nx) )
10 n n 2
2
n=1
3
n 3 n
184
Study the following relations that may be needed for your
integrals such that
a0 nx
f(x) = + a n cos( ), 0<x<T
2 n=1
T T
2 2 nx
a 0 f(x) dx , a n f(x) cos( ) dx , bn 0
T0 T0
185
Example 5: Expand in half range cosine the function
a) f(x) = sinx , 0 < x < , b) f(x) = x , 0 < x < 1
Solution
a)We have to extend sinx - < x < 0 to form even function so
that it will be similar to sin x , - < x < , T =
y
- 0 /2 x
f(x) = sinx
a0 nx
f(x) = + a n cos( ), 0<x<
2 n=1
2 -2cosx 4
a 0 sinx dx = ( )0 =
0
2 nx 2
a n sinx cos( )dx = sinx cos(nx)dx, n >1
0 0
1
[sin(1- n)x sin(1+ n)x]dx
0
186
2cos(n) 2 2(cos(n) 1)
(1- n 2 ) (1- n 2 ) (1- n 2 )
2 2 -cos2x
a1 sinx cosx dx sin2x dx ( ) =0
0 0 2 0
2 2(cos(n) 1)
Thus f(x) = + cos(nx)
n=2 (1- n 2 )
b) We have to extend x, -1< x < 0 to form even function so
that it will be similar to x , -1< x < 1 , T = 1
-1 1
f(x) = x
1
a0 nx 2 1
f(x) = + a n cos( ), 0
a 0 x dx = ( x 2 ) =1
2 n=1 1 0
1
2 nx nx -cos(nx) 1
a n x cos( ) dx = 2(x(sin( ))-( ))
10 n n 2 2 0
cos(nx) -1 1 cos(nx) -1
2 ( ) , so f(x) = + 2 ( )cos(nx)
n 2 2 2 n=1 n 2 2
187
4- Half range sine
T
f(x) = bn sin( nx ) , where bn 2 f(x) sin( nx ) dx ,
n=1
T0
a0 an 0 , 0<x<T
Example 6: Expand in half range sine the following
functions
a) f(x) = x2 0 < x < 2 , b) f(x) = cosx 0 < x <
Solution
a)We have to extend x2 , -2< x < 0 to form odd function, T= 2
y
-2 2 x
f(x)= x2
188
2
nx
f(x) = bn sin( nx ) , where bn x 2 sin( ) dx
n=1
0
2 nx 4 nx
= [x 2 (- cos( )) - x(- 2 2 sin( ))
n n
8 nx 2 8 16(cos(n) -1)
+ ( 3 3
cos( ))] = - cos(n)
n 0 n n 33
8 16(cos(n) -1) nx
Thus f(x) = [ - cos(n) 3 3
]sin( )
n=1 n n
b) We have to extend cosx , - < x < 0 to form odd function
T=
y
1
- /2 /2 x
-1
f(x) = cos x
189
f(x) = bn sin( nx ) ,
n=1
2 nx 1
bn cosx sin( ) dx = (sin(n -1)x + sin(n +1)x )dx
0 0
1 -cos(n -1)x -cos(n +1)x 2ncos(n) 2n
= ( ) =
n -1 n +1 0 (n 2 -1) (n 2 -1)
2n(cos(n) 1)
= 2
, n >1
(n -1)
2 1 -cos2x
b1 = cosx sin(x) dx = sin(2x) dx = ( ) =0
0 0 2 0
2n(cos(n) 1) nx
Thus f(x) = [ ] sin ( )
n=2 (n 2 -1) T
Harmonic analysis
Refer to full range Fourier series in the interval [- , ]
a0 nx nx
f(x) = + a n cos( ) + bn sin( )
2 n=1
a0
+ a cos(x) + a 2 cos(2x) + a 3 cos(3x) +...+ b1 sin(x)
2 1
+ b2 sin(2x) + b3 sin(3x) +...
190
a0
f(x) = + a cos(x) + b1 sin(x) + a 2 cos(2x) + b 2 sin(2x)
2 1
a 3 cos(3x) + b3 sin(3x) + ...
1- Odd harmonic
The Fourier series will contain odd harmonics if
f(x+T) = -f(x), where the period = 2T. In this case, the
Fourier expansion in the interval [- , ] will be of the form:
f(x) = a 2n-1 cos(2n -1)x + b2n-1 sin(2n -1)x
n=1 n=1
2T 2T
a 2n-1 f (x)cos(2n 1)x dx , b2n-1 f (x)sin(2n 1)x dx
T0 T0
191
Example 7: Expand in Fourier series
f(x) = x , - /2 < x < /2 , f(x + ) = - f(x), period = 2
y
- /2 3 /2
/2
Solution
Since f(x + ) = - f(x), therefore the expansion will be odd
x, x
harmonic such that f(x) =
-(x , x
Thus f(x) = a 2n-1 cos(2n -1)x + b2n-1 sin(2n -1)x
n=1 n=1
a 2n-1 2
x cos(2n 1)x dx
sin(2n 1)x cos(2n 1)x
2 (x( )( )) 0
2n 1 2
(2n 1)
192
b2n-1 2 x sin(2n 1)x dx
cos(2n 1)x sin(2n 1)x
2 (x( )( ))
2n 1 (2n 1)
2
4
2
cosntherefore
(2n 1)
cos n
f(x) = b2n-1 sin(2n -1)x 4
sin(2n -1)x
n=1 n=1 (2n 1) 2
4
2
cosn
(2n 1)
This expansion is called odd sine harmonic defined in quarter
of the period.
193
2- Even harmonic
a0
+ ( a 2 cos(2x) + b2 sin(2x) ) + ( a 4 cos(4x) + b4 sin(4x) ) +
2
( a 6 cos(6x) + b6 sin(6x) ) +... and all of the harmonics are
even. In other word, the expansion will be
a0
f(x) = + a 2n cos(2n)x + b2n sin(2n)x
2 n=1 n=1
T 2T
2
a 0 f (x) dx , a 2n f (x)cos(2n)x dx ,
0 T0
2T
b2n-1 f (x)sin(2n)x dx
T0
194
Example 8: Expand in Fourier series
f(x) = x , - /2 < x < /2 , f(x + ) = f(x), period = 2
y
- /2 /2 3 /2 x
2
a0 x dx 0 ,
a 2n 2 x cos(2nx) dx
sin(2nx) cos(2nx)
2 (x(
)( )) 0
2n 4n
2
195
b2n 2
x sin(2nx) dx
cos(2nx) sin(2nx)
2 (x( )( )) 1 cosn
2n 4n
2 n
cos n
Therefore f(x) = b sin(2nx) sin(2nx)
n=1 2n n=1 n
The above example can be solved by other way such that
a 0 a 2n a 2n-1 b2n-1 0 and
b2n 4 x sin(2nx) dx
cos(2nx) sin(2nx)
4 (x( )( )) 1 cosn
2n 4n
2 0 n
196
a0 x x
+ a 2cos( ) ) + a 4cos( ) + ... and all of the harmonics
2 T T
are even. In other word, the expansion will be
a0 2nx
f(x) = + a 2n cos( )
2 n=1 T
T/2 T/2
a 0 4 f (x) dx , a 2n 4 f (x)cos( nx ) dx , b2n 0
0 0 T
197
In this case, the Fourier expansion will be of the form
2nx
f(x) = b2n sin( )
n=1 T
T/2
a 0 a 2n 0 , b2n f (x)sin( nx ) dx
4
0 T
198
5- Odd cosine harmonic
x x x
a1cos( ) ) + a 3cos( ) + a 5cos( ) + ... and all of the
T T T
harmonics are odd. In other word, the expansion will be
(2n-1)x
f(x) = a 2n-1 cos( )
n=1 T
T/2
b 2n-1 0 , a 2n-1 4
f (x) cos( n -1)x ) dx ,
0 T
199
Solution
It is clear that the expansion will be odd cosine harmonic
y
x x x
b1sin( ) + b3sin( ) + b5sin( ) + ... and all of the
T T T
harmonics are odd. In other word, the expansion will be
(2n-1)x
f(x) = b2n-1 sin( )
n=1 T
T/2
a 2n-1 0 , b2n-1 4 f (x) sin( n -1)x ) dx .
0 T
200
Example 12: Sketch f(x) = x 0 < x < T/2 and f(x + T) = -
f(x), and f(x) = -f(-x) where the period = 2T.
Solution
It is clear that the expansion will be odd sine harmonic
y
201
y
-2 2 4 6 x
(2n-1)x
b) f(x) = a 2n-1 cos( ) , where b 2n-1 0 , and
n=1 T
T/2 2 2
4
a 2n-1 f (x)cos( 2n -1)x dx x cos( 2n -1)x dx
4
0 T 0 4
-2 2 4 6 x
202
Parseval’s theorem
Consider the function f(x) expressed as full range Fourier
series in the range –T < x < T, such that f(x)
a0
= + a n cos( nx ) + bn sin( nx ) .
2 n=1
Solution:
3 2
Since f(x) is even, thus bn= 0, a 0 2 x 2 dx = ( 2x ) = 2
0 0
and a n 2 x 2 cos(nx) dx = 42 (cos n) (solved above)
0 n
2 (cos n)
Thus f(x) = + 4 cos( nx )
n=1 n
2 3
203
5
x 4 4
By Parseval’s theorem 1 x 4 dx = 2 = +
5 5
1 1
16 4
, thus = 31 4 /1440.
n=1 n n=1 n 4
Fourier transform
204
that "transforms" one function into the other. The Fourier
transform and its generalizations are the subject of Fourier
analysis. In this specific case, both the time and frequency
domains are unbounded linear continua. It is possible to
define the Fourier transform of a function of several
variables, which is important for instance in the physical
study of wave motion and optics. It is also possible to
generalize the Fourier transform on discrete structures such
as finite groups. The efficient computation of such structures,
by fast Fourier transform, is essential for high-speed
computing.
205
Example 15: Find Fourier transform for e-x, x > 0
Solution
1 1 x
F (x) i x eix dx
f (x) e dx e
2 2 0
1 (1ix 1 e(1ix 1
e dx (
(1 i
)
2 0 2 0 2 (1i
1i
2 (1
Fourier transform can be expressed if the function is even as
follows:
Fc () 2 / f (x) cosx dx
0
206
1 x 1
Example 16 : Find Fourier transform for f(x) =
0 x 1
Solution
Since this function is even, therefore there is only Fourier
Cosine transform such that
1
Fc () 2 / f (x) cosx dx 2 / cosx dx = 2 / sin
0 0
-1 1 x
Example 17: Find Fourier transform for
x 1 0 x 1
f(x) =
x 1 1 x 0
y
-1 1 x
-1
207
Solution
Since this function is odd, therefore there is only Fourier sine
transform such
1
that Fs () 2 / f (x) sinx dx 2 / (1 x) sinx dx
0 0
1
1
-1 1 x
208
Solution
Since this function is even, therefore there is only Fourier
Cosine transform such
1 2
that Fc () 2 / f (x) cosx dx 2 / (1 x ) cosx dx
0 0
4
2 / [ -2cos 2sin ] [ sin cos ]
2
Fourier Integral
f(x) = (a() cos x + b( sin x) d
0
1 1
a( f (x) cosx dx and b( f (x) sinx dx
209
If f(x) is odd, then
f(x) = 2 ( f (x) sinx dx) sin x d
0 0
1 x 1
Example 19: Find Fourier integral for f(x) = 1/ 2 x 1 ,
0 x 1
deduce sinx dx 1
0 x
½
-1 1 x
Solution
Since the function f(x) is even, therefore
210
f(x) 2 F ()cos x d
0 c
1
Fc () 2 / cosx dx 2 / ( sinx ) 2 / ( sin )
1
0
0
Therefore
2 sin sin
At x = 0, therefore d = 1 d
0 0
Put = x, thus sinx dx .
0 x
Example 20: Find Fourier integral for
1 0 x a
f(x) = 1 a x 0
0 x a
211
Solution
Since the function f(x) is odd therefore
2
f(x) F ()sin x d
0 s
a cos x a 1cos a
Fs () 2 / sinx dx 2 / ( ) 2 / ( )
0 0
Therefore
2 1 cos a
At x = 0, f(x) ( )sin x d = 0 = ½ [f(0+) +
0
f(0-)] = ½[1-1], so Fourier integral is verified.
Complex Fourier
In an earlier module, we showed that a square wave could be
expressed as a superposition of pulses. As useful as this
decomposition was in this example, it does not generalize
well to other periodic signals: How can a superposition of
pulses equal a smooth signal like a sinusoid?
212
Because of the importance of sinusoids to linear systems, you
might wonder whether they could be added together to
represent a large number of periodic signals. You would be
right and in good company as well. Euler and Gauss in
particular worried about this problem, and
Jean Baptiste Fourier got the credit even though tough
mathematical issues were not settled until later. They worked
on what is now known as the Fourier series: representing any
periodic signal as a superposition of sinusoids. But the
Fourier series goes well beyond being another signal
decomposition method. Rather, the Fourier series begins our
journey to appreciate how a signal can be described in either
the time-domain or the frequency-domain with no
compromise. Let f(x) be a periodic signal with period 2T. We
want to show that periodic signals, even those that have
constant-valued segments like a square wave, can be
expressed as sum of harmonically related sine waves:
sinusoids having frequencies that are integer multiples of the
fundamental frequency. Because the signal has period 2T, the
fundamental frequency is 1/2T. The complex Fourier series
213
expresses the signal as a superposition of complex
exponentials having frequencies n/2T, n = …, -1, 0,1, 2, …
nx
-i( nx ) T -i( )
f(x) = cn e , cn 1 f(x) e T dx , -T< x < T
n=- 2T T
Example 21: Find complex Fourier for f(x) = e-x , -2 < x < 2
Solution
Since T = 2, therefore
nx nx in
T -i( ) 2 -i( ) 2 -(1+ )x
cn 1 f(x) e dx 1 e e dx = 1 e
-x 2
T 2 dx
2T T 4 2 4 2
1 -(1+ in )x 2 1
(e 2 ) (e(2+in) e-(2+in) ) =
2
2(2 in) 2(2 in)
i 1
sin(2 in) (cos2sinh n isin 2cosh n
(2 in) (2 in)
Problems
1) Expand in Fourier series the following functions
a) f(x) = x + x2, -2< x < 2
b) f(x) = x , -3< x < 3
n 1n
214
/ 2 x, x 0
d) f(x) = , then deduce the sum
/ 2 x, 0 x
1 1 1
4
4 4 ....
3 5 7
e) f(x) = sin x , 0 < x < 2 , then deduce the
sum 1 1 1 ....
1.3 3.5 5.7
f) f(x) = cos x , - < x < , then deduce the sum
1 1 1
2 2 2 2 2 2 ....
1 .3 3 .5 5 .7
g) f(x) = x x , - < x <
0, x 0
h) f(x) = ,
x / , 0 x
x, 0 x
i) f(x) =
-(x , x
0 1 x
j) f(x) = cos3x x , f(x+2) = f(x)
x < 1
215
k) f(x) = ex , - < x < , use the result to find the sum of
series
(1)n
2
n 2 1+ n
x, 0 x
L) f(x) =
x , x
1 0 x < a
b) f(x) = 1 a x < 0
0 x a
218
Model Questions
Fourier Problems
1) Expand in Fourier series the following functions
219
a) f(x) = x + x2, -2< x < 2
b) f(x) = ǀxǀ , -3< x < 3
1
c) f(x) = x2, - < x< , then deduce the sum 2
n 1 n
/ 2 x, x 0
d) f(x) = , then deduce the sum
/ 2 x, 0x
1 1 1
....
34 54 74
1 1 1
e) f(x) = ǀsinxǀ , 0 < x < 2 , then deduce the sum ....
1.3 3.5 5.7
f) f(x) = ǀcosxǀ , - < x < , then deduce the sum
1 1 1
2 2 2 2
2 2
....
1 .3 3 .5 5 .7
g) f(x) = x ǀxǀ , - < x <
0, x 0
h) f(x) = ,
x / , 0x
x, 0x
i) f(x) =
-(x , x
0 1 x
j) f(x) = cos3x x , f(x+2) = f(x)
x < 1
k) f(x) = ex , - < x < , use the result to find the sum of series
(1)n
2
n 2 1+ n
220
x, 0x
L) f(x) =
x , x
221
1 0x <a
b) f(x) = 1 a x < 0
0 xa
0 x / 2
10) If f(x) = , then the first Fourier cosine
/ 2 x /2 x
coefficient equal …..and the second Fourier sine coefficient equal …..
a) f(t)
f(t+6) = f(t)
0 1 3 4 6 t
b)
f(t)
222
1
f(t+2) = f(t)
-1 1 t
f(t)
c) 2
f(t+4) = f(t)
-2 -1 1 2 t
-2
14) Prove: x =
4
[sin x -
sin 3x sin 5x
...] in the interval [ , ] .
15) Find the Fourier series of the function f defined by
1, x 0
f(x) = ,
1, 0x
223
1, x 0
f(x) = ,
3, 0x
17) Let h be a given number in the interval (0, π). Find the Fourier
1, 0xh
cosine series of the function f(x) = ,
0, hx
f(x) = x(π - x) on (0, π). Use its Fourier representation to find the
1 1 1 1
value of the infinite series 1- ....
33 53 73 93
19) Let h be a given number in the interval (0, π). Find the Fourier
1 0x <a
2h x
cosine series representation of f(x) = 0 x < 2h
2h
0 2h x <
20) What is the Fourier sine series and Fourier cosine series of
f(x) = π/4 - x/2, where 0 < x < π.
21) Find the Fourier series of f(x) = |x| where −L < x < L.
22) The function f is defined by f(x) = ex for −L < x < L. Find its
Fourier series.
224
24) Let f be a periodic function of period 2 π such that f(x) = π2 − x2
(1)n 1
for x (- π, π). show that π2/12 = n2 .
n 1
25) Find the Fourier series of f(x) = 3x for x (- π, π), then deduce the
1 1 1
sum 1- ....
3 5 7
x, 0x
f(x) = , sketch a graph of f(x) in the interval
, x
1 1 1 1 1 1
- 2π < x < 2π . Find sum of 1 - .... & 1+ 2 2 2 ....
3 5 7 3 5 7
27) Find the Fourier series of f(x) = x/2 for x (−π, π), then deduce
1 1 1
the sum 1- ....
3 5 7
x, 0 x
f(x) = , Sketch a graph of f(x) in the interval
, x
1 1 1
-2 π < x < 2 π and find the sum of 1+ ....
32 52 72
29) Find the Fourier series of f(x) = x2 for x (-π, π), then deduce the
1 1 1
sum 1+ 2 2 2 ....
2 3 4
225
(a) Determine the coefficients {ck} and {dk} in the Fourier Series
expansion f(x) = c cos kx d k sin kx , then determine the
k 1 k k 1
1
value of 4.
k 1 k
-x
31) Determine the Fourier series to f(x) = e , g(x) = sin(3x/2),
h(x) = x sin(x), -π < x < π.
, t 0
33) f(t) = , with f(t) = f(t + 2 π). Show how to
(t - , 0t
1
use this Fourier series to compute the sum 2
n 1 n
34) Expand in Fourier series
x 0 x <
a) f(x) = x < , with f(x) = f(x + 2 π)
x/2 x < 2
226
Probability problems
227
(10) If X and Y are two continuous random variables having joint
density function f(x, y) show that XY E ( XY ) E ( X ).E (Y ) .
(11) The joint probability function of two discrete random variables
X and Y is given by f (x , y ) c (2x y ) where x and y can
assume all integers such that 0 x 2, 0 y 3 and
f (x , y ) 0 otherwise. considering c=1/42 Find,
(a )E (X ), (b )E (Y ), (c ) E (X Y ), (d ) E (X *),
(e ) E (Y 2 ) , (f)V ar (X ), ( g ) V ar (Y ), (h ) Cov (X , Y ), (i )
(12) The joint probability function of two discrete random variables
X and Y is given by
c(2 x y ) 2 x 6, 0 y 5
f ( x, y ) . Find,
0 otherwise
(a ) E ( X ), (b) E (Y ), (c) E ( XY ), (d ) E ( X 2 ),
(e) E (Y 2 ) , (f)Var ( X ), ( g ) Var (Y ), (h) Cov ( X , Y ), (i )
228
Benha University Final Term Exam
Faculty of Engineering- Shoubra Date: 12th of January 2012
Electrical Engineering Department Mathematics 3a
2nd Year electrical Communication Duration : 3 hours
1-b) Expand into complex Fourier series the periodic function f(x) =
, x 0
of period 2π (15 marks)
1, 0 x
2-a) Find generating function for Legendre polynomial and show that:
2n 1 n
Pn+1 (x) x Pn (x) Pn-1 (x) , then find P2 (x), P3 (x) .
n +1 n -1
2-b) Write the reccurence relation for Bessel`s function and show that
n n
x J n-1 (x) dx = x J n (x) + c , find J5/2 (x) (20 marks)
Probability and Statistics (Total scores :45marks)
3a-i) Susan goes to work by one of two routes A or B. The prob. of going by
route A is 30%. If she goes by route A, the prob. of being late is 5% and if she
goes by route B, the prob. of being late is 10%. Given Susan is late for shool,
find prob. that she went via route B. (5 marks)
3a-ii) Suppose that you have a bag filled with 50 marbles, 15 of which are green.
What is the prob. of choosing exactly 3 green marbles if a total of 10 marbles are
selected? (5 marks)
3b-i) Let the r.v. X be the distance in feet between bad records on a used computer
tape. Suppose that a reasonable probability model for X is given by the p.d.f.
229
1 -x/40
f(x) = e , 0 x < , find P(X > x) and then the median, also find m.g.f.
40
and then deduce mean, standard deviation, 3 , 3 . (10 marks)
3b-ii) Suppose that (X, Y) has probability density function f given by f(x, y) = (x
+ y) / 4 for 0 < x < y < 2
4-a)A fair coin is tossed three times, X is the No of heads that come up on the first
2 tosses and Y is the No of heads that come up on tosses 2, 3. Construct the joint
distribution and find marginal of X and Y, also find expected value and variance
of X and Y (10 marks)
4-b) Suppose that if a car gets into an accident, the dollar amount of damage is
Gamma-distributed with alpha = 2 and Beta = 100. Evaluate the average loss (in
dollars) and the standard deviation of the loss (to the nearest dollar)?
(5 marks)
230
Model Answer
3a-i) P(A) = 0.3, P(B) = 0.7, P(L/A) = 0.05, P(L/B) = 0.1, P(B/L) =
[P(L/B)P(B)]/P(L), where L: is Late event, P(L) = P(L/A)P(A) + P(L/B)P(B) =
0.05(0.3) + 0.1(0.7) = 0.085, so P(B/L) = 0.1(0.7)/0.085 = 0.824
3a-ii) Let the r.v. is the number of green marbles, so that by using hypergeometric
distribution N = 50, k = 15, n = 10, therefore P(X = 3)= [ 50C3 ] [ 35 C7] / [50C10 ].
x
1 -x/40
3b-i) P(X > x) = 1 – P(X<x) = 1- e dx = e-x/40 .To get the median a such
0
40
a
1 -x/40
that P(X< a) = 0.5, therefore 40 e dx 0.5 , thus 1- e-a/40 0.5 a = -40
0
-(1-40t)x
1 1 1
ln(0.5) = 27.726, & m.g.f. = e ( e-x/40 )dx e
tx 40 dx t) ,
0
40 0
40 1 40t
40 3200
thus 1 = 0) = = 40 = E(X) and 2 = 0) = =
(1 40t) 2 t=0 (1 40t)3 t=0
2 2 2
3200 = E(X ), hence var(X) = E(X ) – [E(X)] = 3200 – 1600 = 1600, so standard
384000
deviation = 40 and 3 = 0) = = 384000, but 3 = 3 -
(1 40t)3 t = 0
3 1 2 +2 1 , therefore 3 = 384000 -3 (40)(3200) + 2(40)3 = 128000.
2 2
(x + y) xy + y 2 / 2 3x 2
3b-ii) f1(x) = dy x +1 - and
x 2 2 x 4
y y
(x + y) xy + x 2 / 2 3y 2
f2(y) = dx
0 2 2 0 4
231
1/ 2 y 2 y
x+y x+y
P[(X+Y)>1/2] =
1/ 4
[
1/ 2 y
(
2
) dx] dy +
1/ 2
[ (
0 2
) dx ]dy and since f1(x)
x=y
½
(1/4,1/4) x+y = ½
½
4-a)
Y
X 0 1 2 f1(x)
0 1/8 1/8 0 2/8
1 1/8 2/8 1/8 4/8
2 0 1/8 1/8 2/8
f2(y) 2/8 4/8 2/8 1
232
Benha University Final Term Exam
Faculty of Engineering- Shoubra Date: 16th of January 2012
Electrical Engineering Department Mathematics 3a
2nd Year electrical power Duration : 3 hours
1-a)Find Fourier series for the function f(x) = x, 0 x π/2, period = 2π in even
1
cosine harmonic and find
m 1 (2m -1)
4 .
1-b) Expand into complex Fourier series the periodic function f(x) =
, x 0
of period 2π (25 marks)
1, 0 x
3-b) A coin is biased so that heads is twice the tails for three independent tosses of
the coin, find (i) The probability of getting at most two heads.
233
(ii) C.d.f. of the random variable X, and use it to find P(1 < X 3); P(X > 2).
(15 marks)
4-a) Let X and Y denote the amplitude of noise signals at two antennas. The
2 /2 2 /2
random vector (X, Y) has the joint pdf f ( x, y) = ax e-ax by e-by , x>0, y>0,
a>0, b>0 , find (i) P[ X>Y] (ii) Standard diviation of X
4b-i) Derive m.g.f. for gamma distribution, then deduce r , r = 0,1,2,3
4b-ii) Given a bag containing 3 black balls, 2 blue balls and 3 green balls, a
random sample of 2 balls is selected. Given that X is the number of black balls
and Y is the number of blue balls, find the joint probability distribution of X and
Y and Cov(X,Y). (20 marks)
Good luck BOARD OF EXAMINERS: Dr. Ibrahim Sakr & Dr.
Khaled El Naggar
Model answer
3a) Let disease: D, and doesn`t have disease:D` , P: positive , N: negative such
that P(D) = P(D`) = 0.5 and P(P/D) = 0.95, therefore P(N/D) = 0.05, P(P/D`) =
0.035, thus P(N/D`) = 0.965, so P(D/P) = [P(P/D)P(D)]/P(P) =
(0.95)(0.5)/[0.95(0.5) + 0.035(0.5)] and P(D`/N) = P(N/D`) P(D`)/P(N) =
0.965(0.5)/[0.05(0.5) +0.965(0.5)
3b-i) P(H) = 2 P(T), therefore P(H) = 2/3 = P, and P(H 2) =
2
234
3
F(x =3) = 3 c x (2 / 3)x (1/ 3)3-x ,
x 0
P(1 < X 3) = F(x=3) – F(x=1) =
3 1
x 0
3
c (2 / 3) x (1/ 3)3-x -
x 3 c x (2 / 3)x (1/ 3)3-x , P(X > 2) = F(x = 3) – F(x =2) =
x 0
3 2
x 0
3
c (2 / 3) x (1/ 3)3-x -
x 3 c x (2 / 3)x (1/ 3)3-x
x 0
4a-i) P(X>Y)
-ax 2 / 2 -by2 / 2 -ax 2 / 2 -by2 / 2 -ay2 / 2 2 /2
= axe bye dx dy -e bye dy 0 e bye-by dy
0 y 0 y
-(a+b)y2 / 2 b -(a+b)y2 / 2 b
= 0 bye dy
a+b
e
0
a+b
, f1(x) =
2 /2 2 /2
[axe bye-by
-ax
] dy ,
0
xf (x) dx x f (x) dx
2
E(X) = 1 and E(X ) = 2
1 , therefore Var(X) = E(X2) –
0 0
[E(X)]2
dy
Put ( t)x = y dx= , thus E(etx) = y -1 -y
e dy = ,
-t t) 0 t)
3
d
0 = 1, 1 = E(X) = α / β , 2 = E(X2) and 3 = [ ]
3 t)
dt
t=0
235
X
0 1 2 f1(x)
Y
0 P(GG) = 0.1071 2P(BG) = 0.3214 P(BB) = 0.1071 0.5356
1 2P(bG) = 0.2143 2P(Bb) = 0.2143 0 0.4286
2 P(bb) = 0.0357 0 0 0.0 357
f1(x) 0.3571 0.5357 0.1071 1
1-a) A box contains 7 blue , 8 white and 9 red balls, two balls are drawn without
replacement. Let X is the number of blue balls and Y is the number of red balls,
Find joint probability function, Cov(x,y), P(X+Y=2). (12 marks)
1-b) Evaluate m.g.f. for the random variable of exponential distribution, then
deduce r , r = 0,1,2 (8 marks)
cxy 0<y<x<1
2-a) f(x,y) = . Find Cov(x,y) , P[(X+Y)<1/2]
0 otherwise
(12 marks)
2-b) A urn contains 30 red balls and 20 black balls, sample of 5 balls is selected at
random. Let X is the number of red balls, find P(X=3), E(X), Var(X).
(8 marks)
236
3-a) Expand in fourier series the following periodic functions:
1
f(x) = x x , -1 < x < 1, f(x) = x2 , 0 < x < 2, then deduce
n=1 4
n
(12 marks)
1 x 2 x 1
3-b) Find Fourier transform and Fourier integral f(x) =
0 x 1
(8 marks)
4-a) Solve the L.P,P.that maximize z = 2x-3y, s.t. x-2y < 3, 2x + y < 5, x,y > 0
using two different methods, and find the dual formula. (12 marks)
4-b) Solve the L.P.P . that minimize z = x-3y, s.t. x-2y > 3, 2x + y > 5, x,y > 0
using Simplex method. (8 marks)
Model answer
1-a)
X
0 1 2 f1(x)
Y
0 P(WW) = 0.1014 2P(BW) = 0.2029 P(BB) = 0.0761 0.3804
1 2P(RW) = 0.2609 2P(BR) = 0.2283 0 0.4892
2 P(RR) = 0.1304 0 0 0.1304
f1(x) 0.4927 0.4312 0.0761 1
237
1-b) The moment generating function of a exponential distribution is expressed by
E(etx) = e tx ( e-x )dx = e-( t)x dx ,
0 0 ( t)
1 2
0 1, 1 E(X) = , 2 E(X 2 ) =
2-a) First we have to get c, such that
1 1 1
y - y3
y=0 x=y
cxy dx dy = 1
y=0
2
dy = 1 c 8
x 1
x 1
f1(x) = 8xy dy 4xy 2
4x
3
and f2(y) = 8xy dx 4yx 2 4(y - y3 )
0 y
0 y
1 1
4
E(X) = xf1 (x) dx 4x dx = 4/5 , E(Y) =
0 0
1 1
1 1
8x y
2 2
E(XY) = dx dy = 4/9 , Cov(X,Y) = E(XY) – E(X) E(Y) = 4/9 –
y=0 x=y
(4/5)(8/15) = 0.0177
1/ 4 x 1/ 2 y 1 1
1/ 2 y
2
P(X+Y < ½ ) = 8xy dx dy = 4x y dy = (1- 4y)y dy = 5 / 6
x y
y=0 x=y y=0 y=0
Nn k k 45 30 20
E(X) = n (k/N) = 5(30/50) and V(X) = ( )n( )(1- ) = 5 ( ) ( )( )
N -1 N N 49 50 50
238
3-a) The functions f(x) = xǀxǀ is even, therefore a 0 = a n = 0, T = 1, therefore
1
2 nx
bn
x sin(
0
) dx =
1 n 1 n 1 nx
= [(- cos( )) + ( 3 3 cos( ) - 3 3 )] , thus f(x) =
n n n n=1
b n sin(
)=
n=1
b n sin(nx)
2 2 2
1 1 x3 8
a0
1
0
10
f(x) dx = (x 2 )dx = ( ) =
3 0 3
2
1 nx 1 nx 1 nx
10
a n (x 2 )cos(
) dx = [(x 2 )( sin (
n
)) - (2x)(- 2 2 cos(
n
))
2
1 nx 4
2(- 3 3 sin ( ))] = 2 2
n 0 n
2
1 nx -1 nx 1 nx
bn
10
(x 2 )sin(
) dx = [(x 2 )( cos (
n
)) - (2x)(- 2 2 sin(
n
))
2
1 nx -4
2( 3 3 cos ( ))] =
n 0 n
3-b) Since this function is even, therefore there is only Fourier Cosine transform
1 2
such that Fc () 2 / f (x) cosx dx 2 / (1 x ) cosx dx
0 0
239
sinx -cosx -sinx 1
2 / [(1 x 2 )( ) (2 x)( ) (2)( )]
0
2
Therefore Fourier integral f(x) is expressed by f(x) = Fc () cos x d
0
2x+y = 5
( 5/2 , 0)
zmax = 5 at (5/2,0)
Dual problem is Lmin = 3p + 5q s.t. p+2q >2, -2p+q > -3
4-b) We can solve it using dual problem such that L max= 3p + 5q , s.t. p + 2q < 1,
-2p + q < -3,
therefore 2p - q > 3 so that p+2q + s = 1, 2p – q – t + u = 3, where s is slack
variable, t is surblus and u is artificial such that w = u w-3 = -2p + q + t
p q s t u Const.
s 1 2 1 0 0 1
u 2 -1 0 -1 1 3
-L 3 5 0 0 0 0
-w -2 1 0 1 0 -3
p q s t u Const.
p 1 2 1 0 0 1
u 0 -5 -2 -1 1 1
-L 0 -1 -3 0 0 -3
-w 0 5 2 1 0 -1
Since the row of w has only positive elements or zeros , therefore there is no
solution.
240
Benha University Final Term Exam
Faculty of Engineering- Shoubra Date: 5th of January 2013
Electrical Engineering Department Mathematics 3a
2nd Year electrical Communication Duration : 3 hours
241
Model answer
Nn k k 36
E(X) = n (k/N) = 6(15/30) = 3, and V(X) = ( )n( )(1- ) =
N -1 N N 29
1 -x/5
1-b) P(X > 30) = x e dx , put y = x-30, therefore
25 30
P(X > 30) = e-6 z e-z dz + 6e-6 e-z dz = 7e -6
0 0
242
2-b) P First we have to get c, such that
1 1 1
y - y3
y=0 x=y
cxy dx dy = 1
y=0
2
dy = 1 c 8
x 1
x 1
f1(x) = 8xy dy 4xy 2 4x
3
and f2(y) = 8xy dx 4yx 2 4(y - y3 )
0 y
0 y
1 1 1 1
E(X) = xf1 (x) dx 4x 4dx = 4/5 , E(Y) = yf 2 (y) dy 4y(y - y3 )dy = 8/15
0 0 0 0
1 1
8x y
2 2
E(XY) = dx dy = 4/9 , Cov(X,Y) = E(XY) – E(X) E(Y) = 4/9 –
y=0 x=y
(4/5)(8/15) = 0.0177
1/ 4 x 1/ 2 y 1 1
1/ 2 y
P(X+Y < ½ ) =
y=0 x=y
8xy dx dy =
y=0
4x 2 y
x y
dy = y=0 (1- 4y)y dy = 5 / 6
4 T/2
3-a) This function is even cosine harmonic, therefore a 0 f (x) dx =
0
4 / 2 4
sin(x) dx =
0
4 T/2 nx 4 /2 2
a 2n f (x)cos( ) dx = sin(x) cos(2nx) dx = - ,
T n 1)(2n 1)
0 0
b2n 0
a0 2 2 1
Thus sinx = a 2n cos(2nx) cos(2nx) , put x = 0,
2 n=1 n=1 (2n-1)(2n +1)
1
therefore 1
n=1 (2n-1)(2n +1)
243
3-b) Since T = , therefore
nx
1 T -i( )
1 -i(nx) i i
cn f(x) e T dx e dx = [e-i(n) - 1] = [cos(n) - 1]
2 2 2n 2n
T 0
-i
Thus c2n-1 , therefore f(x) = c2n-1 e-i(2n 1)x ,
n n=-
1 0
4-a) Fs () 2 / sinx dx 2 / 2 1 , therefore
0 2
f(x) =
2 2 1 2 2 1 cos cos 2
F
s ( ) sin x d [ sin x d 2sin x d [ ]
0 0 1 x
4b-ii) Thus f(x) = a 2n-1 cos(2n -1)x + b 2n-1 sin(2n -1)x
n=1 n=1
2
a 2n-1 x cos(2n 1)x dx
0
(2n 1) 0
244
2
b 2n-1 x sin(2n 1)x dx
1a-i) Two fair dice are rolled, what is the probability that the first turns up six,
given that the sum is k, for each k from two through 12? (7 marks)
1a-ii) A coin is tossed 3 times , let E is the event that heads turn up on first toss, F
is the event that tails turn up the second toss. Are E & F independent events?
(5 marks)
1-b)When Justin is goal-keeper, Shaunie manages to score an average of once for
every 10 shots he takes. If Shaunie takes 12 shots, find the following probabilities:
He scores (a) exactly twice, (b) at most twice, (c) at least 3 times
(8 marks)
2-a) The joint density function of two random variables X and Y is given by
0
f (x, y) xy/96, 0 x 4, 1 y 5 , find E(X), E(Y), E(XY) & Cov(X,Y)
otherwise
(10 marks)
o
2-b) A fair coin is tossed three times, X is the N of heads that come up on the
first 2 tosses and Y is the No of heads that come up on tosses 2, 3. Construct the
joint distribution and find marginal of X and Y, also find expected value and
variance of X and Y . (10 marks)
245
3-a) Expand in fourier series the following periodic functions:
i) f(x) = 10 – x , 5 < x < 15, ii) f(x) = cosx 0 < x < 2 (12 marks)
3-b) Find complex Fourier for f(x) = e-x , -2 < x < 2 (8 marks)
1 0
4-a) Solve the integral equation
0
f (x) sin(x) dx = 2
1
2
(10 marks)
4-b) Solve the follwing L.P,P.that maximize z = 2x-3y, s.t. x-2y<3, 2x + y< 5,
x,y>0 using two different methods, and find the dual formula. (10 marks)
Model answer
1a-i) A={ first turns up six }= { (6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6)}
B = { the sum is k, for each k from two through 12}, therefore P(A/B) = 0 for
k =2,3,…,6.
246
Therefore P(scores exactly twice) = P(X=2) = 12 c 2 (0.1) 2 (0.9)10 and P(scores at
most twice) = P(X=0) + P(X=1) +P(X=2) =
12 0 12 12 1 11 12 2 10
c0 (0.1) (0.9) + c1 (0.1) (0.9) + c 2 (0.1) (0.9) and P(scores at least 3 times) =
12
x 3
12
c x (0.1) x (0.9)12 x
5 5 4 4
xy xy 2 x xy x2y y
f1(x) = 96
dy
192
and f2(y) =
8 96
dx
192
, therefore they are
12
1 1 0 0
4 4 5 5
x2 x3 8 y2 y3 31
independent and E(X) = 8
dx , E(Y) =
24 0 3 12
dx
36
, but
9
0 1 1
248 16 31 47
E(XY) = E(X)E(Y) = and E(2X + 3Y) = 2E(X) + 3E(Y) = + =
27 3 3 3
2-b)
Y
X 0 1 2 f1(x)
0 1/8 1/8 0 2/8
1 1/8 2/8 1/8 4/8
2 0 1/8 1/8 2/8
f2(y) 2/8 4/8 2/8 1
E(X) = 0(2/8) + 1(4/8) + 2(2/8) = 1, E(Y) = 0(2/8) + 1(4/8) + 2(2/8) = 1,
E(X2) = 1(4/8) + 4(2/8) = 3/2 , E(Y2) =1(4/8) + 4(2/8) = 3/2, Var(X) = Var(Y) =
1/2
3a-i) put X = x-10, then the function becomes f(X) = -X which is odd, -5 < X < 5,
thus a0 = an= 0
25
5
n 2 n 5 n 25 10
b n -Xsin( )X dX = - [X(-cos( )X) (-sin( )X) 2 2 ] cos(n)
0 5 5 n 5 n 0 n
10 cos(n) n
, therefore f(x) = sin( )(x 10) .
n=1 5
n
247
4 T/2
3a-ii) This function is even cosine harmonic, therefore a 0 f (x) dx =
0
4 /2 4
cos(x) dx =
0
nx nx
1 T -i( )
T dx 1
2 -x -i( )
3-b) Since T = 2, therefore c n
2T
f(x) e 4
e e 2 dx =
T 2
in
1 2
-(1+ )x
2
1 -(1+ in )x 2
e dx (e 2 )
4 2(2 in)
2
2
1 i
(e(2+in) e-(2+in) ) sin(2 in)
2(2 in) (2 in)
1
(cos 2sinh n i sin 2 cosh n
(2 in)
1 0
2 2
4-a) Since Fs
0
f (x) sin(x) dx =
2
1 , and Fourier
2
integral is expressed by: f(x) =
1 2
2 2 2 2
0
F sin(x) d [ 0 sin(x) d 2 sin(x) d =
s
1
2
[1 cos x - 2cos2x]
x
248
y
4-b) (0,5)
2x+y = 5 x-2y=3
(0,0) x
(0,-3/2)
zmax = 5 at (5/2,0)
Dual problem is Lmin = 3p + 5q s.t. p+2q >2, -2p+q > -3
2nd Method
Maximize -z + 2x-3y = 0, x - 2y + p = 3, 2x + y + q = 5
x y p q Const.
p 1 -2 1 0 3
q 2 1 0 1 5
-z 2 -3 0 0 0
x y p q Const.
p 0 -5/2 1 -1/2 1/2
x 1 1/2 0 1/2 5/2
-z 0 -4 0 -1 -5
z = 5 at (5/2,0)
249
Benha University Final Term Exam
Faculty of Engineering- Shoubra Date:December 2012
Electrical Engineering Department Mathematics 3A EMP: 271
2nd Year electrical power ﺗﺨﻠﻔﺎت Duration : 3 hours
1-a) A box contains 7 blue , 8 white and 9 red balls, two balls are drawn without
replacement. Let X is the number of blue balls and Y is the number of red balls,
Find joint probability function, Cov(x,y), P(X+Y=2). (10 marks)
1-b) A coin is biased so that heads is twice the tails for three independent tosses of
the coin, find
(i) The probability of getting at most two heads.
(ii) C.d.f. of the r.v. X, and use it to find P(1< X 3); P(X > 2). (10 marks)
2-a) Let X and Y denote the amplitude of noise signals at two antennas. The
2 /2 -by 2 / 2
random vector (X, Y) has the joint pdf f ( x, y) = ax e-ax by e x > 0,
y > 0, a > 0, b > 0, find (i) P[ X >Y] (ii) Standard deviation of X. (10 marks)
2-b) Evaluate m.g.f. for the random variable of exponential and gamma
distributions, then deduce r , r = 0,1,2 (10 marks)
3-b) Find complex Fourier for f(x) = e-x , -2 < x < 2 (8 marks)
1 x 2 x 1
4-a) Find Fourier transform and Fourier integral f(x) =
0 x 1
(10 marks)
4-b) Solve the L.P.P.that minimize z = x-3y, s.t. x-2y > 3, 2x+y > 5, x,y> 0 using
Simplex method. (10 marks)
250
Model answer
1-a)
X
0 1 2 f1(x)
Y
0 P(WW) = 0.1014 2P(BW) = 0.2029 P(BB) = 0.0761 0.3804
1 2P(RW) = 0.2609 2P(BR) = 0.2283 0 0.4892
2 P(RR) = 0.1304 0 0 0.1304
f1(x) 0.4927 0.4312 0.0761 1
x 0
3
c (2 / 3) x (1/ 3)3-x -
x 3 c x (2 / 3)x (1/ 3)3-x , P(X > 2) = F(x = 3) – F(x =2) =
x 0
3 2
x 0
3
c (2 / 3) x (1/ 3)3-x -
x 3 c x (2 / 3)x (1/ 3)3-x
x 0
251
2-a) P(X > Y)
2 2 /2 2 /2 2 /2 -ay2 /2 2 /2
= axe-ax /2 bye-by dx dy -e-ax bye-by dy 0 e bye-by dy
0 y 0 y
-(a+b)y2 / 2 b -(a+b)y2 / 2 b
= 0 bye dy
a+b
e
0
a+b
, f1(x) =
-ax 2 /2 -by2 /2
[axe bye ] dy , E(X) = xf (x) dx1 and E(X2) =
0 0
x f (x) dx , therefore Var(X) = E(X2) – [E(X)]2
2
1
0
2-b) The moment generating function of a exponential distribution is expressed by
tx - x -( t)x
E(etx) = e ( e )dx = e dx ,
0 0 ( t)
1 2
0 1, 1 E(X) = , 2 E(X 2 ) =
tx -1 -x
tx -1 -( t)x
E(e ) = e ( x e )dx = x e dx
0 0
dy
Put ( t)x = y dx= tx
, thus E(e ) = -1 -y
y e dy =
-t t) 0 t)
252
1 n 1 n 1 nx
= [(-
n
cos( )) + ( 3 3 cos( ) - 3 3 )] , thus f(x) =
n n n=1
b n sin(
)=
n=1
b n sin(nx)
2 2 2
1 1 x3 8
a0
1
f(x) dx = (x 2 )dx = ( ) =
0
10 3 0 3
2
1 nx 1 nx 1 nx
10
a n (x 2 )cos(
) dx = [(x 2 )( sin (
n
)) - (2x)(- 2 2 cos(
n
))
2
1 nx 4
2(- 3 3 sin ( ))] = 2 2
n 0 n
2
1 nx -1 nx 1 nx
10
b n (x 2 )sin(
) dx = [(x 2 )( cos (
n
)) - (2x)(- 2 2 sin(
n
))
2
1 nx -4
2( 3 3 cos ( ))] =
n 0 n
nx nx
1 T -i( )
1 2 -x -i( )
3-b) Since T = 2, therefore c n f(x) e T dx e e 2 dx
2T T 4 2
in
-(1+ )x
1 2 1 -(1+
in
)x 2
= e 2
dx (e 2 )
4 2 2(2 in)
2
1 i
(e(2+in) e-(2+in) ) sin(2 in)
2(2 in) (2 in)
1
(cos 2sinh n i sin 2 cosh n
(2 in)
253
4-a) Since this function is even, therefore there is only Fourier Cosine transform
1 2
such that Fc () 2 / f (x) cosx dx 2 / (1 x ) cosx dx
0 0
2
Therefore Fourier integral f(x) is expressed by f(x) = Fc () cos x d
0
4-b) We can solve it using dual problem such that L max= 3p + 5q , s.t. p + 2q < 1,
-2p + q < -3,
therefore 2p - q > 3 so that p+2q + s = 1, 2p – q – t + u = 3, where s is slack
variable, t is surblus and u is artificial such that w = u w-3 = -2p + q + t
p q s t u Const.
s 1 2 1 0 0 1
u 2 -1 0 -1 1 3
-L 3 5 0 0 0 0
-w -2 1 0 1 0 -3
p q s t u Const.
p 1 2 1 0 0 1
u 0 -5 -2 -1 1 1
-L 0 -1 -3 0 0 -3
-w 0 5 2 1 0 -1
Since the row of w has only positive elements or zeros , therefore there is no
solution
254