Compute the complex line integral $\int (x^2 + iy^2)dz $ over the line segment from 0 to 2+i.
I am struggling to understand what to do with the $x^2 +iy^2 $ term. I have been able to do these more basic complex line integrals such as $\int z dz $ , but for some reason the start to this one just stumps me by not having things in terms of z. I think what I am supposed to do is get $x^2+iy^2$ back in terms of z, but I just don't see how.
I don't want the answer, I just need help understanding what's going on here.