I heard a teacher say that if $$X \sim \operatorname{Exp}(\theta)$$ then $$\frac{1}{X} \sim \operatorname{Exp}\left(\frac{1}{\theta}\right)$$ I don't trust this teacher because he has given us wrong answers before.
I tried to obtain this myself:
If $y = g(x) = \frac{1}{x}$, then $$f_Y(y) = f_X(g^{-1}(y)) \cdot \left|\frac{d}{dy}g^{-1}(y)\right|$$ $$f_Y(y) = \theta \cdot e^{-\theta/y} \cdot \frac{1}{y^2}$$ where $1/y \in (0, +\infty)$.
I don't see an $\operatorname{Exp}(1/\theta)$ here. Am I doing something wrong?
You are right and your transformation is correct!
But without doing any calculation, what is true is that $X\sim \operatorname{Exp}(\theta)=\Gamma(1;\theta)$
And this means that $\frac{1}{X}\sim \text{Inv-Gamma}$
See "Related distributions" in this link