Let X be a random variable defined for 0 < x < 4 with hazard rate $$lambda(t)=1/(4-t)$$ for 0 <= t <= 4. find the survival function, S(x) = P(X>x).
Using the formula S(x) e^-integral from 0 to infinity \lambda(u)du, I plugged in for lambda and got t-4 after all of the calculations. I do not think that is the correct answer. I'm thinking the P(X>x) has to do something with it, but I don't really understand what that part of it means. My next idea is that the limits from 0 to 4 would have to do something with it. Any thoughts?
For a random variable which is inherently non-negative, we have $$S(x)=\exp\left(-\int_0^x \lambda(t)\,dt\right).\tag{1}$$ In our particular case, we therefore want to find $$\int_0^x \frac{1}{4-t}\,dt.$$ Integration gives (for $0\le x\lt 4$), that in our case $$\int_0^x \lambda(t)\,dt=\ln{4}-\ln(4-x)=-\ln\left(\frac{4-x}{4}\right).$$ Substituting in (1), we get that $S(x)=\frac{4-x}{4}$ for $0\le x\lt 4$.