Si están integrando $$\int_\gamma y^2\,dz$$ Where $\gamma$ is the line segment from $1$ to $i$. You parameterize the line $$x(t)=1-t$$ $$y(t)=t$$ $$\implies z(t)=1-t+it$$
Ahora, si desea utilizar la fórmula: $$\int_\gamma f(z(t))z'(t)\,dt,$$ would you have the integral $$\int_0^1(t)^2(-1+i)\,dt$$ or would you have $$\int_0^1(it)^2(-1+i)\,dt.$$ I'm assuming its the first integral because you want the imaginary part, which is just $t $ and not $ lo$.