I am designing an opamp based linear regulator for educational purpose.Please find the attached image.
I know that due to negative feedback voltage at the both terminals of the opamp will be same and is equal to Vref .Here it is 1.25V and Vout=Vref(1+R2/R1) and I obtained the proper 2.5V at output.
Now I removed the refernce and Vin(5V) is directly connected to Opamps non inverting terminal. At this time the output obtained is 5V only as per the equation it shoud be 10V.May I know why I am not getting 10V at output.Please tell me where I went wrong in understanding the circuit.