Fourier series 1

215
Fourier Series N. B. Vyas Department of Mathematics, Atmiya Institute of Tech. and Science, Rajkot (Guj.) - INDIA N. B. Vyas Fourier Series

description

 

Transcript of Fourier series 1

Page 1: Fourier series 1

Fourier Series

N. B. Vyas

Department of Mathematics,Atmiya Institute of Tech. and Science,

Rajkot (Guj.) - INDIA

N. B. Vyas Fourier Series

Page 2: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 3: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 4: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 5: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 6: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 7: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 8: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 9: Fourier series 1

Periodic Function

A function f(x) which satisfies the relation f(x) = f(x+ T ) forall real x and some fixed T is called Periodic function.

The smallest positive number T , for which this relation holds, iscalled the period of f(x).

If T is the period of f(x) then

f(x) = f(x+ T ) = f(x+ 2T ) = . . . = f(x+ nT )

f(x) = f(x− T ) = f(x− 2T ) = . . . = f(x− nT )

∴ f(x) = f(x± nT ), where n is a positive integer

Eg. Sinx, Cosx, Secx and Cosecx are periodic functions with period2π

tanx and cotx are periodic functions with period π.

N. B. Vyas Fourier Series

Page 10: Fourier series 1

Even & Odd functions

A function f(x) is said to be even if f(−x) = f(x).

Eg. x2 and cosx are even function.∫ c

−cf(x)dx = 2

∫ c

0

f(x)dx ; if f(x) is an even function.

A function f(x) is said to be odd if f(−x) = −f(x).Eg. x3 and sinx are odd function.∫ c

−cf(x)dx = 0 ; if f(x) is an odd function.

N. B. Vyas Fourier Series

Page 11: Fourier series 1

Even & Odd functions

A function f(x) is said to be even if f(−x) = f(x).

Eg. x2 and cosx are even function.

∫ c

−cf(x)dx = 2

∫ c

0

f(x)dx ; if f(x) is an even function.

A function f(x) is said to be odd if f(−x) = −f(x).Eg. x3 and sinx are odd function.∫ c

−cf(x)dx = 0 ; if f(x) is an odd function.

N. B. Vyas Fourier Series

Page 12: Fourier series 1

Even & Odd functions

A function f(x) is said to be even if f(−x) = f(x).

Eg. x2 and cosx are even function.∫ c

−cf(x)dx = 2

∫ c

0

f(x)dx ; if f(x) is an even function.

A function f(x) is said to be odd if f(−x) = −f(x).Eg. x3 and sinx are odd function.∫ c

−cf(x)dx = 0 ; if f(x) is an odd function.

N. B. Vyas Fourier Series

Page 13: Fourier series 1

Even & Odd functions

A function f(x) is said to be even if f(−x) = f(x).

Eg. x2 and cosx are even function.∫ c

−cf(x)dx = 2

∫ c

0

f(x)dx ; if f(x) is an even function.

A function f(x) is said to be odd if f(−x) = −f(x).

Eg. x3 and sinx are odd function.∫ c

−cf(x)dx = 0 ; if f(x) is an odd function.

N. B. Vyas Fourier Series

Page 14: Fourier series 1

Even & Odd functions

A function f(x) is said to be even if f(−x) = f(x).

Eg. x2 and cosx are even function.∫ c

−cf(x)dx = 2

∫ c

0

f(x)dx ; if f(x) is an even function.

A function f(x) is said to be odd if f(−x) = −f(x).Eg. x3 and sinx are odd function.

∫ c

−cf(x)dx = 0 ; if f(x) is an odd function.

N. B. Vyas Fourier Series

Page 15: Fourier series 1

Even & Odd functions

A function f(x) is said to be even if f(−x) = f(x).

Eg. x2 and cosx are even function.∫ c

−cf(x)dx = 2

∫ c

0

f(x)dx ; if f(x) is an even function.

A function f(x) is said to be odd if f(−x) = −f(x).Eg. x3 and sinx are odd function.∫ c

−cf(x)dx = 0 ; if f(x) is an odd function.

N. B. Vyas Fourier Series

Page 16: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c

∫eax cos bx dx =

eax

a2 + b2(a cosbx+ b sinbx) + c∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 17: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c∫

eax cos bx dx =eax

a2 + b2(a cosbx+ b sinbx) + c

∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 18: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c∫

eax cos bx dx =eax

a2 + b2(a cosbx+ b sinbx) + c∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0

∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 19: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c∫

eax cos bx dx =eax

a2 + b2(a cosbx+ b sinbx) + c∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0

∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 20: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c∫

eax cos bx dx =eax

a2 + b2(a cosbx+ b sinbx) + c∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 21: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c∫

eax cos bx dx =eax

a2 + b2(a cosbx+ b sinbx) + c∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 22: Fourier series 1

Some Important Formula∫eax sin bx dx =

eax

a2 + b2(a sin bx− b cos bx) + c∫

eax cos bx dx =eax

a2 + b2(a cosbx+ b sinbx) + c∫ c+2π

c

sin nx dx = −[cos nx

n

]c+2π

c= 0, n 6= 0∫ c+2π

c

cos nx dx =

[sin nx

n

]c+2π

c

= 0, n 6= 0∫ c+2π

c

sinmx cos nx dx =1

2

∫ c+2π

c

2sinmx cos nx dx

=1

2

∫ c+2π

c

[sin (m+ n)x+ sin (m− n)x] dx

= −1

2

[cos (m+ n)x

m+ n+cos (m− n)x

m− n

]c+2π

c

= 0, n 6= 0

N. B. Vyas Fourier Series

Page 23: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 24: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 25: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx

= 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 26: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx

= 0, n 6= 0∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 27: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0

∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 28: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx

= π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 29: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx = π

∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 30: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx

= π

N. B. Vyas Fourier Series

Page 31: Fourier series 1

Some Important Formula∫ c+2π

