Given $$F_X(x) = \begin{cases} x/2 & 0 < x < 2, \\ 0 & \text{otherwise} \end{cases} $$
determine $E(e^{-X})$.
I have started by deriving the distribution function $f_X(x) = 1/2$
Then I am creating the new random variable $Z = e^{-X}$. $f_Z(x) = e^{-1/2}$.
Then I am solving for $E(Z)$ by taking integral of $xf_Z(x)dx$ from $0$ to $2$.
However this is wrong. Where have I misunderstood the process/erred?
Integration of a density over $\mathbb{R}$ must be $1$, by definition. So you calculation of $f_Z$ is incorrect.
The density of $Z=g(X)$ is not $f_Z(z)=g(f_X(z))$.
What you need to apply is the following $$ E({e^{-X}})=\int_{-\infty}^\infty e^{-x}f_X(x)\,dx. $$
Be careful that you only have $f_X(x)=\frac{1}{2}$ on $(0,2)$.
In general, for any function $h$ (with certain assumptions), one has $$ E(h(X))=\int_{-\infty}^\infty h(x)f_X(x)\,dx. $$
This is also called Law of the unconscious statistician.