The average of a function f(x) over the interval [a,b] is equal to the definite integral of f(x) from a to b, divided by b-a.
Here, f(x) = ex/(1+e2x), and the interval is [0,1]. Dividing by b-a is equivalent to dividing by 1-0 = 1, which does nothing to affect the value of the definite integral. Thus, the average of this function over this interval is equal to the definite integral:
∫ ex/(1+e2x) dx = ∫ 1/(1+u2) du (using u-substitution: u = ex, du = ex dx)
∫ 1/(1+u2) du = tan-1(u) = tan-1(ex) from x=0 to x=1. By the Fundamental Theorem of Calculus, this is tan-1(e) - tan-1(1), or just tan-1(e) - π/4.