alternating pwm generation using arduino

I am planning to control the voltage in the output using mosfet and pwm using arduino...
Input voltage will be around 400 volts and based on the user input I am planning to vary the output voltage....
I am planning to use 2 mosfets(n and p channel) to reduce the stress on a single mosfet....
I want to generate the signal as this waveform(don't mind the amplitude)...

I am able to generate pwm signal on the positive side but I don't have any idea about how to generate the pwm signal on the negative side,bringing about the waveform mentioned in the above diagram...
Your suggestions are welcome...

You'll need a power supply capable of generating the negative voltage, and some kind of external components to switch it. What those components are depends on your application and what frequencies you need.

Section 3.2 of

gives an idea of how this could be done using opamps.