You are on page 1of 2

A real valued function f(x) is said to be periodic of period T if f(x+T)=f(x),T>0. eg.

sin(x+2)=sin(x),cos(x+2)=cos(x) also if f(x)=k then f(x+2)=k The functions k, cos(nx),sin(nx) (n=1,2,3,4, .) are all periodic functions of period 2. The linear combinations of all periodic functions is of the form:

= 0 +
=1

cos

+ sin

Where 0 , , are the constants and L is half of the period. 0 =


2 ()dx 0 () dx 0 () dx 0

= =
2

Unit step function: It is defined as, = Unit ramp function: It is defined as, = I have taken period of the functions as follows, Unit step function: = Unit ramp function: = 0, , > < 0 0 > 1 0 2 > 0 0 > 0, , < 0 0 0, 1, < 0 0

Fourier series of the functions are : Unit step function:


=

= 1 +
=1

sin (2) cos +

=1

1 cos (2) sin (nx)

Unit ramp function: = + 2


=

=1

x sin () cos 1 + cos + 2

=1

x(1 cos ) sin () + sin (nx) 2

the NAM lab program for both the functions are in .m file

You might also like