I want to find the probability of $x^2+bx+1=0$ that has at least one real root. Also, $b$ is a uniform random variable on the interval $[-3,3]$.
I know the condition for this quadratic equation to have real roots is $b^2 \ge 4$.
The question is should I calculate the below integral to find the probability?
$$P(b^2 \ge 4)=\int_{-3}^{3}(b^2-4)db $$
Actually, you need to restate $b^2\ge 4$ in terms of $b$. Then, you can use the integral with the density of $b$. $$P(b^2\ge 4)=P(|b|\ge 2)=P(b\le -2)+P(b\ge 2)=\int_{-3}^{-2}f_B(b)db+\int_{2}^3f_B(b)db$$