Calculate complex integral as line integral

2 replies · 2K views · last reply
evol_w10lv
Messages
70
Reaction score
0

Homework Statement


We need to calculate this complex integral as line integral:
Diagram of the complex plane showing the upper semicircle L of radius 1 shaded, with the arc from -1 through i to 1 marked, and the integral of z squared plus z times z-bar dz over L with |z| = 1 and 0 ≤ arg z ≤ π.



Homework Equations





The Attempt at a Solution


This is correct, I guess:
Handwritten-style typeset derivation of a complex line integral: z^2 + z̅ expanded to 2x^2 + (2xy)i, with v = 2xy and u = 2x^2, then the line integral of f(z)dz split into real and imaginary parts, ending with integrals of 2x^2 dx, -(2xy) dy, 2x^2 dy and 2xy dx along L.


But not sure about this part:
Typeset math: x = cos t, y = sin t, dx = -sin t dt, dy = cos t dt, followed by two integrals from pi to 0 of 2cos^2(t)(-sin(t))dt - 2cos(t)sin(t)(cos(t))dt plus i times 2cos^2(t)(cos(t))dt + 2cos(t)sin(t)(-sin(t))dt.


Are dx, dy, x, y chages correct or there is other method to use?
 
evol_w10lv said:

Homework Statement


We need to calculate this complex integral as line integral:
Diagram of the complex plane with a unit circle centred at the origin, the upper half shaded black, labelled ReZ, ImZ, 1, -1, i, -i and the angle pi; the top shows the integral of (z^2 + z conjugate z) dz over L with |z| = 1 and 0 ≤ arg z ≤ pi.



Homework Equations





The Attempt at a Solution


This is correct, I guess:
Handwritten-style typeset derivation: z^2 + z z-bar = 2x^2 + (2xy)i, v = 2xy, u = 2x^2, the complex line integral split into real integrals of u dx, v dy, and the final integral of (z^2 + z z-bar) dz written as integrals of 2x^2 dx, -(2xy) dy, 2x^2 dy and 2xy dx over L.


But not sure about this part:
Typeset parametrised integral: x = cos t, y = sin t, dx = -sin t dt, dy = cos t dt, followed by a line integral from pi to 0 of 2cos^2(t)(-sin(t))dt - 2cos(t)sin(t)(cos(t))dt + i times the integral from pi to 0 of 2cos^2(t)(cos(t))dt + 2cos(t)sin(t)(-sin(t))dt.


Are dx, dy, x, y chages correct or there is other method to use?

Not hard to numerically integrate it and check your results right?

Code:
NIntegrate[(z^2 + z*Conjugate[z])*I*Exp[I*t] /. z -> Exp[I*t], {t, Pi, 0}]

but I just let [itex]z=e^{it}[/itex] to check that. What's wrong with just doing that symbolically from the start.
So my suggestion is for you to compute the expression your derived, compute it numerically in Mathematica or other, and thirdly, by letting [itex]z=e^{it}[/itex] and computing it by evaluating the integral in t and then compare the three.
 
Of course... thanks for idea. I cheked results and they were equal.