You wind up with the quadratic:
[MATH]f'(x)=\cos^2\left(\frac{x}{2}\right)-2\cos\left(\frac{x}{2}\right)+1=0[/MATH]
Or:
[MATH]f'(x)=\left(\cos\left(\frac{x}{2}\right)-1\right)^2=0[/MATH]
This means the function is increasing everywhere except as you found for [MATH]x=4\pi k[/MATH] where \(k\in\mathbb{Z}\). What you found also implies the function will never be decreasing.
We know \(f(0)=f'(0)=0\), but as soon as \(x\) increases beyond zero, the derivative must be positive, and so the function is immediately increasing, and thereafter will never decrease, thus the function must always be positive for \(0<x\).