Skip to main content

$dW=P\,dV$ or $dW=-P\,dV$?

In thermodynamics work done = 1) $P\,dV$ or 2) $-P\,dV$ or both at certain situations. I'm confused what's right as in some sections the former is used and in some the latter.