c

cosmx cos nx dx = 12

∫ c+2π

c

2cosmx cos nx dx

= 12

∫ c+2π

c

[cos (m+ n)x+ cos (m− n)x] dx

= 12

[sin (m+ n)x

m+ n+sin (m− n)x

m− n

]c+2π

c

= 0,m 6= n∫ c+2π

c

sinmx sin nx dx = 0∫ c+2π

c

sin nx cos nx dx = 0, n 6= 0∫ c+2π

c

cos2 nx dx = π∫ c+2π

c

sin2 nx dx = π

N. B. Vyas Fourier Series

Page 32: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 33: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 34: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)

= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 35: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 36: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0

and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 37: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 38: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n

and cos(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 39: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 40: Fourier series 1

Some Important Formula

(Leibnitz’s Rule)To integrate the product of twofunctions, one of which is power of x . We apply thegeneralized rule of integration by parts∫u vdx = u v1 − u′ v2 + u′′ v3 − u′′′ v4 + . . .

Eg.

∫x3 e−2x dx

= x3(e−2x

−2

)− 3x2

(e−2x

(−2)2

)+ 6x

(e−2x

(−2)3

)− 6

(e−2x

(−2)4

)= −1

8e−2x (4x3 + 6x2 + 6x+ 3)

sin nπ = 0 and cos nπ = (−1)n

sin(n+ 1

2

)π = (−1)n and cos

(n+ 1

2

)π = 0

where n is integer.

N. B. Vyas Fourier Series

Page 41: Fourier series 1

Fourier Series

The Fourier series for the function f(x) in the intervalc < x < c+ 2π is given by

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ c+2π

c

f(x) dx

an =1

π

∫ c+2π

c

f(x) cos nx dx

bn =1

π

∫ c+2π

c

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 42: Fourier series 1

Fourier Series

The Fourier series for the function f(x) in the intervalc < x < c+ 2π is given by

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ c+2π

c

f(x) dx

an =1

π

∫ c+2π

c

f(x) cos nx dx

bn =1

π

∫ c+2π

c

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 43: Fourier series 1

Fourier Series

The Fourier series for the function f(x) in the intervalc < x < c+ 2π is given by

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ c+2π

c

f(x) dx

an =1

π

∫ c+2π

c

f(x) cos nx dx

bn =1

π

∫ c+2π

c

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 44: Fourier series 1

Fourier Series

The Fourier series for the function f(x) in the intervalc < x < c+ 2π is given by

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ c+2π

c

f(x) dx

an =1

π

∫ c+2π

c

f(x) cos nx dx

bn =1

π

∫ c+2π

c

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 45: Fourier series 1

Fourier Series

The Fourier series for the function f(x) in the intervalc < x < c+ 2π is given by

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ c+2π

c

f(x) dx

an =1

π

∫ c+2π

c

f(x) cos nx dx

bn =1

π

∫ c+2π

c

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 46: Fourier series 1

Fourier Series

Corollary 1: If c = 0, the interval becomes 0 < x < 2π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 47: Fourier series 1

Fourier Series

Corollary 1: If c = 0, the interval becomes 0 < x < 2π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 48: Fourier series 1

Fourier Series

Corollary 1: If c = 0, the interval becomes 0 < x < 2π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 49: Fourier series 1

Fourier Series

Corollary 1: If c = 0, the interval becomes 0 < x < 2π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 50: Fourier series 1

Fourier Series

Corollary 1: If c = 0, the interval becomes 0 < x < 2π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 51: Fourier series 1

Fourier Series

Corollary 2: If c = −π, the interval becomes −π << π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 52: Fourier series 1

Fourier Series

Corollary 2: If c = −π, the interval becomes −π << π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 53: Fourier series 1

Fourier Series

Corollary 2: If c = −π, the interval becomes −π << π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 54: Fourier series 1

Fourier Series

Corollary 2: If c = −π, the interval becomes −π << π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 55: Fourier series 1

Fourier Series

Corollary 2: If c = −π, the interval becomes −π << π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 56: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 57: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 58: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 59: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 60: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 61: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 62: Fourier series 1

Fourier Series

Special Case 1: If the interval is −c < x < c and f(x) is anodd function i.e. f(−x) = −f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx = 0

an =1

π

∫ π

−πf(x) cos nx dx = 0

because cos nx is an even function , f(x)cos nx is an oddfunction

bn =1

π

∫ π

−πf(x) sin nx dx =

2

π

∫ π

0

f(x) sin nx dx

because sin nx is an odd function , f(x)sin nx is an evenfunction

N. B. Vyas Fourier Series

Page 63: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 64: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 65: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 66: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 67: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 68: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 69: Fourier series 1

Fourier Series

Special Case 2: If the interval is −c < x < c and f(x) is aneven function i.e. f(−x) = f(x). Let C = π

f(x) =a02

+∞∑n=1

an cos nx+∞∑n=1

bn sin nx

where a0 =1

π

∫ π

−πf(x) dx =

2

π

∫ π

0

f(x) dx

an =1

π

∫ π

−πf(x) cos nx dx =

2

π

∫ π

0

f(x) cos nx dx

because cos nx is an even function , f(x)cos nx is an evenfunction

bn =1

π

∫ π

−πf(x) sin nx dx = 0

because sin nx is an odd function , f(x)sin nx is an oddfunction

N. B. Vyas Fourier Series

Page 70: Fourier series 1

Example

Ex. Obtain Fourier series of f(x) =

(π − x2

)2

in the

interval 0 ≤ x ≤ 2π. Hence deduce thatπ2

12=

1

12− 1

22+

1

32− . . .

N. B. Vyas Fourier Series

Page 71: Fourier series 1

Example

Ex. Obtain Fourier series of f(x) =

(π − x2

)2

in the

interval 0 ≤ x ≤ 2π. Hence deduce thatπ2

12=

1

12− 1

22+

1

32− . . .

N. B. Vyas Fourier Series

Page 72: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 73: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 74: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 75: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 76: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 77: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 78: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

(π − x)2

4dx

=1

[(π − x)3

(−3)

]2π0

= − 1

12π(−π3 − π3)

=π2

6

N. B. Vyas Fourier Series

Page 79: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

(π − x)2

4dx

=1

[(π − x)3

(−3)

]2π0

= − 1

12π(−π3 − π3)

=π2

6

N. B. Vyas Fourier Series

Page 80: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

(π − x)2

4dx

=1

[(π − x)3

(−3)

]2π0

= − 1

12π(−π3 − π3)

=π2

6

N. B. Vyas Fourier Series

Page 81: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

(π − x)2

4dx

=1

[(π − x)3

(−3)

]2π0

= − 1

12π(−π3 − π3)

=π2

6

N. B. Vyas Fourier Series

Page 82: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

(π − x)2

4cos nx dx

=1

n2

N. B. Vyas Fourier Series

Page 83: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

(π − x)2

4cos nx dx

=1

n2

N. B. Vyas Fourier Series

Page 84: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

(π − x)2

4cos nx dx

=1

n2

N. B. Vyas Fourier Series

Page 85: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

bn =1

π

∫ 2π

0

(π − x)2

4sin nx dx

= 0

N. B. Vyas Fourier Series

Page 86: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

bn =1

π

∫ 2π

0

(π − x)2

4sin nx dx

= 0

N. B. Vyas Fourier Series

Page 87: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

bn =1

π

∫ 2π

0

(π − x)2

4sin nx dx

= 0

N. B. Vyas Fourier Series

Page 88: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π]

