$f(x,y) = x^2+y^2-1$
$0=x^2+y^2-1 \Rightarrow y=\sqrt{1-x^2}$
I differentiaded $g(x)=\sqrt{1-x^2}$ with the chain rule and got $g'(x)=-\frac{x}{\sqrt{1-x^2}}$.
Can someone tell me how to do it with implicit differentiation?
I tried this formula $y'(x)=-\frac{f_x}{f_y}=-\frac{x}{y}$, the solution should obviously be the same so I guess I might not be allowed to use the formula here? We had the implicit function theorem and $dF(x,y)\begin{pmatrix}h\\k\\\end{pmatrix}=\begin{pmatrix}h\\df(x,y)(h,k)\\\end{pmatrix}$ but I don't really know how to apply this here.
Notice that you have made the definition $g(x)=y$. Your implicit differentiation formula tells you that
$$y'=-\frac{x}{y}$$
but you said earlier
$$y=g(x)=\sqrt{1-x^2}$$
substituting this into your result for $y'$, you are left with
$$y'=-\frac{x}{\sqrt{1-x^2}}$$
so your method was correct, the "problem" is that you are left with a $y$ in your solution which is actually fine. If you dislike it, you can always solve for $y$ in the equation
$$0=x^2+y^2-1$$
and substitute it in, which we have already done.