Solve for f e=hf