DSolve[-((-f[x]^2 + g[x])/E^(2*Integrate[f[xp], {xp, a, x}])) + g[x]*y[x]^2 + 2*f[x]*y[x]*Derivative[1][y][x] + Derivative[1][y][x]^2 == 0,y[x],x]