(exp(x) / (1 + exp(2x))).subs(exp(x), u)

Want to compute something more complicated? Try a full Python/SymPy console at SymPy Live.