The angle can be found by using \(\displaystyle cos{\theta}=\frac{f\cdot g}{||f||\cdot ||g||}\)
Where \(\displaystyle \int_{0}^{1}f(t)g(t)dt\) is the dot product. If it is 0, then they are orthogonal.
The norms can be found by using \(\displaystyle \sqrt{\int_{0}^{1}f^{2}(t)dt}\)
It has been awhile since I used this stuff.
Try googling orthogonal, inner products, angles between functions.
The thing is, this gives me 22.265 degrees. I like Soroban's method. I came up with the same result that way.
But,
\(\displaystyle \frac{\int_{0}^{1}[(t^{2}+2t)(t+1)]dt}{\sqrt{\int_{0}^{1}(t^{2}+2t)^{2}dt}\cdot \sqrt{\int_{0}^{1}(t+1)^{2}dt}}=\frac{\frac{9}{4}}{\frac{\sqrt{570}}{15}\cdot \frac{\sqrt{21}}{3}}\)
\(\displaystyle cos^{-1}\left(\frac{\frac{9}{4}}{\frac{\sqrt{570}}{15}\cdot \frac{\sqrt{21}}{3}}\right)=22.265^{o}\)