Well, we are trying to find the following integral:
$$\mathcal{I}_\text{n}\left(\alpha,\beta\right)=\int\frac{1}{\sqrt{\alpha+\beta\tan^2\left(\text{n}x\right)}}\space\text{d}x\tag1$$
Let's substitute $\text{u}=\text{n}x$, this leads to:
$$\mathcal{I}_\text{n}\left(\alpha,\beta\right)=\frac{1}{\text{n}}\int\frac{1}{\sqrt{\alpha+\beta\tan^2\left(\text{u}\right)}}\space\text{du}\tag2$$
Let's substitute $\text{s}=\sin\left(\text{u}\right)$, this leads to:
$$\mathcal{I}_\text{n}\left(\alpha,\beta\right)=\frac{1}{\text{n}}\int\frac{1}{\sqrt{\alpha+\text{s}^2\left(\beta-\alpha\right)}}\space\text{ds}\tag3$$
Let's substitute $\text{w}=\text{s}\cdot\sqrt{\frac{\beta}{\alpha}-1}$, this leads to:
$$\mathcal{I}_\text{n}\left(\alpha,\beta\right)=\frac{1}{\text{n}\sqrt{\beta-\alpha}}\int\frac{1}{\sqrt{\text{w}^2+1}}\space\text{dw}\tag4$$
This is a very standard integral, which gives:
$$\mathcal{I}_\text{n}\left(\alpha,\beta\right)=\frac{1}{\text{n}\sqrt{\beta-\alpha}}\cdot\ln\left|\text{w}+\sqrt{\text{w}^2+1}\right|+\text{C}\tag5$$
So, we end up with:
$$\mathcal{I}_\text{n}\left(\alpha,\beta\right)=\frac{1}{\text{n}\sqrt{\beta-\alpha}}\cdot\ln\left|\sin\left(\text{n}x\right)\cdot\sqrt{\frac{\beta}{\alpha}-1}+\sqrt{\sin^2\left(\text{n}x\right)\cdot\left|\frac{\beta}{\alpha}-1\right|+1}\right|+\text{C}\tag6$$