I came across a question and am a little confused by the correct answer and the answer I calculated.
Assume you have a light bult that will burnout after $t$ hours where $t$ ranges from $0$ to infinity with an exponential density
$f(t)= Le^{-Lt}$ where $L= .01$. What is the probability that the bulb will NOT burn out before $T$ hours.
I did it the following way: I integrated the function: so i got $-e^{-.01t}$ and thentook the complement and so I got $1+e^{-.01t}$ but the correct answer is evidently just $e^{-.0t}$ and I don't understand how we arrive at this conclusion
You did things almost fully correctly. The probability that the lifetime of the bulb is less than $T$ is $$\int_0^T \lambda e^{-\lambda t}\,dt.$$
An antiderivative is $-e^{-\lambda t}$. Plug in $T$ and take away the result of plugging in $0$. We get $1-e^{-\lambda T}$. Take this away from $1$.
Another way: We can calculate the required probability of survival to at least time $T$ (death at $T$ or after) as $$\int_T^\infty \lambda e^{-\lambda T}\,dt.$$
Remark: Forgetting about plugging in $0$ is a common error. After all, we can safely forget when we are integrating a polynomial.