Find the value of the constant C for which the following integral $$\int_{0}^{\infty} \bigg(\frac{x}{x^2+1} - \frac{C}{3x+1}\bigg)dx$$
converges. Evaluate the integral for that value of C. Make sure to fully justify your answer. \
My solution:
$$\lim_{A\to\infty}\int_{0}^{A} \frac{x}{x^2+1} dx - \lim_{A\to\infty} \int_{0}^{A} \frac{C}{3x+1} dx$$
$$= \lim_{A\to\infty} \frac{1}{2} ln(x^2+1) \bigg|_{0}^{A} - \lim_{A\to\infty} \frac{C}{3} ln|3x+1| \bigg|_{0}^{A}$$
$$= \frac{1}{2}(\infty + 0) - \frac{C}{3} (\infty + 0)$$
Idk how to make it converge.