Trying to evaluate this using trig substitution:
$$\int \frac {1}{49x^2 + 25}\mathrm{d}x $$
Here's how I'm going about it, using $x = 5/7(\tan\theta)$
$$\int \frac {1}{49\left(x^2 + \frac{25}{49}\right)}\mathrm{d}x $$ $$=\int \frac {1}{49\left(\frac{25}{49}\tan^2\theta + \frac{25}{49}\right)} \mathrm{d}\theta$$ $$=\int \frac {1}{(25\tan^2\theta + 25)} $$ $$=\int \frac {1}{25(\tan^2\theta + 1)}\mathrm{d}\theta $$ $$=\int \frac {1}{25\sec^2\theta}\mathrm{d}\theta $$ $$=\int \frac {\cos^2\theta}{25}\mathrm{d}\theta $$ $$=\frac{1}{50}(\theta + \sin\theta + \cos\theta) $$ To generalize for $x$, $\theta = \arctan(7x/5)$ $$\frac{1}{50}\left(\arctan\left(\frac{7x}{5}\right) + \sin\left(\arctan\left(\frac{7x}{5}\right)\right) + \cos\left(\arctan\left(\frac{7x}{5}\right)\right)\right) $$ $$\frac{1}{50} \left(\frac{7x}{5\left(\frac{49x^2}{25}+1\right)} + \arctan\left(\frac{7x}{5}\right)\right)$$ But taking the derivative of this gets me: $$ \frac{35}{(49x^2 +25)^2}$$ Where is my mistake?