Amplify offset voltage

dc-offset

I have a signal that varies between 3 volts and 4 volts. Now I want to amplify that 1 volt difference to a range from 0 volt to 5 volts.

I tried to find a solution with an opamp or a transistor, but hopeless. What can do the trick in place of the question mark?

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

look into this amplifier, by putting 3v on one of the input pins you can filter that out, you have the option to invert the signal to (depends on which pin you place the 3V)

enter image description here

http://en.wikipedia.org/wiki/Differential_amplifier#Other_differential_amplifiers