(π − x2

)2

=π2

12+∞∑n=1

1

n2cos nx

=π2

12+

1

12cos x+

1

22cos 2x+

1

32cos 3x+ . . .

Putting x = π, we get

0 =π2

12− 1

12+

1

22− 1

32+

1

42− . . .

π2

12=

1

12− 1

22+

1

32− 1

42+ . . .

N. B. Vyas Fourier Series

Page 89: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π](π − x2

)2

=π2

12+∞∑n=1

1

n2cos nx

=π2

12+

1

12cos x+

1

22cos 2x+

1

32cos 3x+ . . .

Putting x = π, we get

0 =π2

12− 1

12+

1

22− 1

32+

1

42− . . .

π2

12=

1

12− 1

22+

1

32− 1

42+ . . .

N. B. Vyas Fourier Series

Page 90: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π](π − x2

)2

=π2

12+∞∑n=1

1

n2cos nx

=π2

12+

1

12cos x+

1

22cos 2x+

1

32cos 3x+ . . .

Putting x = π, we get

0 =π2

12− 1

12+

1

22− 1

32+

1

42− . . .

π2

12=

1

12− 1

22+

1

32− 1

42+ . . .

N. B. Vyas Fourier Series

Page 91: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π](π − x2

)2

=π2

12+∞∑n=1

1

n2cos nx

=π2

12+

1

12cos x+

1

22cos 2x+

1

32cos 3x+ . . .

Putting x = π, we get

0 =π2

12− 1

12+

1

22− 1

32+

1

42− . . .

π2

12=

1

12− 1

22+

1

32− 1

42+ . . .

N. B. Vyas Fourier Series

Page 92: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π](π − x2

)2

=π2

12+∞∑n=1

1

n2cos nx

=π2

12+

1

12cos x+

1

22cos 2x+

1

32cos 3x+ . . .

Putting x = π, we get

0 =π2

12− 1

12+

1

22− 1

32+

1

42− . . .

π2

12=

1

12− 1

22+

1

32− 1

42+ . . .

N. B. Vyas Fourier Series

Page 93: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π](π − x2

)2

=π2

12+∞∑n=1

1

n2cos nx

=π2

12+

1

12cos x+

1

22cos 2x+

1

32cos 3x+ . . .

Putting x = π, we get

0 =π2

12− 1

12+

1

22− 1

32+

1

42− . . .

π2

12=

1

12− 1

22+

1

32− 1

42+ . . .

N. B. Vyas Fourier Series

Page 94: Fourier series 1

Example

Ex. Expand in a Fourier series the function f(x) = xin the interval 0 ≤ x ≤ 2π.

N. B. Vyas Fourier Series

Page 95: Fourier series 1

Example

Ex. Expand in a Fourier series the function f(x) = xin the interval 0 ≤ x ≤ 2π.

N. B. Vyas Fourier Series

Page 96: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 97: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 98: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 99: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 100: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 101: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 102: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x dx

=1

[x2

2

]2π0

= 2π

N. B. Vyas Fourier Series

Page 103: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x dx

=1

[x2

2

]2π0

= 2π

N. B. Vyas Fourier Series

Page 104: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x dx

=1

[x2

2

]2π0

= 2π

N. B. Vyas Fourier Series

Page 105: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x dx

=1

[x2

2

]2π0

= 2π

N. B. Vyas Fourier Series

Page 106: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x cos nx dx[x

(sin nx

n

)−(−cos nx

n

)]2π0

= 0

N. B. Vyas Fourier Series

Page 107: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x cos nx dx

[x

(sin nx

n

)−(−cos nx

n

)]2π0

= 0

N. B. Vyas Fourier Series

Page 108: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x cos nx dx[x

(sin nx

n

)−(−cos nx

n

)]2π0

= 0

N. B. Vyas Fourier Series

Page 109: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x cos nx dx[x

(sin nx

n

)−(−cos nx

n

)]2π0

= 0

N. B. Vyas Fourier Series

Page 110: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

bn =1

π

∫ 2π

0

x sin nx dx

=−2n

N. B. Vyas Fourier Series

Page 111: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

bn =1

π

∫ 2π

0

x sin nx dx

=−2n

N. B. Vyas Fourier Series

