I have a 5V power supply and an input voltage that’s between 0V-5V. I need to create a circuit where, after feeding the input voltage X (X is between 0V-5V), the output voltage is 5-X (5 MINUS X) V. Would this be possible to achieve without any ICs?
Edit: The output is supposed to be used as the inverting input of an Op-Amp. Some give is okay (~300mV).