Concept:
Application of minimum potential energy:
"Among the all geometrically compatible state of structure which satisfy deflection boundary condition and force equilibrium requirement will have final stable condition when its total potential energy is minimum"
If U is the total strain energy stored in frame. The total strain energy will be minimum, when,
∂R∂U=0
U=∫2EIM2dx
It is an application of castigliano's theorem and based on principal of least work.
Calculation:

Let R be the propped reaction at G.
∵ We know that, the total strain energy stored in the beam
U=∫2EIM2dx
Total strain energy stored in beam, U = UGF + UFE
Portion GF:
Mx (x from G) = Rx−2wx2
U=∫2EIMx2dx
⇒ UGF=0∫L2EI(Rx−2wx2)2dx
⇒ ∂R∂UGF=0∫L2EI2(Rx−2wx2)(x)dx
⇒ ∂R∂UGF=0∫LEI(Rx2−2wx3)dx
∂R∂UGF=3RL3−2w×4L4=3RL3−8wL4..............(i)
Portion FE:
Mx ( x from F) = RL−2wL2
U=∫2EIMx2dx
UFE=0∫2L2EI(RL−2wL2)2dx
∂R∂UFE=0∫2L2EI2(RL−2wL2)(L)dx
∂R∂UFE=0∫2LEI(RL2−2wL3)dx
∂R∂UFE=RL2×2L−2wL3×2L=2RL3−wL4 ....................(ii)
According to the principal of minimum potential energy, the true value of redundant will be when, total potential energy in a frame is minimum
∴ ∂R∂U=0
⇒ ∂R∂UGF+∂R∂UFE=0
From equation (i) and (ii),
3RL3−8wL4+2RL3−wL4=0
37RL3=89wL4
⇒ R=5627wL=0.482wL