Page 112: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

bn =1

π

∫ 2π

0

x sin nx dx

=−2n

N. B. Vyas Fourier Series

Page 113: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π]

f(x) =2π

2+ 0 +

∞∑n=1

−2nsin nx

= π −∞∑n=1

sin nx

n

N. B. Vyas Fourier Series

Page 114: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π]

f(x) =2π

2+ 0 +

∞∑n=1

−2nsin nx

= π −∞∑n=1

sin nx

n

N. B. Vyas Fourier Series

Page 115: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π]

f(x) =2π

2+ 0 +

∞∑n=1

−2nsin nx

= π −∞∑n=1

sin nx

n

N. B. Vyas Fourier Series

Page 116: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval [0, 2π]

f(x) =2π

2+ 0 +

∞∑n=1

−2nsin nx

= π −∞∑n=1

sin nx

n

N. B. Vyas Fourier Series

Page 117: Fourier series 1

Example

Ex. Determine the Fourier series expansion of thefunction f(x) = xsin x in the interval 0 ≤ x ≤ 2π.

N. B. Vyas Fourier Series

Page 118: Fourier series 1

Example

Ex. Determine the Fourier series expansion of thefunction f(x) = xsin x in the interval 0 ≤ x ≤ 2π.

N. B. Vyas Fourier Series

Page 119: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 120: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 121: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 122: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 123: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 124: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ 2π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 125: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x sin x dx

=1

π[−x cos x+ sin x]2π0

=1

π(−2 π cos 2π + sin 2π − 0 + sin 0)

a0 =−2ππ

= −2

N. B. Vyas Fourier Series

Page 126: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x sin x dx

=1

π[−x cos x+ sin x]2π0

=1

π(−2 π cos 2π + sin 2π − 0 + sin 0)

a0 =−2ππ

= −2

N. B. Vyas Fourier Series

Page 127: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x sin x dx

=1

π[−x cos x+ sin x]2π0

=1

π(−2 π cos 2π + sin 2π − 0 + sin 0)

a0 =−2ππ

= −2

N. B. Vyas Fourier Series

Page 128: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x sin x dx

=1

π[−x cos x+ sin x]2π0

=1

π(−2 π cos 2π + sin 2π − 0 + sin 0)

a0 =−2ππ

= −2

N. B. Vyas Fourier Series

Page 129: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

a0 =1

π

∫ 2π

0

x sin x dx

=1

π[−x cos x+ sin x]2π0

=1

π(−2 π cos 2π + sin 2π − 0 + sin 0)

a0 =−2ππ

= −2

N. B. Vyas Fourier Series

Page 130: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x sin x cos nx dx

=1

∫ 2π

0

x (2 sin x cos nx) dx

=1

∫ 2π

0

x (sin (n+ 1)x − sin (n− 1)x) dx

=1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

N. B. Vyas Fourier Series

Page 131: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x sin x cos nx dx

=1

∫ 2π

0

x (2 sin x cos nx) dx

=1

∫ 2π

0

x (sin (n+ 1)x − sin (n− 1)x) dx

=1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

N. B. Vyas Fourier Series

Page 132: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x sin x cos nx dx

=1

∫ 2π

0

x (2 sin x cos nx) dx

=1

∫ 2π

0

x (sin (n+ 1)x − sin (n− 1)x) dx

=1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

N. B. Vyas Fourier Series

Page 133: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x sin x cos nx dx

=1

∫ 2π

0

x (2 sin x cos nx) dx

=1

∫ 2π

0

x (sin (n+ 1)x − sin (n− 1)x) dx

=1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

N. B. Vyas Fourier Series

Page 134: Fourier series 1

Example

Step 3. an =1

π

∫ 2π

0

f(x) cos nx dx

an =1

π

∫ 2π

0

x sin x cos nx dx

=1

∫ 2π

0

x (2 sin x cos nx) dx

=1

∫ 2π

0

x (sin (n+ 1)x − sin (n− 1)x) dx

=1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

N. B. Vyas Fourier Series

Page 135: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n = 1

∴ a1 =1

∫ 2π

0

x sin 2x dx

=1

[−x(cos 2x

2

)+sin 2x

4

]2π0

= −1

2

N. B. Vyas Fourier Series

Page 136: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n = 1

∴ a1 =1

∫ 2π

0

x sin 2x dx

=1

[−x(cos 2x

2

)+sin 2x

4

]2π0

= −1

2

N. B. Vyas Fourier Series

Page 137: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n = 1

∴ a1 =1

∫ 2π

0

x sin 2x dx

=1

[−x(cos 2x

2

)+sin 2x

4

]2π0

= −1

2

N. B. Vyas Fourier Series

Page 138: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n = 1

∴ a1 =1

∫ 2π

0

x sin 2x dx

=1

[−x(cos 2x

2

)+sin 2x

4

]2π0

= −1

2

N. B. Vyas Fourier Series

Page 139: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n = 1

∴ a1 =1

∫ 2π

0

x sin 2x dx

=1

[−x(cos 2x

2

)+sin 2x

4

]2π0

= −1

2

N. B. Vyas Fourier Series

Page 140: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n 6= 1

∴ an =1

[x

(−cos (n+ 1)x

n+ 1

)−(−sin (n+ 1)x

(n+ 1)2

)]2π0

− 1

[x

(−cos (n− 1)x

n− 1

)−(−sin (n− 1)x

(n− 1)2

)]2π0

=1

[− 2π

n+ 1+ 0 +

n− 1− 0

]=

2

n2 − 1

N. B. Vyas Fourier Series

Page 141: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n 6= 1

∴ an =1

[x

(−cos (n+ 1)x

n+ 1

)−(−sin (n+ 1)x

(n+ 1)2

)]2π0

− 1

[x

(−cos (n− 1)x

n− 1

)−(−sin (n− 1)x

(n− 1)2

)]2π0

=1

