1. Find the differential $dx$ in terms of $d\theta$.
x=tanθ⟹dθdx=sec2θ dx=sec2θdθ
2. Substitute $x$ and $dx$ into the integral and simplify the denominator.
Substitute into the integral: ∫(1+tan2θ)21−tan2θsec2θdθ
Using the identity 1+tan2θ=sec2θ: =∫(sec2θ)21−tan2θsec2θdθ =∫sec2θ1−tan2θdθ
3. Simplify the integrand using trigonometric identities.
=∫(sec2θ1−sec2θtan2θ)dθ =∫(cos2θ−1/cos2θsin2θ/cos2θ)dθ =∫(cos2θ−sin2θ)dθ
Using the double angle identity cos2θ=cos2θ−sin2θ: =∫cos2θdθ
4. Evaluate the integral with respect to $\theta$.
=21sin2θ+C
5. Express the final answer in terms of the original variable $x$.
Using the double angle identity sin2θ=2sinθcosθ: =sinθcosθ+C
From x=tanθ, we can construct a right-angled triangle with opposite =x and adjacent =1. The hypotenuse is 1+x2. sinθ=1+x2xandcosθ=1+x21
Substituting these back: =(1+x2x)(1+x21)+C =1+x2x+C