The integral was:
$$\int_{0}^{\frac{\pi}{2}} \frac{\cos^2x}{(a^2+b^2\sin^2x)^{3/2}}\;dx= \frac{\pi}{2ab^2} (1-\frac{a}{\sqrt{a^2+b^2}}).$$
- I encountered this integral while trying to show amperes law working in an EM (electromagntism) problem .
My progess: I tried substituting $a^2 + b^2 \sin^2x = t^2 $ but that doesnt help much. Next I tried writing $\cos^2x$ in terms of $\sin^2x$ and then separately do the integration for two parts in the expression but that I wasnt able to show. Any help greatly appreciated.
The setup was this (figure added )
: a semi infinite wire straight current $I$ being given to a plane sheet ( current flows radially there ) .
- Find magnetic field at a general point .
(By some symmetry reasons one compute it to be $B = \frac{u_°I}{2\pi r}$ $\hat{k}$ at a point $(r,h,0)$ by Amperes Law, the plane being $y=0$ and semi infinite line being the y axis , current direction in that in $-y$ direction .
Now by integration approach ( figure added )
i first find the magentic field due to a current dI = $\frac{I}{2\pi} d\theta$ between $\theta$ and $\theta +d\theta$ angle in the plane at that point, it comes out to be
- $\frac{u_°I}{4\pi(h^2 + r^2sin^2\theta)} (1+ \frac{rcos\theta}{\sqrt(h^2 + r^2 sin^2\theta)})$ ($hsin\theta \hat{i} - rsin\theta \hat{j} + hcos\theta \hat{k})$
- Now integrating in limits $0$ to $2\pi$ the $\hat{i}$ and $\hat{j}$ components goes to zero and we are left with.
- $\int_{0}^{\pi}\frac{u_°I}{4\pi(h^2 + r^2sin^2\theta)} (1+ \frac{rcos\theta}{\sqrt(h^2 + r^2 sin^2\theta)}) (2 hcos\theta \hat{k})$
This with the straight wire current magentic field which is standard integral ( means easily evalualted) should result in what we get from amperes law as net magnetic field at that point . On comparing we arrived at the result i mentioned at first . Now if there is any mistake in my approach that would also be fine as acceptable answer . If the calculation and approach is fine then only share the method for evaluating that integral .