[− 2π

n+ 1+ 0 +

n− 1− 0

]=

2

n2 − 1

N. B. Vyas Fourier Series

Page 142: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n 6= 1

∴ an =1

[x

(−cos (n+ 1)x

n+ 1

)−(−sin (n+ 1)x

(n+ 1)2

)]2π0

− 1

[x

(−cos (n− 1)x

n− 1

)−(−sin (n− 1)x

(n− 1)2

)]2π0

=1

[− 2π

n+ 1+ 0 +

n− 1− 0

]=

2

n2 − 1

N. B. Vyas Fourier Series

Page 143: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n 6= 1

∴ an =1

[x

(−cos (n+ 1)x

n+ 1

)−(−sin (n+ 1)x

(n+ 1)2

)]2π0

− 1

[x

(−cos (n− 1)x

n− 1

)−(−sin (n− 1)x

(n− 1)2

)]2π0

=1

[− 2π

n+ 1+ 0 +

n− 1− 0

]=

2

n2 − 1

N. B. Vyas Fourier Series

Page 144: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n 6= 1

∴ an =1

[x

(−cos (n+ 1)x

n+ 1

)−(−sin (n+ 1)x

(n+ 1)2

)]2π0

− 1

[x

(−cos (n− 1)x

n− 1

)−(−sin (n− 1)x

(n− 1)2

)]2π0

=1

[− 2π

n+ 1+ 0 +

n− 1− 0

]

=2

n2 − 1

N. B. Vyas Fourier Series

Page 145: Fourier series 1

Example

an =1

∫ 2π

0

x sin (n+ 1)x dx− 1

∫ 2π

0

x sin (n− 1)x dx

If n 6= 1

∴ an =1

[x

(−cos (n+ 1)x

n+ 1

)−(−sin (n+ 1)x

(n+ 1)2

)]2π0

− 1

[x

(−cos (n− 1)x

n− 1

)−(−sin (n− 1)x

(n− 1)2

)]2π0

=1

[− 2π

n+ 1+ 0 +

n− 1− 0

]=

2

n2 − 1

N. B. Vyas Fourier Series

Page 146: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

∫ 2π

0

x sin x sin nx dx

=1

∫ 2π

0

x (2sin nx sin x) dx

=1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

N. B. Vyas Fourier Series

Page 147: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

∫ 2π

0

x sin x sin nx dx

=1

∫ 2π

0

x (2sin nx sin x) dx

=1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

N. B. Vyas Fourier Series

Page 148: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

∫ 2π

0

x sin x sin nx dx

=1

∫ 2π

0

x (2sin nx sin x) dx

=1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

N. B. Vyas Fourier Series

Page 149: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

∫ 2π

0

x sin x sin nx dx

=1

∫ 2π

0

x (2sin nx sin x) dx

=1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

N. B. Vyas Fourier Series

Page 150: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n = 1

∴ b1 =1

∫ 2π

0

(−x cos 2x) dx+ 1

∫ 2π

0

x dx

=1

[x

(−sin 2x

2

)− cos 2x

4+x2

2

]2π0

b1 = π

N. B. Vyas Fourier Series

Page 151: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n = 1

∴ b1 =1

∫ 2π

0

(−x cos 2x) dx+ 1

∫ 2π

0

x dx

=1

[x

(−sin 2x

2

)− cos 2x

4+x2

2

]2π0

b1 = π

N. B. Vyas Fourier Series

Page 152: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n = 1

∴ b1 =1

∫ 2π

0

(−x cos 2x) dx+ 1

∫ 2π

0

x dx

=1

[x

(−sin 2x

2

)− cos 2x

4+x2

2

]2π0

b1 = π

N. B. Vyas Fourier Series

Page 153: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n = 1

∴ b1 =1

∫ 2π

0

(−x cos 2x) dx+ 1

∫ 2π

0

x dx

=1

[x

(−sin 2x

2

)− cos 2x

4+x2

2

]2π0

b1 = π

N. B. Vyas Fourier Series

Page 154: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n = 1

∴ b1 =1

∫ 2π

0

(−x cos 2x) dx+ 1

∫ 2π

0

x dx

=1

[x

(−sin 2x

2

)− cos 2x

4+x2

2

]2π0

b1 = π

N. B. Vyas Fourier Series

Page 155: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n 6= 1

∴ bn =1

[x

(−sin (n+ 1)x

n+ 1

)−(cos (n+ 1)x

(n+ 1)2

)]2π0

+1

[x

(sin (n− 1)x

n− 1

)+

(cos (n− 1)x

(n− 1)2

)]2π0

= 0

N. B. Vyas Fourier Series

Page 156: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n 6= 1

∴ bn =1

[x

(−sin (n+ 1)x

n+ 1

)−(cos (n+ 1)x

(n+ 1)2

)]2π0

+1

[x

(sin (n− 1)x

n− 1

)+

(cos (n− 1)x

(n− 1)2

)]2π0

= 0

N. B. Vyas Fourier Series

Page 157: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n 6= 1

∴ bn =1

[x

(−sin (n+ 1)x

n+ 1

)−(cos (n+ 1)x

(n+ 1)2

)]2π0

+1

[x

(sin (n− 1)x

n− 1

)+

(cos (n− 1)x

(n− 1)2

)]2π0

= 0

N. B. Vyas Fourier Series

Page 158: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n 6= 1

∴ bn =1

[x

(−sin (n+ 1)x

n+ 1

)−(cos (n+ 1)x

(n+ 1)2

)]2π0

+1

[x

(sin (n− 1)x

n− 1

)+

(cos (n− 1)x

(n− 1)2

)]2π0

= 0

N. B. Vyas Fourier Series

Page 159: Fourier series 1

Example

bn =1

∫ 2π

0

x (−cos (n+ 1)x + cos (n− 1)x) dx

If n 6= 1

∴ bn =1

