Substituting u=lnt gives t=eu and dt=eudu.
f=∫1−cosu1−sinueudu
Using half-angle formulas 1−cosu=2sin22u and 1−sinu=1−2sin2ucos2u, we have
1−cosu1−sinu=2sin2(u/2)1−2sin(u/2)cos(u/2)=21csc22u−cot2u
f=∫eu(21csc22u−cot2u)du
and we rewrite the integrand as −cot2u+21csc22u.
Note that if g(u)=−cot2u then g′(u)=21csc22u. Using the formula ∫eu(g(u)+g′(u))du=eug(u)+C gives
f=−eucot2u+C=−tcot(2lnt)+C
At t=eπ/2 the condition f(eπ/2)=−eπ/2 implies u=2π and cot(4π)=1, so
C=0
At t=eπ/4 we have u=4π and need cot8π.
cot8π=sin(π/8)cos(π/8)=1+2
(Using cot(π/8)=sin(π/4)1+cos(π/4)=211+21=2+1.)
f(eπ/4)=−eπ/4(1+2)=(−1−2)eπ/4
So α=−1−2.