Suppose $X$ is a continuous random variable with PDF: $$\begin{cases} e^{-(x-c)}\ \ \text{when }x > c \\ 0\ \quad \quad\text{when}\ x \leq c \end{cases}$$
a. Find $\mathbb{E}(X)$
b. Find $\mathbb{E}(X-c)$
c. Find $\mathbb{E}(X/c)$
I know how to calculate expected value over a given interval $[a,b]$: $$\int_a^b xf(x) \mathrm{d}x.$$ But the lack of interval as well as the $c$ is throwing me off. I'm thinking the interval should be from $0$ to infinity, but that's as much as I've got.
a.
$E(X)=\int_{c}^{\infty}xe^{-(x-c)}dx=\int_{c}^{\infty}xe^{-x+c}dx=-\left(x+1\right)\mathrm{e}^{c-x}\vert_{c}^{\infty}=0-(-(x+1))=x+1$
b.
$E(X-c)=E(X)-c=x+1-c$
c.
$E(X/c)=E(X)/c=\frac{x+1}{c}$
Hint:
For the integral part $\int_{c}^{\infty}xe^{c-x}dx$, you could use integral by parts, and let $f(x)=x$ and $g'(x)=e^{c-x}$. Then $f'(x)=1$ and $g(x)=-e^{c-x}$. Then you just have to integrate $-xe^{c-x}-\int_{c}^{\infty}-e^{c-x}dx$.