Calculus 2: Integration by Parts Stuck on Integral of Product With ArcTan Inside I'm stuck on the following problem: 
$$\int_0^{1/3} y \tan^{-1}(3y)\,dy$$
I think my last line in my work below is correct but I don't know what to do beyond that.  
A step through of the problem would be appreciated.  

 A: Let $x = 3y$ then  $ 3dy = dx $,
$$\displaystyle \int_0 ^{\frac {1}{3}} y \ \tan^{-1}(3y) dy = \frac {1}{9} \int_0 ^1 x\ \tan^{-1}(x) dx$$ 
Use ILATE
$\displaystyle \Rightarrow  \frac {1}{18} [x^2 \tan^{-1}(x) |_0 ^1  - \int_0 ^1 \frac {x^2}{1+x^2} dx ]   $
$\displaystyle \Rightarrow  \frac {1}{18} [x^2 \tan^{-1}(x) |_0 ^1  - \int_0 ^1 \frac {x^2}{1+ x^2} dx ]   $
$\displaystyle \Rightarrow  \frac {1}{18} [x^2 \tan^{-1}(x) |_0 ^1  - ( \int_0 ^1 dx - \int_0 ^1  \frac {1}{1+ x^2} dx )] $
$\displaystyle \Rightarrow  \frac {1}{18} [x^2 \tan^{-1}(x) - x + \tan^{-1}(x) ]_0 ^1   $
$\displaystyle \Rightarrow  \frac {1}{18} [(x^2 + 1) \tan^{-1}(x) - x  ]_0 ^1   
 = \frac {\pi}{36} - \frac {1}{18}$
Please tell if there are errors in this, because I haven't studied calculus yet.
A: Integrate by parts $\left(f = \tan^{-1}3y, g' = y \Rightarrow f' = \frac{3}{9y^2 + 1}, g = \frac{y^2}{2}\right)$:
$$\int y \tan^{-1}(3y) dy$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \int \frac{3y^2}{2(9y^2 + 1)} dy$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{3}{2} \int \frac{y^2}{9y^2 + 1} dy$$
Write $y^2$ as $\frac{1}{9}(9y^2+1) - \frac{1}{9}$ then we get:
$$\frac{y^2 \tan^{-1}(3y)}{2} - \frac{3}{2} \int \frac{\frac{1}{9}(9y^2+1) - \frac{1}{9}}{9y^2 + 1} dy$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{3}{2} \int \frac{\frac{1}{9}(9y^2+1)}{9y^2 + 1} - \frac{\frac{1}{9}}{9y^2 + 1}dy$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{3}{2} \int \frac{1}{9} - \frac{1}{9} \frac{1}{9y^2 + 1}dy$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{1}{6} \int 1 - \frac{1}{9y^2 + 1}dy$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{1}{6} \left(\int 1\,dy - \int \frac{1}{9y^2 + 1}dy\right)$$
Using substitution $u=3y$, we get:
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{1}{6} \left(\int 1\,dy - \frac{1}{3} \int \frac{1}{u^2 + 1}du\right)$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{1}{6} \left(y - \frac{1}{3} \tan^{-1}u + C\right)$$
$$= \frac{y^2 \tan^{-1}(3y)}{2} - \frac{1}{6} y + \frac{1}{18} \tan^{-1}3y + C$$
$$= \frac{(9y^2 + 1) \tan^{-1}(3y) - 3y}{18} + C$$
Now you can evaluate the integral: 
$$\int_{0}^{\frac{1}{3}} y \tan^{-1}(3y) \, dy = \frac{\pi - 2}{36}$$
A: Intrgrate by parts taking $y$ as first function:
$$I=\int_{0}^{1/3} y \tan^{-1}(3y) ~dy=\tan^{-1}(3y) (y^2/2)|_{0}^{1/3}-\int_{0}^{1/3} \frac{3}{1+9y^2} \frac{y^2}{2} dy=\frac{\pi}{72}--\frac{1}{18}+\frac{1}{6} \int_{0}^{1/3} \frac{dy}{1+9y^2}= \frac{\pi}{72}-\frac{1}{18}+\frac{\pi}{72}$$
$$\implies I=\frac{\pi}{36}-\frac{1}{18}$$
