Find the intervals of concavity and the inflection points

Find the intervals of concavity and the inflection points.
f(θ) = 2 cos θ + cos^2 θ, 0 ≤ θ ≤ 2π