Firstly, I confirmed P(1,0) is on the curve by substitution.
Then I differentiated both sides giving me $\frac{x \frac {dy}{dx}+y}{xy+1}=\cos(\pi x)$
So $\frac {dy}{dx}=\frac {\cos(\pi x)(xy+1)-y}{x}$ But then evaluating $\frac{dy}{dx}$ at P(1,0) I get $-1$
The problem is that I know it should be $-\pi$ not $-1$
So basically where did I go wrong?
the derivative of $$(\sin(\pi x))'=\cos(\pi x)\pi$$