When finding the intervals where the graph is either increasing or decreasing, I’m confused about intervals [-2π, -π), (-π, 0). The first yields a negative number and the second interval yields a positive number, but the graph shows otherwise. Why?
Also, how do I obtain the roots of the second derivative in order to find the concavities? I keep getting 0, but I’m not able to obtain any more roots. The second derivative is y”=2sin(x)+4xcos(x)-(x^2)sin(x).