Firstly let's "desquare " the situation.
∫0π/2 sin2x / (1 + cos2x ) dx = ∫0π/2 (1-cos 2x )/(2 +cos 2x) d x = (1/2) ∫0π (1-cos u )/(2 +cos u) d u.
Here you need the Weirstrass substitution
Let t = tan(u/2). Then if you sketch a right triangle you will get cos(u/2) =1/√(1 +t2) and
sin(u/2) = t/√(1 +t2).
Then you can prove that cosu= ( 1 -t2)/ (1 +t2 ) and sinu = ( 2t)/ (1 +t2 )
Also it's easy to show that du = [ 2/( 1+t2)] dt
Then the ∫ (1-cos u )/(2 +cos u) d u = ∫{ [ 1- ( 1 -t2)/ (1 +t2 ) ] / [ 2 + ( 1 -t2)/ (1 +t2 ) ] } [ 2/( 1+t2)] dt =
= 4∫ [ t4 +3t2 ] / [ (1+t2)3] dt
Then you will need the partial fraction decomposition
[ t4 +3t2 ] / [ (1+t2)3] = 1 / (1+x2 ) + 1 / (1+x2)2 − 2 / (1+ t2)3
I hope you can take it from there.
I would have continued but I am going through a surgical procedure tomorrow and I need to get some rest.
In actuality the problem is slightly easier since the integrant sin2 x / (1+cosx)2 simplifies faster
as sin2 x / (1+cosx)2 = ( 1- cos2x ) / ( 1+cosx)2 = ( 1-cosx) / (1+ cosx ) but the Weierstrass substitution is still valid