From calculus to wavelets: A new mathematical technique