solve e^(-x/g)-x/2= l for x