For example, how can I calculate
$$\int_{\left | z \right |=1}\frac{dz}{z}$$
I know that the answer is $2\pi i$ but how do I do it using Mathematica?
For example, how can I calculate
$$\int_{\left | z \right |=1}\frac{dz}{z}$$
I know that the answer is $2\pi i$ but how do I do it using Mathematica?
If you want to calculate this integral with Mathematica use beautiful (and very powerful!)$\;$ Cauchy Integral Formula implying an adequate theorem of Complex Residue. Thus we have $$\int_{\left | z \right |=1}\frac{dz}{z}= 2\pi i\; Res_{z_{0}=0} f$$ where $f(z)=\frac{1}{z}$.
We can find the residue at $z_0=0$ of $f(z)$ in Mathematica with Residue
:
Residue[1/z, {z, 0}]
1
therefore:
$$\int_{\left | z \right |=1}\frac{dz}{z}= 2\pi i$$
z = Exp[I t];
dz = D[z, t];
Integrate[(1/z) dz, {t, 0, 2 Pi}]
The idea is to convert it to complex contour integration.
dt
is "infinitesimal" while D[z[t],t]
is not (in dt = D[z[t], t]
), etc...
$\endgroup$
dz = D[z, t] dt
but you musn't write dz = D[z, t]
. Next Integrate[(1/z) dz, {t, 0, 2 Pi}]
doesn't make sense.
$\endgroup$
dz
it seems to be a differential while it seems you are using it in a different context. You haven't demonstrated seamlessly why you change $\frac{dz}{z}$ to another function using the same symbols.
$\endgroup$