Periodic Functions
y = sin(3x) is a continuous function and has a period of 2pi/3, like shown on the graph below.
Non-Periodic Functions
The function y = sin(x) + cos(pi*x) is no a perdiodic function. It is interesting how both of its components, sin(x) & cos(pi*x), are periodic but when added the function is no longer periodic.