[x

(−sin (n+ 1)x

n+ 1

)−(cos (n+ 1)x

(n+ 1)2

)]2π0

+1

[x

(sin (n− 1)x

n− 1

)+

(cos (n− 1)x

(n− 1)2

)]2π0

= 0

N. B. Vyas Fourier Series

Page 160: Fourier series 1

Example

Step 5. Substituting values of a0, a1, an(n > 1), b1 andbn(n > 1) in (1), we get the required Fourier series of f(x) inthe interval [0, 2π]

f(x) =−22

+∞∑n=1

(an cos nx+ bn sin nx)

N. B. Vyas Fourier Series

Page 161: Fourier series 1

Example

Step 5. Substituting values of a0, a1, an(n > 1), b1 andbn(n > 1) in (1), we get the required Fourier series of f(x) inthe interval [0, 2π]

f(x) =−22

+∞∑n=1

(an cos nx+ bn sin nx)

N. B. Vyas Fourier Series

Page 162: Fourier series 1

Example

Step 5. Substituting values of a0, a1, an(n > 1), b1 andbn(n > 1) in (1), we get the required Fourier series of f(x) inthe interval [0, 2π]

f(x) =−22

+∞∑n=1

(an cos nx+ bn sin nx)

N. B. Vyas Fourier Series

Page 163: Fourier series 1

Example

Ex. Find the Fourier series for the periodic function

f(x)= −π;−π < x < 0= x; 0 < x < π

N. B. Vyas Fourier Series

Page 164: Fourier series 1

Example

Ex. Find the Fourier series for the periodic function

f(x)= −π;−π < x < 0= x; 0 < x < π

N. B. Vyas Fourier Series

Page 165: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 166: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 167: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 168: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 169: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 170: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ π

−πf(x) dx

an =1

π

∫ π

−πf(x) cos nx dx

bn =1

π

∫ π

−πf(x) sin nx dx

N. B. Vyas Fourier Series

Page 171: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ π

−πf(x) dx

=1

π

[∫ 0

−πf(x) dx+

∫ π

0

f(x) dx

]=

1

π

[∫ 0

−π(−π) dx+

∫ π

0

x dx

]= −π

2

N. B. Vyas Fourier Series

Page 172: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ π

−πf(x) dx

=1

π

[∫ 0

−πf(x) dx+

∫ π

0

f(x) dx

]

=1

π

[∫ 0

−π(−π) dx+

∫ π

0

x dx

]= −π

2

N. B. Vyas Fourier Series

Page 173: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ π

−πf(x) dx

=1

π

[∫ 0

−πf(x) dx+

∫ π

0

f(x) dx

]=

1

π

[∫ 0

−π(−π) dx+

∫ π

0

x dx

]

= −π2

N. B. Vyas Fourier Series

Page 174: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ π

−πf(x) dx

=1

π

[∫ 0

−πf(x) dx+

∫ π

0

f(x) dx

]=

1

π

[∫ 0

−π(−π) dx+

∫ π

0

x dx

]= −π

2

N. B. Vyas Fourier Series

Page 175: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ π

−πf(x) dx

=1

π

[∫ 0

−πf(x) dx+

∫ π

0

f(x) dx

]=

1

π

[∫ 0

−π(−π) dx+

∫ π

0

x dx

]= −π

2

N. B. Vyas Fourier Series

Page 176: Fourier series 1

Example

Step 3. an =1

π

∫ 0

−πf(x) cos nx dx+

∫ π

0

f(x) cos nx dx

=1

π

[∫ 0

−π(−π) cos nx dx+

∫ π

0

x cos nx dx

]=

1

π

[−π[sin nx

n

]0−π

+

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

]

=(−1)n − 1

πn2

N. B. Vyas Fourier Series

Page 177: Fourier series 1

Example

Step 3. an =1

π

∫ 0

−πf(x) cos nx dx+

∫ π

0

f(x) cos nx dx

=1

π

[∫ 0

−π(−π) cos nx dx+

∫ π

0

x cos nx dx

]

=1

π

[−π[sin nx

n

]0−π

+

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

]

=(−1)n − 1

πn2

N. B. Vyas Fourier Series

Page 178: Fourier series 1

Example

Step 3. an =1

π

∫ 0

−πf(x) cos nx dx+

∫ π

0

f(x) cos nx dx

=1

π

[∫ 0

−π(−π) cos nx dx+

∫ π

0

x cos nx dx

]=

1

π

[−π[sin nx

n

]0−π

+

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

]

=(−1)n − 1

πn2

N. B. Vyas Fourier Series

Page 179: Fourier series 1

Example

Step 3. an =1

π

∫ 0

−πf(x) cos nx dx+

∫ π

0

f(x) cos nx dx

=1

π

[∫ 0

−π(−π) cos nx dx+

∫ π

0

x cos nx dx

]=

1

π

[−π[sin nx

n

]0−π

+

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

]

=(−1)n − 1

πn2

N. B. Vyas Fourier Series

Page 180: Fourier series 1

Example

Step 3. an =1

π

∫ 0

−πf(x) cos nx dx+

∫ π

0

f(x) cos nx dx

=1

π

[∫ 0

−π(−π) cos nx dx+

∫ π

0

x cos nx dx

]=

1

π

[−π[sin nx

n

]0−π

+

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

]

=(−1)n − 1

πn2

N. B. Vyas Fourier Series

Page 181: Fourier series 1

Example

Step 4. bn =1

π

[∫ 0

−πf(x) sin nx dx+

∫ π

0

f(x) sin nx dx

]

=1

π

[∫ 0

−π(−π) sin nx dx+

∫ π

0

x sin nx dx

]=

1

π

[−π[−cosnx

n

]0−π

+

[x

(−cos nx

n

)−(−sin nxn2

)]π0

]

=1− 2(−1)n

n

N. B. Vyas Fourier Series

Page 182: Fourier series 1

Example

