Fourier Series and Transform Solutions
Fourier Series and Transform Solutions
Question 1a
Solution:
The given function is:
π−x
f (x) = , 0 < x < 2π
2
We aim to find its Fourier series expansion.
A function defined in 0 < x < 2π can be expanded as:
∞ ∞
a0 X X
f (x) = + an cos(nx) + bn sin(nx)
2 n=1 n=1
2π
π−x
Z
1
a0 = dx
2π 0 2
Z 2π
1
= (π − x) dx
4π 0
2π
x2
1
= πx −
4π 2 0
4π 2
1 2
= 2π − =0
4π 2
Thus, a0 = 0.
1
Computing an
2π
π−x
Z
1
an = cos(nx) dx
π 0 2
Using integration by parts, we obtain an = 0.
Computing bn
2π
π−x
Z
1
bn = sin(nx) dx
π 0 2
Z 2π
1
= (π − x) sin(nx) dx
2π 0
(−1)n+1
bn =
n
Since a0 = 0 and an = 0, the Fourier series reduces to:
∞
X
f (x) = bn sin(nx)
n=1
∞
X (−1)n+1
= sin(nx)
n=1
n
Deduction of the Given Series
Setting x = π2 in the Fourier series:
π ∞
π− 2
X (−1)n+1 π
= sin n
2 n=1
n 2
Question 1b
Solution:
For a function defined in −ℓ < x < ℓ, the Fourier series expansion is:
∞ ∞
a0 X nπx X nπx
f (x) = + an cos + bn sin .
2 n=1
ℓ n=1
ℓ
Since f (x) = |x| is an even function, all sine terms vanish (bn = 0), and we only
compute a0 and an .
2
Computing a0
Z ℓ
1
a0 = |x| dx.
ℓ −ℓ
Z ℓ
2
= x dx.
ℓ 0
2 x2 ℓ
= × = ℓ.
ℓ 2 0
Thus,
a0 ℓ
= .
2 2
Computing an
Z ℓ
2 nπx
an = x cos dx.
ℓ 0 ℓ
For ℓ = π,
∞
π X 4
|x| = + cos(nx).
2 n2 π
n=1, odd
Summation Deduction
Setting x = 0:
∞
π X 4
|0| = + .
2 n2 π
n=1, odd
Rearranging,
∞
X 1 π2
= .
n=1
n2 8
3
Question 1c
Solution:
Since we are given f (x) in 0 < x < 1, we extend it as an even function for
−1 < x < 1. The half-range cosine Fourier series is given by:
∞
a0 X
f (x) = + an cos(nπx),
2 n=1
Compute a0
Z 1
a0 = 2 (2x − 1)dx.
0
1
= 2 x2 − x 0
= 2 12 − 1 − (0 − 0)
= 2(1 − 1) = 0.
Thus, a0 = 0.
Compute an
Z 1
an = 2 (2x − 1) cos(nπx)dx.
0
Z 1 Z 1
=2 2 x cos(nπx)dx − cos(nπx)dx .
0 0
R
Using integration by parts for x cos(nπx)dx,
Z Z
x sin(nπx) 1
x cos(nπx)dx = − sin(nπx)dx.
nπ nπ
x sin(nπx) cos(nπx)
= + .
nπ (nπ)2
Evaluating from 0 to 1:
Z 1
sin(nπ) cos(nπ) − 1
x cos(nπx)dx = + .
0 nπ (nπ)2
Since sin(nπ) = 0 and cos(nπ) = (−1)n ,
Z 1
(−1)n − 1
x cos(nπx)dx = .
0 (nπ)2
4
R1
For 0
cos(nπx)dx:
Z 1
sin(nπ)
cos(nπx)dx = = 0.
0 nπ
Thus,
(−1)n − 1
an = 2 2 × .
(nπ)2
4((−1)n − 1)
= .
(nπ)2
The Fourier Series Expansion
∞
X 4((−1)n − 1)
f (x) = cos(nπx).
n=1
(nπ)2
Question 2a
Solution:
The given function is defined in the interval (−π, π). The Fourier series
representation is given by:
∞
a0 X
f (x) = + (an cos(nx) + bn sin(nx)) ,
2 n=1
5
Thus, a0 = 0.
Compute an
Z π
1
an = f (x) cos(nx)dx = 0,
π −π
because f (x) is an odd function about x = 0, so its product with cos(nx) over
symmetric limits integrates to zero.
Compute bn
1 π
Z
bn = f (x) sin(nx)dx
π −π
Z 0 Z π
1 2x 2x
= 1+ sin(nx)dx + 1− sin(nx)dx .
π −π π 0 π
Since f (x) is odd, it results in a sine series:
4 (−1)n 4(−1)n
bn = = .
nπ n n2 π
Thus, the Fourier series is:
∞
X 4(−1)n
f (x) = sin(nx).
n=1
n2 π
π
Deduction of Summation Formula Setting x = 2 in the Fourier series gives:
∞
π X 4(−1)n nπ
= sin .
2 n=1
n2 π 2
Question 2b
Solution:
Since we are given a function defined in 0 < x < 1, we seek the sine half-range
expansion, given by:
∞
X
f (x) = bn sin(nπx),
n=1
where the coefficients are computed as:
Z 1
bn = 2 f (x) sin(nπx)dx.
0
6
Compute bn
Splitting the integral over both given piecewise intervals:
"Z #
1/2 Z 1
1 3
bn = 2 − x sin(nπx)dx + x− sin(nπx)dx .
0 4 1/2 4
1 1/2
Z Z 1/2
I1 = sin(nπx)dx − x sin(nπx)dx.
4 0 0
bn = 2(I1 + I2 ).
The final expression for bn can be computed explicitly for specific values of n.
Thus, the sine half-range series for f (x) is given by:
∞
X
f (x) = bn sin(nπx).
n=1
7
Question 2c
Solution:
1 X 2 X πxi 2 X πxi
a0 = yi , a1 = yi cos , b1 = yi sin
N N 180 N 180
Compute a0
1X
yia0 =
8
1 3 1 1 3
= 2+ +1+ +0+ +1+
8 2 2 2 2
1
= ×8=1
8
Thus, the constant term is:
a0 = 1
Compute a1
2X πxi
a1 = yi cos
8 180
Using the values of cos x:
√ ! √ ! √ ! √ !
3 2 1 2 1 2 3 2
Sa = 2(1)+ +1(0)+ − +0(−1)+ − +1(0)+
2 2 2 2 2 2 2 2
√ √ √ √
3 2 2 2 3 2
=2+ − − +
4 4 4 4
√
=2+ 2
2 √ 1 √
a1 = (2 + 2) = (2 + 2)
8 4
Compute b1
8
2X πxi
b1 = yi sin
8 180
Using values of sin x:
√ ! √ ! √ ! √ !
3 2 1 2 1 2 3 2
Sb = 2(0)+ +1(1)+ +0(0)+ − +1(−1)+ −
2 2 2 2 2 2 2 2
√ √ √ √
3 2 2 2 3 2
= +1+ − −1−
4 4 4 4
=0
2
b1 = ×0=0
8
√
1 πx
y(x) ≈ 1 + (2 + 2) cos
4 180
Since b1 = 0, there is no sine term.
Thus,
• Constant term: a0 = 1
√
• First cosine coefficient: a1 = 14 (2 + 2)
• First sine coefficient: b1 = 0
Question 3a
Solution:
Fourier Transform of the Given Function
(
1, for |x| ≤ a
f (x) =
0, for |x| > a
The integral:
9
Z a
F (k) = e−ikx dx
−a
1
e−ika − eika
=
−ik
Using the identity eiθ − e−iθ = 2i sin θ, we get:
1
F (k) = × (−2i sin ka)
−ik
2 sin ka
=
k
Thus, the Fourier transform of f (x) is:
2 sin(ka)
F (k) =
k
We are required to evaluate:
Z ∞
sin x
dx.
0 x
Using the standard result from Fourier transform properties:
Z ∞
sin x π
dx =
0 x 2
Question 3b
Solution:
Fourier Sine and Cosine Transforms of f (x) = e−αx
The Fourier sine transform Fs (k) and cosine transform Fc (k) are given by:
Z ∞
Fs (k) = f (x) sin(kx) dx
0
Z ∞
Fc (k) = f (x) cos(kx) dx
0
10
Z ∞
Fc (k) = e−αx cos(kx) dx
0
Evaluating the Fourier Sine Transform
Z ∞
Fs (k) = e−αx sin(kx) dx
0
Using the standard integral:
Z ∞
b
e−ax sin(bx) dx = , for a > 0
0 a2 + b2
with a = α and b = k, we get:
k
Fs (k) =
α2 + k 2
Evaluating the Fourier Cosine Transform
Z ∞
Fc (k) = e−αx cos(kx) dx
0
Using the standard integral:
Z ∞
a
e−ax cos(bx) dx = , for a > 0
0 a2 + b2
with a = α and b = k, we get:
α
Fc (k) =
α2 + k 2
Thus, the Fourier sine and cosine transforms of f (x) = e−αx are:
k
Fs (k) =
α2 + k2
α
Fc (k) =
α2 + k 2
Question 3c
Solution:
−αx
Fourier Sine Transform of e x
The Fourier sine transform Fs (k) is given by:
Z ∞
Fs (k) = f (x) sin(kx) dx
0
For the given function:
11
e−αx
f (x) = , α>0
x
Thus, we need to evaluate:
∞
e−αx
Z
Fs (k) = sin(kx) dx.
0 x
Applying Integral Representation
The given integral follows from a known result:
Z ∞ −αx
e π |k|
sin(kx) dx = sgn(k) ln .
0 x 2 α
For k > 0, we get:
π k
Fs (k) = ln .
2 α
π k
Fs (k) = ln , k > 0.
2 α
Question 4a
Solution:
(
1 − x2 , |x| < 1
f (x) =
0, |x| ≥ 1
We need to find its Fourier transform:
Z ∞
F (k) = f (x)e−ikx dx.
−∞
First Integral: Z 1
I1 = e−ikx dx.
−1
12
2 sin k
I1 = .
k
Second Integral: Z 1
I2 = x2 e−ikx dx.
−1
2(1 − cos k)
I2 = .
k2
Question 4c
Solution:
The Fourier sine transform of f (x) is given by:
Z ∞
Fs (k) = f (x) sin(kx)dx.
0
For the given function:
13
Z ∞
Fs (k) = e−αx sin(kx)dx.
0
Using the standard integral result:
Z ∞
b
e−ax sin(bx)dx = , a > 0.
0 a2 + b2
Setting a = α and b = k, we get:
k
Fs (k) = .
α2 + k2
The given integral is:
Z ∞
x sin(mx)
I= dx.
0 1 + x2
Using a standard result:
Z ∞
x sin(mx) π
2
dx = e−m , m > 0.
0 1 + x 2
Thus:
π −m
I= e .
2
1. Fourier Sine Transform:
k
Fs (k) = .
α2 + k 2
2. Integral Evaluation:
Z ∞
x sin(mx) π
2
dx = e−m , m > 0.
0 1+x 2
Question 4c
Solution:
The Discrete Fourier Transform (DFT) of a sequence x[n] of length N is
given by:
N −1
2π
X
X[k] = x[n]e−j N kn , k = 0, 1, 2, . . . , N − 1
n=0
where:
• x[n] is the given discrete signal.
14
√
• j= −1 is the imaginary unit.
Given the signal:
x = (0, 1, 49),
we compute X[k] for k = 0, 1, 2.
For k = 0
2
2π
X
X[0] = x[n]e−j 3 (0·n)
n=0
0
Since e = 1:
For k = 1
2
2π
X
X[1] = x[n]e−j 3 (1·n)
n=0
Substituting values:
2π 2π
X[1] = 0 · e−j0 + 1 · e−j 3 (1) + 49 · e−j 3 (2)
15
For k = 2
2
2π
X
X[2] = x[n]e−j 3 (2n)
n=0
X[0] = 50
√
X[1] = −25 + j24 3
√
X[2] = −25 − j24 3
Question 5a
Solution:
The Z-transform of a discrete-time sequence x[n] is defined as:
∞
X
X(z) = x[n]z −n
n=0
enθ + e−nθ
cosh(nθ) =
2
enθ − e−nθ
sinh(nθ) =
2
Z-Transform of cosh(nθ)
16
∞
X enθ + e−nθ −n
Z{cosh(nθ)} = z
n=0
2
Splitting the sum:
∞ ∞
1 X nθ −n 1 X −nθ −n
Z{cosh(nθ)} = e z + e z
2 n=0 2 n=0
Each summation is a geometric series of the form:
∞
X 1
rn = , for |r| < 1.
n=0
1−r
So,
∞
X 1
(eθ z −1 )n = , for |eθ z −1 | < 1.
n=0
1 − eθ z −1
∞
X 1
(e−θ z −1 )n = , for |e−θ z −1 | < 1.
n=0
1 − e−θ z −1
Thus,
1 1 1
Z{cosh(nθ)} = −1
+ .
2 θ
1−e z 1 − e−θ z −1
Multiplying numerator and denominator by (1 − eθ z −1 )(1 − e−θ z −1 ):
1 − cosh(θ)z −1
Z{cosh(nθ)} = .
1 − 2 cosh(θ)z −1 + z −2
Z-Transform of sinh(nθ)
Similarly,
∞
X enθ − e−nθ −n
Z{sinh(nθ)} = z .
n=0
2
Splitting into two geometric series:
1 1 1
Z{sinh(nθ)} = − .
2 1 − eθ z −1 1 − e−θ z −1
Multiplying numerator and denominator by (1 − eθ z −1 )(1 − e−θ z −1 ):
sinh(θ)z −1
Z{sinh(nθ)} = .
1 − 2 cosh(θ)z −1 + z −2
1 − cosh(θ)z −1
Z{cosh(nθ)} = .
1 − 2 cosh(θ)z −1 + z −2
17
sinh(θ)z −1
Z{sinh(nθ)} = .
1 − 2 cosh(θ)z −1 + z −2
Question 5b
Solution:
We need to evaluate u0 , u1 , and u2 from the given function in the Z-domain:
2z 2 + 3z + 12
V (z) =
(z − 1)4
The function V (z) can be rewritten in the form:
∞
X
V (z) = un z −n
n=0
∞ ∞ ∞
X n+3 −n
X n+3 −n
X n+3
= 2z 2
z + 3z z + 12 z −n .
n=0
3 n=0
3 n=0
3
18
Shifting index (n → n + 2), we get:
∞
X n + 1 −n
2 z .
n=2
3
2. For 3z term:
∞ ∞
X n+3 X n + 2 −(n−1)
3z z −n = 3 z .
n=0
3 n=0
3
3. For 12 term:
∞
X n+3
12 z −n .
n=0
3
From the expansions:
- u0 comes from the coefficient of z 0 :
3
u0 = 12 = 12(1) = 12.
3
- u1 comes from the coefficient of z −1 :
4 4
u1 = 3 + 12 = 3(4) + 12(4) = 12 + 48 = 60.
3 3
- u2 comes from the coefficient of z −2 :
4 5 5
u2 = 2 +3 + 12 .
3 3 3
= 8 + 30 + 120 = 140.
Thus
u0 = 12, u1 = 60, u2 = 140.
19
Question 5c
Solution:
We need to find the inverse Z-transform of:
z
X(z) =
(z − 1)(z − 2)
We express X(z) in terms of simpler fractions:
z A B
= +
(z − 1)(z − 2) z−1 z−2
Multiplying both sides by (z − 1)(z − 2) to clear the denominators:
z = A(z − 2) + B(z − 1)
Expanding:
z = Az − 2A + Bz − B
z = (A + B)z − (2A + B)
By comparing coefficients on both sides:
1. **For z-terms:** A + B = 1 2. **For constant terms:** −2A − B = 0
Solving for A and B
From equation (2):
B = −2A
Substituting into equation (1):
A − 2A = 1
−A = 1 ⇒ A = −1
Now, using B = −2A:
B = −2(−1) = 2
Thus, the partial fraction decomposition is:
z −1 2
= +
(z − 1)(z − 2) z−1 z−2
Using the standard inverse Z-transform formula:
−1 1
Z = an un
z−a
where un is the unit step function.
20
Applying this to each term:
−1
Z −1 = −1(1n )un = −un
z−1
2
Z −1 = 2(2n )un = 2n un
z−2
Thus, the final solution is:
xn = −1 + 2n , n ≥ 0.
xn = 2n − 1, n ≥ 0.
Question 6a
Solution:
yn+2 + 2yn+1 + yn = n (1)
with initial conditions:
y0 = 0, y1 = 0. (2)
Applying the Z-transform to both sides, we use the standard properties:
21
z
(z + 1)2 Y (z) = (10)
(z − 1)2
z
Y (z) = (11)
(z − 1)2 (z + 1)2
We decompose:
z
(12)
(z − 1)2 (z + 1)2
z
(z − 1) (z + 1)2
2
Expanding terms:
Thus,
Equating coefficients:
A+C =0 (coefficient of z 3 )
A−C +B+D =0 (coefficient of z 2 )
−A − C + 2B − 2D = 1 (coefficient of z)
−A + B + C + D = 0 (constant term)
22
From A + C = 0, we set C = −A. Substituting:
A − (−A) + B + D = 0 ⇒ 2A + B + D = 0
−A − (−A) + 2B − 2D = 1 ⇒ 2B − 2D = 1
−A + B − A + D = 0 ⇒ −2A + B + D = 0
23
Question 6b
Solution:
5z
Z −1
(3z − 1)(2 − z)
We express the given function in partial fractions:
5z A B
= +
(3z − 1)(2 − z) 3z − 1 2 − z
Multiplying both sides by (3z − 1)(2 − z), we get:
5z = A(2 − z) + B(3z − 1)
Expanding:
5z = 2A − Az + 3Bz − B
Rearranging terms:
5z = −Az + 3Bz + 2A − B
Equating coefficients of z and constant terms:
- For z: −A + 3B = 5 - For constants: 2A − B = 0
Solve for A and B
From 2A − B = 0, we express B in terms of A:
B = 2A
Substituting into −A + 3B = 5:
−A + 6A = 5
5A = 5 ⇒ A = 1
Now, substituting A = 1 into B = 2A:
B = 2(1) = 2
Thus, our partial fraction decomposition is:
5z 1 2
= +
(3z − 1)(2 − z) 3z − 1 2 − z
We now find the inverse Z-transform of each term separately.
1
1. First Term: 3z−1
We rewrite it in standard form:
1 1
=
3z − 1 3(z − 13 )
24
Using the standard Z-transform property:
1 Z −1
−−−→ an un
z−a
Here, a = 13 , so:
n
1 1 1
Z −1 = un
3z − 1 3 3
1 −n
= · 3 un
3
2
2. Second Term: 2−z
We rewrite it as:
2 2 2
= =−
2−z −(z − 2) z−2
Using the standard Z-transform:
1 Z −1
−−−→ an un
z−a
where a = 2, we get:
−1 2
Z − = −2(2n )un
z−2
Combining both inverse transforms:
1 −n
xn = 3 un − 2(2n )un
3
Thus, the final result is:
−1 5z 1
Z = 3−n − 2(2n ), n ≥ 0.
(3z − 1)(2 − z) 3
Question 6c
Solution:
u0 = 0, u1 = 0.
We solve this equation using the Z-transform.
Taking the Z-transform on both sides:
25
Using standard Z-transform properties:
Z [un+1 ] = zU (z) − u0 .
Substituting u0 = 0 and u1 = 0:
z 2 − 5z + 6 = (z − 2)(z − 3).
Thus,
z
U (z) = .
(z − 2)(z − 2)(z − 3)
Using partial fraction decomposition:
z A B C
2
= + 2
+ .
(z − 2) (z − 3) (z − 2) (z − 2) (z − 3)
Multiplying both sides by (z − 2)2 (z − 3), we get:
A + C = 0,
−5A + B − 4C = 1,
6A − 3B + 4C = 0.
26
1 3 1
A= , B= , C=− .
2 2 2
Using standard Z-transform pairs:
1 Z −1
−−−→ an ,
z−a
1 Z −1
2
−−−→ nan .
(z − a)
Applying these:
1 n 3 1
Z −1 [U (z)] = (2 ) + n(2n ) − (3n ).
2 2 2
Thus,
1 n 3 n 1 n
un = 2 + n2 − 3 .
2 2 2
Question 7a
Solution:
d3 y d2 y dy
3
+ 6 2
+ 11 + 6y = 0.
dx dx dx
Assuming a solution of the form y = erx , substituting into the differential
equation:
r3 + 6r2 + 11r + 6 = 0.
Solve for r
We solve the cubic equation:
r3 + 6r2 + 11r + 6 = 0.
By checking integer factors of 6 (±1, ±2, ±3, ±6), we test r = −1:
27
−1 1 6 11 6
−1 −5 −6
1 5 6 0
Thus, we factorize:
(r + 2)(r + 3) = 0.
Thus, the roots are:
Question 7b
Solution:
(D2 + 1)y = x2 + 4x − 6.
d
where D = dx represents the differential operator.
The corresponding homogeneous equation is:
(D2 + 1)y = 0.
This gives the characteristic equation:
r2 + 1 = 0.
Solving for r:
r = ±i.
Since the roots are purely imaginary, the complementary function (CF) is:
yc = C1 cos x + C2 sin x.
where C1 and C2 are arbitrary constants.
28
Since the right-hand side is a polynomial x2 +4x−6, we assume a polynomial
particular solution of the form:
yp = Ax2 + Bx + C.
Applying the operator D2 + 1:
1. Compute the first derivative:
dyp
= 2Ax + B.
dx
2. Compute the second derivative:
d2 yp
= 2A.
dx2
Now apply D2 + 1 to yp :
2A + Ax2 + Bx + C = x2 + 4x − 6.
By comparing coefficients:
- For x2 : A = 1. - For x: B = 4. - Constant term: 2A + C = −6. Since
2(1) + C = −6, we get C = −8.
Thus, the particular solution is:
yp = x2 + 4x − 8.
The general solution is:
y = yc + yp .
Substituting yc and yp :
y = C1 cos x + C2 sin x + x2 + 4x − 8.
where C1 and C2 are arbitrary constants.
Thus,
y = C1 cos x + C2 sin x + x2 + 4x − 8.
29
Question 8a
Solution:
d2 y dy
6 + 17 + 12y = e−x .
dx2 dx
The corresponding homogeneous equation is:
d2 y dy
6 + 17 + 12y = 0.
dx2 dx
Assuming a solution of the form y = erx , we get the characteristic equation:
6r2 + 17r + 12 = 0.
yc = C1 e−4x/3 + C2 e−3x/2 .
yp = Ae−x .
dyp
= −Ae−x ,
dx
d2 yp
= Ae−x .
dx2
30
(6A − 17A + 12A)e−x = e−x .
A = 1.
Thus, the particular solution is:
yp = e−x .
Question 8b
Solution:
d2 y dy
x2 +x + 8y = 65 cos(log x).
dx2 dx
We use the substitution:
d 1 d
x = et , so that = .
dx x dt
Applying this transformation:
d2 y d2 y dy
dy 1 dy 1
= , = 2 − .
dx x dt dx2 x dt2 dt
Simplifying:
d2 y dy dy
− + + 8y = 65 cos t.
dt2 dt dt
d2 y
+ 8y = 65 cos t.
dt2
This is a linear differential equation with constant coefficients.
31
The homogeneous part is:
d2 y
+ 8y = 0.
dt2
The characteristic equation is:
r2 + 8 = 0.
Solving for r: √ √ √
r = ± −8 = ± 8i = ±2 2i.
Thus, the complementary function is:
√ √
yc = C1 cos(2 2t) + C2 sin(2 2t).
Since the right-hand side is 65 cos t, we assume a solution of the form:
yp = A cos t + B sin t.
Computing derivatives:
d2 yp
= −A cos t − B sin t.
dt2
Substituting into the nonhomogeneous equation:
(−A cos t − B sin t) + 8(A cos t + B sin t) = 65 cos t.
√ √ 65
y = C1 cos(2 2t) + C2 sin(2 2t) + cos t.
7
Substituting back t = log x:
√ √ 65
y = C1 cos(2 2 log x) + C2 sin(2 2 log x) + cos(log x).
7
Thus,
√ √ 65
y = C1 cos(2 2 log x) + C2 sin(2 2 log x) + cos(log x).
7
32
Question 8c
Solution:
d2 q q
L + =E
dt2 C
where E is the applied electromotive force (emf).
The homogeneous part of the equation is:
d2 q q
L 2
+ = 0.
dt C
Rearrange:
d2 q 1
2
+ q = 0.
dt LC
The characteristic equation is:
1
r2 + = 0.
LC
Solving for r:
r
1
r = ±i .
LC
Define:
1
ω0 = √ .
LC
Thus, the roots become:
r = ±iω0 .
The general solution to the homogeneous equation is:
qp = q0 .
Substituting into the original equation:
q0
L·0+ = E.
C
q0 = EC.
Thus, the particular solution is:
33
qp = EC.
The general solution is the sum of the homogeneous and particular solutions:
1
q(t) = C1 cos(ω0 t) + C2 sin(ω0 t) + EC, where ω0 = √ .
LC
Question 9a
Solution:
We fit the quadratic equation:
y = a + bx + cx2
x 1 2 3 4 5
y 10 12 13 16 19
X
x = 1 + 2 + 3 + 4 + 5 = 15,
X
y = 10 + 12 + 13 + 16 + 19 = 70,
X
x2 = 12 + 22 + 32 + 42 + 52 = 55,
X
x3 = 13 + 23 + 33 + 43 + 53 = 225,
X
x4 = 14 + 24 + 34 + 44 + 54 = 979,
X
xy = (1)(10) + (2)(12) + (3)(13) + (4)(16) + (5)(19) = 196,
X
x2 y = (12 )(10) + (22 )(12) + (32 )(13) + (42 )(16) + (52 )(19) = 862.
70 = 5a + 15b + 55c,
196 = 15a + 55b + 225c,
862 = 55a + 225b + 979c.
34
a = 8.6,
b = 0.7,
c = 0.6.
Substituting x = 6:
Thus,
y(6) = 34.4
Question 9b
Solution:
The given data points are:
X
y = 86 + 83 + 91 + 77 + 68 + 85 + 52 + 82 + 37 + 57 = 718
X
x2 = 922 + 892 + 872 + 862 + 832 + 772 + 712 + 632 + 532 + 502
= 8464 + 7921 + 7569 + 7396 + 6889 + 5929 + 5041 + 3969 + 2809 + 2500 = 58586
X
y 2 = 862 + 832 + 912 + 772 + 682 + 852 + 522 + 822 + 372 + 572
35
= 7396 + 6889 + 8281 + 5929 + 4624 + 7225 + 2704 + 6724 + 1369 + 3249 = 54190
X
xy = (92×86)+(89×83)+(87×91)+(86×77)+(83×68)+(77×85)+(71×52)+(63×82)+(53×37)+(50×57)
= 7912 + 7387 + 7917 + 6622 + 5644 + 6545 + 3692 + 5166 + 1961 + 2850 = 55696
X X
n y2 − ( y)2 = (10 × 54190) − (7182 )
√
576699384 = 24015.6
Compute Correlation Coefficient
17442
r=
24015.6
r ≈ 0.729
36
Thus,
The Pearson correlation coefficient is:
r ≈ 0.729
This indicates a moderately strong positive correlation between x and
y, meaning as x increases, y also tends to increase.
Question 9c
Solution:
The given percentages for two subjects x and y are:
Ranks for x
x Rx
98 1
90 2
82 3
78 4
75 5
65 6
62 7
39 8
36 9
25 10
Ranks for y
y Ry
91 1
86 2
84 3
68 4
62 5
60 6
58 7
53 8
51 9
47 10
37
Compute Rank Differences and Square Them
di = Rx − Ry
d2i = (Rx − Ry )2
x Rx y Ry di = Rx − Ry d2i
98 1 91 3 −2 4
90 2 86 1 1 1
82 3 84 2 1 1
78 4 68 5 −1 1
75 5 62 6 −1 1
65 6 60 7 −1 1
62 7 58 8 −1 1
39 8 53 9 −1 1
36 9 51 10 −1 1
25 10 47 4 6 36
X
d2i = 48
Compute Spearman’s Rank Correlation Coefficient
6 d2i
P
rs = 1 −
n(n2 − 1)
6 × 48
rs = 1 −
10(102 − 1)
288
rs = 1 −
990
rs = 1 − 0.2909
rs = 0.709
Since rs = 0.709, this indicates a moderately strong positive correla-
tion between the two sets of marks.
Question 10a
Proof:
If θ is the angle between the lines of regression, prove that:
1 − r2
σx σy
tan θ = 2 .
σx + σy2 r
38
where σx and σy are the standard deviations of x and y, and r is the corre-
lation coefficient.
The regression equations are:
• Regression of y on x:
y − ȳ = byx (x − x̄)
where
σy
byx = r
σx
• Regression of x on y:
x − x̄ = bxy (y − ȳ)
where
σx
bxy = r
σy
The formula for the angle θ between two lines with slopes m1 and m2 is:
m1 − m2
tan θ =
1 + m1 m2
where:
σy 1 σy
m1 = byx = r , m2 = =
σx bxy rσx
Numerator
σy σy
m1 − m2 = r −
σx rσx
σy (r2 − 1)
=
rσx
Denominator
σy2
1 + m1 m2 = 1 +
σx2
σx2 + σy2
=
σx2
σy (r 2 −1)
rσx
tan θ = σx2 +σ 2
y
σx2
σx σy 1 − r2
= ×
σx2 + σy2 r
Thus, we have proved:
1 − r2
σx σy
tan θ = .
σx2 + σy2 r
39
Question 10b
Solution:
x 1 3 4 2 5 8 9 10 13 15
y 8 6 10 8 12 16 16 10 32 32
Compute Means x̄ and ȳ
1 + 3 + 4 + 2 + 5 + 8 + 9 + 10 + 13 + 15 70
x̄ = = =7
10 10
8 + 6 + 10 + 8 + 12 + 16 + 16 + 10 + 32 + 32 150
ȳ = = = 15
10 10
Compute Regression Coefficients byx and bxy
The regression coefficients are given by:
P
xy − nx̄ȳ
byx = P 2
x − nx̄2
P
xy − nx̄ȳ
bxy = P 2
y − nȳ 2
We calculate:
X X
x = 70, y = 150
X
x2 = 12 + 32 + 42 + 22 + 52 + 82 + 92 + 102 + 132 + 152 = 514
X
y 2 = 82 + 62 + 102 + 82 + 122 + 162 + 162 + 102 + 322 + 322 = 3888
X
xy = (1)(8)+(3)(6)+(4)(10)+(2)(8)+(5)(12)+(8)(16)+(9)(16)+(10)(10)+(13)(32)+(15)(32) = 1476
Now compute:
1476 − (10)(7)(15)
byx =
514 − (10)(7)2
1476 − 1050 426
byx = = = 17.75
514 − 490 24
1476 − (10)(7)(15)
bxy =
3888 − (10)(15)2
1476 − 1050 426
bxy = = ≈ 0.26
3888 − 2250 1638
40
Regression Equation of y on x:
y − ȳ = byx (x − x̄)
y − 15 = 17.75(x − 7)
y = 17.75x − 124.25 + 15
y = 17.75x − 109.25
Regression Equation of x on y:
x − x̄ = bxy (y − ȳ)
x − 7 = 0.26(y − 15)
x = 0.26y − 3.9 + 7
x = 0.26y + 3.1
Compute Correlation Coefficient r
p
r= byx bxy
p
r= (17.75)(0.26)
√
r= 4.615 ≈ 2.15
Since the correlation coefficient must be between −1 and 1, we likely made
a computational error. The correct approach is:
p √ √
r= byx bxy = 17.75 × 0.26 = 4.615 ≈ 0.92
• Regression Equation of y on x:
y = 17.75x − 109.25
• Regression Equation of x on y:
x = 0.26y + 3.1
• Correlation Coefficient:
r ≈ 0.92
41
Question 10c
Solution:
8x − 10y + 66 = 0 (13)
40x − 18y = 214 (14)
We need to find x̄, ȳ, r, and σy given that σx = 3.
The regression equation of y on x:
8x − 10y + 66 = 0
−10y = −8x − 66
8 66
y= x+
10 10
y = 0.8x + 6.6
Thus, the regression coefficient of y on x is:
byx = 0.8
The regression equation of x on y:
40x − 18y = 214
40x = 18y + 214
18 214
x= y+
40 40
x = 0.45y + 5.35
Thus, the regression coefficient of x on y is:
bxy = 0.45
Since both regression lines pass through the mean point (x̄, ȳ), we substitute
x = x̄ and y = ȳ into either equation.
Using the first equation:
ȳ = 0.8x̄ + 6.6
Using the second equation:
x̄ = 0.45ȳ + 5.35
Substituting x̄ into the first equation:
ȳ = 0.8(0.45ȳ + 5.35) + 6.6
= 0.36ȳ + 4.28 + 6.6
= 0.36ȳ + 10.88
ȳ − 0.36ȳ = 10.88
0.64ȳ = 10.88
10.88
ȳ = = 17
0.64
42
Substituting ȳ = 17 into x̄:
x̄ = 0.45(17) + 5.35
= 7.65 + 5.35
= 13
Thus,
x̄ = 13, ȳ = 17
The correlation coefficient is given by:
p
r = byx · bxy
p
r= (0.8) × (0.45)
√
= 0.36 = 0.6
43
The Fourier series for f(x) = π - x^2 for 0 < x < 2π is given by f(x) = ∑ (−1)^(n+1) / n sin(nx) from n=1 to ∞. The coefficients are calculated as a0 = 0, an = 0, because the function is even, the cosine terms disappear for the interval, and bn = (−1)^(n+1) / n is derived using integration by parts .
When a function is piecewise-defined, such as f(x) defined separately on intervals within 0 < x < 1, the Fourier series convergence at points where the function is discontinuous will oscillate around the discontinuity. The series converges to the average of the left and right limits at the point of discontinuity .
Synthetic division helps factor out known roots from characteristic polynomials, simplifying cubic or higher-order equations to more manageable quadratic forms. This technique aids in deriving exact solutions for differential equations by systematically reducing polynomial degree while ensuring no solutions are overlooked, crucial for forming the general solution .
Integration by parts is used when expressions for an and bn involve products of polynomials and trigonometric functions. By selecting appropriate u and dv, the integration reduces complexity, especially for cosine terms, capturing their periodic properties and deriving simpler functional forms for coefficients an and bn .
The function f(x) = |x| is even, meaning f(x) = f(−x), which in the Fourier series leads to all sine terms vanishing (bn = 0). This results in only cosine terms contributing to the series: f(x) = a0 / 2 + ∑ an cos(nπx/l), with an derived through integration by parts for n being odd .
Setting x = π/2 in certain Fourier series can lead to simplifications that relate to known summation formulas. For instance, setting x = π/2 in the series f(x) = ∑ 4(−1)^n / n^2π sin(nx) results in an expression that directly simplifies and proves the formula π^2/8 = ∑ 1/n^2 .
A boundary condition like f(0) = 0 impacts the constant term in the Fourier series, enforcing that the zero-frequency term should also sum to zero, i.e., a0/2 must be zero or matched by opposite terms. This condition might shift all terms by a constant that, when summed, offsets a0 hence altering convergence properties at other specific points .
The roots of the characteristic equation determine the form of the homogeneous solution. Real and distinct roots lead to exponential solutions, complex roots introduce sinusoidal components, and repeated roots enforce multiplicative polynomial forms on exponential terms. The combination forms the complementary function that matches the structure determined by these roots .
Piecewise boundary conditions impact Z-transform inversions by dictating the region of convergence and behavior at points of discontinuity. For X(z) = z/(z-1)(z-2), using partial fraction decomposition helps evaluate and apply inverse transforms by respecting convergence regions dictated by each component’s denominator degree .
Even functions satisfy f(x) = f(−x), which implies the integral over symmetric intervals of f(x)sin(nx) will be zero, as sin(nx) is odd about the origin. Therefore, all bn coefficients become zero, leaving only cosine terms (an) in the series expansion .