I'm negating this proposition: "If you study you will not fail."
I'm using proposition P: "You study" and proposition Q: "You will fail."
The original statement can be written as "$P → ¬Q.$"
My instructor has the negation of this statement like this:
$¬(P → ¬Q) = ¬(¬P \lor ¬Q) = P\land Q $
Why does $¬(P → ¬Q) = ¬(¬P \lor ¬Q)$ ?
Because $A\rightarrow B \equiv \lnot A \lor B\tag{1}$
Think of this as stating: An implication $A\rightarrow B$ is true whenever
$A$ is false: $\;(\lnot A)$
OR: $\;\lor$
$B$ is true: $\;(B)$
Hence we have $\quad \lnot A \lor B$.
In your case, we have $\;A = P\;$ and $\;B = \lnot Q$,
So using $(1)$ on your proposition: $$\lnot(P \rightarrow \lnot Q) \equiv \lnot (\lnot P \lor \lnot Q) $$ By DeMorgan's, we get $$\lnot \lnot P \land \lnot \lnot Q \equiv (P \land Q)$$