Step 4. bn =1

π

[∫ 0

−πf(x) sin nx dx+

∫ π

0

f(x) sin nx dx

]=

1

π

[∫ 0

−π(−π) sin nx dx+

∫ π

0

x sin nx dx

]

=1

π

[−π[−cosnx

n

]0−π

+

[x

(−cos nx

n

)−(−sin nxn2

)]π0

]

=1− 2(−1)n

n

N. B. Vyas Fourier Series

Page 183: Fourier series 1

Example

Step 4. bn =1

π

[∫ 0

−πf(x) sin nx dx+

∫ π

0

f(x) sin nx dx

]=

1

π

[∫ 0

−π(−π) sin nx dx+

∫ π

0

x sin nx dx

]=

1

π

[−π[−cosnx

n

]0−π

+

[x

(−cos nx

n

)−(−sin nxn2

)]π0

]

=1− 2(−1)n

n

N. B. Vyas Fourier Series

Page 184: Fourier series 1

Example

Step 4. bn =1

π

[∫ 0

−πf(x) sin nx dx+

∫ π

0

f(x) sin nx dx

]=

1

π

[∫ 0

−π(−π) sin nx dx+

∫ π

0

x sin nx dx

]=

1

π

[−π[−cosnx

n

]0−π

+

[x

(−cos nx

n

)−(−sin nxn2

)]π0

]

=1− 2(−1)n

n

N. B. Vyas Fourier Series

Page 185: Fourier series 1

Example

Step 4. bn =1

π

[∫ 0

−πf(x) sin nx dx+

∫ π

0

f(x) sin nx dx

]=

1

π

[∫ 0

−π(−π) sin nx dx+

∫ π

0

x sin nx dx

]=

1

π

[−π[−cosnx

n

]0−π

+

[x

(−cos nx

n

)−(−sin nxn2

)]π0

]

=1− 2(−1)n

n

N. B. Vyas Fourier Series

Page 186: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval (−π, π)

f(x) =−π4

+∞∑n=1

(an cos nx+ bn sin nx)

=−π4

+∞∑n=1

((−1)n − 1

πn2

)cos nx+

∞∑n=1

(1− 2(−1)n

n

)sin nx

N. B. Vyas Fourier Series

Page 187: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval (−π, π)

f(x) =−π4

+∞∑n=1

(an cos nx+ bn sin nx)

=−π4

+∞∑n=1

((−1)n − 1

πn2

)cos nx+

∞∑n=1

(1− 2(−1)n

n

)sin nx

N. B. Vyas Fourier Series

Page 188: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval (−π, π)

f(x) =−π4

+∞∑n=1

(an cos nx+ bn sin nx)

=−π4

+∞∑n=1

((−1)n − 1

πn2

)cos nx+

∞∑n=1

(1− 2(−1)n

n

)sin nx

N. B. Vyas Fourier Series

Page 189: Fourier series 1

Example

Step 5. Substituting values of a0, an and bn in (1), we get therequired Fourier series of f(x) in the interval (−π, π)

f(x) =−π4

+∞∑n=1

(an cos nx+ bn sin nx)

=−π4

+∞∑n=1

((−1)n − 1

πn2

)cos nx+

∞∑n=1

(1− 2(−1)n

n

)sin nx

N. B. Vyas Fourier Series

Page 190: Fourier series 1

Example

Ex. Find the Fourier series for the periodic function

f(x)= 2;−π < x < 0= 1; 0 < x < π

N. B. Vyas Fourier Series

Page 191: Fourier series 1

Example

Ex. Find the Fourier series for the periodic function

f(x)= 2;−π < x < 0= 1; 0 < x < π

N. B. Vyas Fourier Series

Page 192: Fourier series 1

Example

Ex. Find the Fourier series for the periodic function

f(x)= −k;−π < x < 0= k; 0 < x < π

Hence deduce that 1− 1

3+

1

5− 1

7+ . . . =

π

4

N. B. Vyas Fourier Series

Page 193: Fourier series 1

Example

Ex. Find the Fourier series for the periodic function

f(x)= −k;−π < x < 0= k; 0 < x < π

Hence deduce that 1− 1

3+

1

5− 1

7+ . . . =

π

4

N. B. Vyas Fourier Series

Page 194: Fourier series 1

Example

Ex. Find the Fourier series of the function

f(x)= x; 0 ≤ x < π= 2π ;x = π= 2π − x ; π < x < 2π

Hence deduce that3π2

8=

1

12+

1

32+

1

52+ . . .

N. B. Vyas Fourier Series

Page 195: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 196: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 197: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 198: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 199: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 200: Fourier series 1

Example

Sol. Step 1. The Fourier series of f(x) is given by

f(x) =a02

+∞∑n=1

(an cos nx+ bn sin nx) . . . (1)

where a0 =1

π

∫ 2π

0

f(x) dx

an =1

π

∫ π

0

f(x) cos nx dx

bn =1

π

∫ 2π

0

f(x) sin nx dx

N. B. Vyas Fourier Series

Page 201: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

=1

π

[∫ π

0

x dx+

∫ 2π

π

(2π − x) dx]

=1

π

[(x2

2

)π0

+

(2πx− x2

2

)2π

π

]= π

N. B. Vyas Fourier Series

Page 202: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

=1

π

[∫ π

0

x dx+

∫ 2π

π

(2π − x) dx]

=1

π

[(x2

2

)π0

+

(2πx− x2

2

)2π

π

]= π

N. B. Vyas Fourier Series

Page 203: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

=1

π

[∫ π

0

x dx+

∫ 2π

π

(2π − x) dx]

=1

π

[(x2

2

)π0

+

(2πx− x2

2

)2π

π

]

= π

N. B. Vyas Fourier Series

Page 204: Fourier series 1

Example

Step 2. Now a0 =1

π

∫ 2π

0

f(x) dx

=1

π

