I need to show that: $$\lnot\exists x\in A P(x) \equiv\forall x\in A\lnot P(x)$$
when I start from LHS, should I write(1): $$\lnot\exists x (x\in A \to P(x))$$
or(2): $$\lnot\exists x (x\in A \land P(x))$$
because after simplification in first case I get: $$\forall x(x\in A \land\lnot P(x))$$
whereas in the second case I get: $$\forall x(x\in A \to\lnot P(x))$$
I'm confused, because I know that in general: $$(p\to q) \equiv \lnot(p\land\lnot q)$$ therefore I don't know whether assuming (1) or (2) is right.
Could you please clarify that for me?