In the first case they are not the same graph: $\frac{a}{x} \ne \frac{1}{{ax}}$.
In the second they are the same: $- \frac{1}{x} = \frac{1}{{ - x}}$