[∫ π

0

x dx+

∫ 2π

π

(2π − x) dx]

=1

π

[(x2

2

)π0

+

(2πx− x2

2

)2π

π

]= π

N. B. Vyas Fourier Series

Page 205: Fourier series 1

Example

Step 3. an =1

π

[∫ π

0

f(x) cos nx dx+

∫ 2π

π

f(x) cos nx dx

]

=1

π

[∫ π

0

x cos nx dx+

∫ 2π

π

(2π − x) cos nx dx]

=1

π

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

+1

π

[(2π − x)

(sin nx

n

)− (−1)

(−cos nx

n2

)]2ππ

=1

π

[(0 +

cos nπ

n2

)−(0 +

1

n2

)]+1

π

[(0− cos 2nπ

n2

)−(0− cos nπ

n2

)]=

2 [(−1)n − 1]

πn2

N. B. Vyas Fourier Series

Page 206: Fourier series 1

Example

Step 3. an =1

π

[∫ π

0

f(x) cos nx dx+

∫ 2π

π

f(x) cos nx dx

]=

1

π

[∫ π

0

x cos nx dx+

∫ 2π

π

(2π − x) cos nx dx]

=1

π

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

+1

π

[(2π − x)

(sin nx

n

)− (−1)

(−cos nx

n2

)]2ππ

=1

π

[(0 +

cos nπ

n2

)−(0 +

1

n2

)]+1

π

[(0− cos 2nπ

n2

)−(0− cos nπ

n2

)]=

2 [(−1)n − 1]

πn2

N. B. Vyas Fourier Series

Page 207: Fourier series 1

Example

Step 3. an =1

π

[∫ π

0

f(x) cos nx dx+

∫ 2π

π

f(x) cos nx dx

]=

1

π

[∫ π

0

x cos nx dx+

∫ 2π

π

(2π − x) cos nx dx]

=1

π

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

+1

π

[(2π − x)

(sin nx

n

)− (−1)

(−cos nx

n2

)]2ππ

=1

π

[(0 +

cos nπ

n2

)−(0 +

1

n2

)]+1

π

[(0− cos 2nπ

n2

)−(0− cos nπ

n2

)]=

2 [(−1)n − 1]

πn2

N. B. Vyas Fourier Series

Page 208: Fourier series 1

Example

Step 3. an =1

π

[∫ π

0

f(x) cos nx dx+

∫ 2π

π

f(x) cos nx dx

]=

1

π

[∫ π

0

x cos nx dx+

∫ 2π

π

(2π − x) cos nx dx]

=1

π

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

+1

π

[(2π − x)

(sin nx

n

)− (−1)

(−cos nx

n2

)]2ππ

=1

π

[(0 +

cos nπ

n2

)−(0 +

1

n2

)]+1

π

[(0− cos 2nπ

n2

)−(0− cos nπ

n2

)]=

2 [(−1)n − 1]

πn2

N. B. Vyas Fourier Series

Page 209: Fourier series 1

Example

Step 3. an =1

π

[∫ π

0

f(x) cos nx dx+

∫ 2π

π

f(x) cos nx dx

]=

1

π

[∫ π

0

x cos nx dx+

∫ 2π

π

(2π − x) cos nx dx]

=1

π

[x

(sin nx

n

)− (1)

(−cos nx

n2

)]π0

+1

π

[(2π − x)

(sin nx

n

)− (−1)

(−cos nx

n2

)]2ππ

=1

π

[(0 +

cos nπ

n2

)−(0 +

1

n2

)]+1

π

[(0− cos 2nπ

n2

)−(0− cos nπ

n2

)]=

2 [(−1)n − 1]

πn2

N. B. Vyas Fourier Series

Page 210: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

[∫ π

0

x sin nx dx+

∫ 2π

π

(2π − x) sin nx dx]

=1

π

[x(−cos nx

n

)− (1)

(−sin nx

n2

)]π0

+1

π

[(2π − x)

(−cos nx

n

)− (−1)

(−sin nx

n2

)]2ππ

= 0

N. B. Vyas Fourier Series

Page 211: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

[∫ π

0

x sin nx dx+

∫ 2π

π

(2π − x) sin nx dx]

=1

π

[x(−cos nx

n

)− (1)

(−sin nx

n2

)]π0

+1

π

[(2π − x)

(−cos nx

n

)− (−1)

(−sin nx

n2

)]2ππ

= 0

N. B. Vyas Fourier Series

Page 212: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

[∫ π

0

x sin nx dx+

∫ 2π

π

(2π − x) sin nx dx]

=1

π

[x(−cos nx

n

)− (1)

(−sin nx

n2

)]π0

+1

π

[(2π − x)

(−cos nx

n

)− (−1)

(−sin nx

n2

)]2ππ

= 0

N. B. Vyas Fourier Series

Page 213: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

[∫ π

0

x sin nx dx+

∫ 2π

π

(2π − x) sin nx dx]

=1

π

[x(−cos nx

n

)− (1)

(−sin nx

n2

)]π0

+1

π

[(2π − x)

(−cos nx

n

)− (−1)

(−sin nx

n2

)]2ππ

= 0

N. B. Vyas Fourier Series

Page 214: Fourier series 1

Example

Step 4. bn =1

π

∫ 2π

0

f(x) sin nx dx

=1

π

[∫ π

0

x sin nx dx+

∫ 2π

π

(2π − x) sin nx dx]

=1

π

[x(−cos nx

n

)− (1)

(−sin nx

n2

)]π0

+1

π

[(2π − x)

(−cos nx

n

)− (−1)

(−sin nx

n2

)]2ππ

= 0

N. B. Vyas Fourier Series

Page 215: Fourier series 1

Example

Ex. Find the Fourier series of

f(x)= −1;−π < x < −π2

= 0 ;−π2 < x < π

2

= 1 ; π2 < x < π

N. B. Vyas Fourier Series