I'm learning about functions of bounded variation and need to verify my work to this problem since my textbook does not provide any solution :
Given the function $ f(x) = \sin^2(\pi x) $, show that $ f $ is of bounded variation on $ [0, 1] $.
Here's my attempt :
$ f'(x) = 2(\sin(\pi x)) \frac{d}{dx}[\sin(\pi x)] = 2\pi \sin(\pi x) \cos(\pi x) = \pi \sin(2 \pi x)$.
The function $ f $ is differentiable on $ [0, 1] $ and $ \forall x \in [0, 1] $ we have :
$$ \lvert f'(x) \rvert = \lvert \pi\sin(2 \pi x) \rvert \le \pi $$
Since the derivative of $ f $ is bounded on $ [0,1] $ this implies that $ f \in BV[0, 1] $.
Is my work correct?
Yes, a Lipschitz continuous function on a compact set is a function of bounded variation. Moreover $$\text{Var}_{[0,1]}f = \int_0^1|f'(x)|\,dx = \int_0^1 \pi|\sin(2\pi x)|\,dx = 2.$$