To ensure the quadratic equation az^2 + z + 1 = 0 has purely imaginary roots, the real and imaginary parts of a must satisfy specific conditions from the quadratic formula. The discriminant is 1 - 4a, and for the root to be purely imaginary, we set 1 - 4a = -t^2 for some real t, leading to the real part of a being 1/4. Since a = cos(theta) + i sin(theta), this means cos(theta) = 1/4, and it follows that sin^2(theta) = 15/16. We substitute this into the function f(x) = x^3 - 3x^2 + 3(1 + cos theta)x + 5, and analyzing its derivative f'(x) = 3x^2 - 6x + 3(1 + 1/4) = 3(x - 1)^2 + 3/4 shows the function is always increasing. Evaluating the limits as x approaches negative and positive infinity shows the graph crosses the x-axis exactly once on the left side, meaning it has one negative real root.