The Channel Invert (SDR Only) Output AOV node can be used to invert the pixel values for RGB, Alpha, or RGB+Alpha (figure 1). 
 
  | 
      
   | 
  
    
  
   Channel Invert (SDR Only) 
   
  
     
   
  
   | 
 
 
Figure 1: The Channel Invert Output AOV node used to invert the pixel values for the Diffuse AOV in a composite node tree