Simple UA741 inverting amplifier not Working
You need to ensure that the inputs of the 741 (any op-amp, in fact) are within the input common mode range. On the 741, that range is within 3V of each supply rail, according to the datasheet. The output also cannot swing all the way to either supply rail. 

If you use supplies of +/-15V (the common must be grounded) then the circuit should work, however you show only a single power supply of +30V with no ground reference. If it is, in fact, floating as you show the circuit will not work, and it will not work if either side of the 30V supply is grounded. You also cannot use a voltage divider because current flows to the ground through R1. You could use another op-amp connected as a unity-gain buffer and a pair of equal value resistors (eg. 10K each) as a 'rail splitter'. 







simulate this circuit &ndash; Schematic created using CircuitLab

Or swap the ancient LM741 out for half an LM358 and ground the (-) of the 30V supply and things will be okay (for positive inputs only).