How do I show that f is strictly decreasing on (0, infinity)? I have been asked to define $f: (0, \infty) \to (0, \infty)$ by $f(x) = \frac 1 x$
a) How do I show that f is strictly decreasing on $(0, \infty)$? I realize that I have to show that $f'(x)<0$, but I'm not entirely sure how to go about this. Would anyone be able to help or point me in the right direction?
b) How do I show that $f$ is invertible, and find $f^{-1}$? Do I switch $x$ and $y$ and solve for $y$?

An elementary way of showing it
a)
Function is strictly decreasing if for every $f(x_1)<f(x_2) \implies x_1>x_2$$$f(x_1)< f(x_2)\\ \frac{1}{x_1} < \frac{1}{x_2}\\x_1>x_2$$
Last line because both $x_1,x_2>0$
b) $f$ is invertible if it's a bijection,prove it's 1 on 1 $$f(x_1)=f(x_2)\implies x_1=x_2\\\ \frac{1}{x_1}=\frac{1}{x_2}\\x_2=x_1$$
So $f$ is 1-1,now show that $f$ is onto
$$f(x)=y\\\ \frac{1}{x}=y\\ \frac{1}{y}=x$$
Which shows that for every $y$ there is a corresponding $x$ so function is onto now to find inverse
$$f^{-1}(f(x))=x\\f^{-1}(\frac{1}{x})=x\\ \frac{1}{x}=t\\x=\frac{1}{t}\\f^{-1}(t)=\frac{1}{t}\\f^{-1}(x)=\frac{1}{x}$$
