Let f(x)=xnsinx1 for x=0, with f(0)=0, where n is a positive integer. The function models a damped oscillation near the instant x=0. For some values of n the derivative function f′ exists at every real number. For which smallest positive integer n is f′ defined and continuous at x=0?