Question:
$$\int \limits _1^4\left (\frac{1}{2t}+i \right )^2\,dt.$$
How can I solve this? I believe its an indefinite integral and I can probably expand it by using $(a+b)^2=a^2+2ab+b^2$ to get something like$$\int \frac{1}{4t^2}+\frac{2i}{2t}+i^2\,dt$$but I'm not even sure if that's right.
Since $$ \left(\frac1{2t}+i\right)^2=\frac1{4t^2}-1+\frac it, $$ you have $$ \begin{align*} \int_1^4\left(\frac1{2t}+i\right)^2\,dt&=\int_1^4\frac1{4t^2}-1\,dt+\left(\int_1^4\frac1t\,dt\right)i\\ &=-\frac{45}{16}+i\log(4). \end{align*} $$