We can obtain the first formula using implicit differentiation as follows: begin with $y = f(x)$ and differentiate both sides with respect to $y,$ supposing $x$ depends on $y.$
$$1 = f'(x)\cdot \dfrac{dx}{dy} \Rightarrow \dfrac{dx}{dy} = \frac{1}{f'(x)} = \frac{1}{\frac{dy}{dx}}$$
Differentiating once more we can obtain our formula for the second derivative:
$$0 = \left(f''(x)\cdot \dfrac{dx}{dy}\right)\cdot \dfrac{dx}{dy} + f'(x)\cdot \dfrac{d^2x}{dy^2} \Rightarrow \dfrac{d^2x}{d^2y} = -\frac{\frac{d^2y}{dx^2}}{\left(\frac{dy}{dx}\right)^3}$$
So to obtain the formula for the third derivative, we can repeat this process and differentiate one more time on both sides:
$$0 = f'''(x)\cdot \left(\frac{dx}{dy}\right)^3 + f''(x)\cdot\left(2\frac{dx}{dy}\cdot \frac{d^2x}{dy^2}\right) + \left(f''(x) \cdot \frac{dx}{dy}\right)\cdot\frac{d^2x}{dy^2} + f'(x) \cdot \frac{d^3x}{dy^3}$$
which can be solved algebraically to isolate $\dfrac{d^3x}{dy^3}.$ (which I won't do here because it's just not only messy but also trivial)