I'm asked to characterize the values of the parameters $\eta, \varepsilon$ for which the above function is of bounded variation on $[0,1]$, when we set $f(0)=0$. By "bounded variation", I mean that the following sum is bounded by some constant $c$, where $t_i$ are the boundary points of any partition $\mathcal{P}$ of the interval into finitely many segments: $$\sum_{j=1}^n |f(t_j)-f(t_{j-1})|$$
I've made just a bit of progress: we need $\varepsilon$ rational with odd denominator, or else $\sin^{\varepsilon}(\frac{1}{x})$ won't be defined on the whole interval. Furthermore we need $\eta$ and $\varepsilon$ nonnegative, positive if we ignore the trivial cases when they're 0, or the function will be unbounded at the zeroes of $\sin(\frac{1}{x})$ or near zero, respectively, while bounded-variation functions never have essential discontinuities.
I can differentiate $f$: $$f'=x^{\eta-1}\sin^{\varepsilon-1}(\frac{1}{x})(\eta\sin(\frac{1}{x})-\varepsilon\cos(\frac{1}{x}))$$
This gives me critical points at the zeroes of $\sin{\frac{1}{x}}$ and at the infinitely many points where $\tan\frac{1}{x}=\frac{\varepsilon}{\eta}$. Ideally I'd estimate the variation by taking a partition at each critical point, since including all local extrema in the partition should guarantee, roughly, that I capture "all $f$'s variation". Now I'm at a loss how to proceed. Is there some nice series by which I might bound the sum I'd get in this way? Should I try a completely different approach than this using critical points? Thanks for your suggestions.
EDIT: After discussing with some other members of the course, we're pretty sure that the value of $\varepsilon$ is immaterial and $\eta>1$ gives bounded variation while $\eta \leq 1$ does not. But the closest I have to an argument for this is to point out that the former case is just when $f'$ is absolutely integrable on $[0,1]$, which seems pertinent for satisfying Sasha's condition in the comments.