I define the work done by the system as +dw and work done on the system as -dw.
Looking through my notes on Otto cycle, I observed that the for the two adiabatic curves in a clockwise cycle such that the direction on each curve is opposite to the other, the equation is given as (by the notes) du = Q - dw for an adiabatic compression and du = Q - dw for an adiabatic expansion.
Which doesn't make sense because one of curve if an adiabatic compression and the other is an adiabatic expansion.
Is there a mistake by the book?