Oscillatory motion, free oscillator in one and two dimension