I need to invert a small DC signal (0 to +0.8 volts). I built a unity-gain inverter according to the schematic in "Engineer's Mini-Notebook: Op Amp IC Circuits," but it doesn't work. I have a 4-volt power supply to the op-amp (LM358), a 1K resistor between the + (non-inverting) input and 2 volts, a 1K resistor between the signal input to the - (inverting) input, and a 1K resistor between - (inverting) input and the output. The result is that the - (inverting) input is always at 2V and the output is always at 2V. I believe that the problem is that with a single-supply op-amp you have to put capacitors on the input and output, but this blocks the DC input voltage. I.e., a single-supply inverting op-amp works fine for AC signals, but with a DC signal you have to use split power supplies.
I tried using a 74xx04 inverter but the output is either 4V or 0V, it can't output an analog DC signal.
Any suggestions for solving this problem?