Showing posts with label complex functions. Show all posts
Showing posts with label complex functions. Show all posts

Monday, December 30, 2019

Contour Integrals Revisited

Contour integrals are integrals of complex functions f(z), i.e. of the complex variable z = x + iy. Such integrals are defined in terms of the values of f(z) along a given contour C extending from a point z = z1 to a point,  say, z = z2 in the complex plane.  It is therefore a line integral. This can be written as:

òC  f(z) dz

It may alternatively be written with limits, say from z1 to z2, usually when the value of the integral is independent of the choice of contour taken between the two end points.


Illustration: Suppose that the equation:  z = z(t)  such that (a <  t  < b)  represents a contour C extending from some point z1 = z(a) to a point z2 = z(b). let the function f(z) be piecewise continuous on C. That is, f(z(t))  is piecewise continuous on the interval a <  t  < b. We define the line integral or contour integral of f along C as:

ò f(z) dz   =  ò a b  f[z(t)] z’(t) dz 

Since C is a contour then z’(t), i.e. dz/dt is piecewise continuous on the interval  a <  t  < b so the existence of the integral is assured.

Example (1)

This is by reference to the contour shown on  left side below:
Image result for brane space, Contour integrals

Here C is the right hand half of the circle  êz ê  = 3.8 from z = -3.8i to z = 3.8i. Hence we want to find the integral of:

I = ò C  z z* dz

For which z = 3.8 exp (i q)  (- p/2 <   q  p/2)

Then:    I=  ò p/2 -p/2  (3.8 exp(i q)) (3.8 exp(- i q))  dq 

=  14.44i   
ò p/2 -p/2   dq


= 14.44 (p/2  - (-p/2)) = 14.44i   (p)  =  14.44 pi


Note that for such a point z on the circle êz ê  = 3.8, it follows that zz* = 14.44 or z* = 14.44/z. So that the result  14.44 pi can also be written: I = òC  dz/ z =  pi


Example(2):
The reference contour is shown in the graphic to the right in preceding diagram, along the path OAB. So  the integral can be solved as follows:

ò C  f(z) dz  =   ò OA  f(z) dz  +    ò AB  f(z) dz  

Where f(z) =  y – x   -i3x2   (z = x + iy)

The segment OA can be represented parametrically as:  

z = 0 + iy (0 < y < 1)

Since x = 0 at all points on that segment the values of f there vary with the parameter y according to the equation: f(z) = y(0 < y < 1)

Therefore:

ò OA  f(z) dz   =     ò 0 1   y idy = i ò 0  y dy = i/2

Meanwhile, on the segment AB, z = x + i(0 < x < 1) so that:

ò AB  f(z) dz   =    =     ò 0 1   (1 – x –i3x2) 1 dx =


ò 0 1   (1 – x)dx  –  3i ò 0 1    x2dx = ½ - i

Based on the original contour definition  (adding the integrals for the segments OA and AB):

ò C1  f(z) dz  =   1 – i/2

If C2 denotes the segment OB of the line y = x then we have:
 z = x + ix (0 < x < 1)

And we can write:

ò C2  f(z) dz  =    ò 0 1   -i3x2( 1 +i) dx =

 3(1-i)  
ò 0 1    x2dx = 1 – i
  
We can see from this that the integrals of  f(z) have different values though the two paths C1 and C2 have the same initial and starting points. It follows from this that the integral of f(z) over the simple closed contour OABO or C1 – C2 is:


ò C1  f(z) dz   - ò C2  f(z) dz    = [½ - i] – (1 – i ) =    -1 +i / 2


Problem For Math Mavens:

Redo Example (1) except change the limits of the contour to have z = -2i to z = 2i.

Tuesday, January 22, 2019

Solutions To Complex Functions & Equations Revisited

The Problems again:

1)  (a) Given u(x,y) + iv(x,y) = 2x2 + i2y2  

find f(z,z*)

(b)  Express f(z)= z2 + z – 3 in polar form

2) Solve for x and y:   8x 2 + 3iy  -  4    = 8y   – 4iy

3) Solve: (z+1) 3  = z 3



Solutions:

(1)   Let:  z = x + iy, and z* = x – iy

Adding:   z + z* = (x + iy) + (x - iy) = 2x


We see: x = (z + z*)/2


Subtracting:



(z – z*) = [x + iy – x + iy] =  i2y

Then:  y = (z – z*)/ 2i

We can now formulate the function f(z,z*):




f(z,z*) = 2[(z + z*)/2]2  + i2[(z – z*)/ 2i]2

2)  z2 = r2 exp(i2(q)) = r2 (cos (2q) + isin(2 q))



z = r exp(i(q)) = r(cos(q) + isin(q)



so: z2 + z = r2 (cos (2q) + isin(2 q)) +  r(cos(q) + isin(q)



Collecting like terms in i and simplifying:



f(z) =  r2(cos (2q) + r(cos(q)) + i{sin(2q) + sin(q)} – 3



so: iv(r, q) =  i{sin(2q) + sin(q)}



and v (r, q) =  {sin(2q) + sin(q)}



while:


u(r, q) =  r(cos (2q) + r(cos(q)) – 3


3)     8x 2 + 3iy  -  4    = 8y   – 4iy

 8x 2    =   4

So:   2    =   4/ 8   =  1/ 2


Therefore:  x =  Ö  ( 1/2)  =   1/ Ö2

=  Ö /  2
  

And:   

8 y   =   - 3iy  - 4iy   =   - 7 iy

y  =   -7 i/  8


4)  Expand the left side and set equal to the right:

z 3 + 3z 2 +  3z + 1   =  3

è3z 2 +3z + 1   = 3    
-    3
  
 or  3z 2  + 3z +1 =  0

(This can be solved using the quadratic formula, to give two roots)

Then:  z1 = ½ + i Ö (3) / 6 

And z2 = -(½ ) + iÖ (3)/ 6

Checking the result against the  original equation:

z 3  = 0.192i and  (z 3 + 1) 3  = 0.192i


So both quantities are equal, the roots are correct.


Thursday, February 13, 2014

More Difficult Contour Integrals


Time for some more contour integrals. We have seen earlier examples of contour line integrals and now we look at a more detailed example:

We want to integrate around the closed contour  for which f(z) = 3x + 2iy:

We check first to see if the function is analytic using the Cauchy –Riemann relations:


i) u/ x = v/ y  and ii) u/ y   =  - v/ x


For f(z) = 3x + 2iy  =  u(x,y) + iv(x,y)

We have:  u/ x =  3   and v/ y    = 2,    so  u/ x ¹ v/ y 


And:


u/ y   = 0 =     - v/ x

Since condition (i) is not fulfilled the function is not analytic, hence we cannot evaluate using Cauchy’ theorem , i.e. 

 ò  C  f(z) dz = 0


So we must integrate line segment by line segment, viz.


I  =   ò C  f(z) dz  =   ò C  (u + iv) (dx + idy)  =     

 ò  C  (3x + 2iy) (dx + idy)


=    ò  C  (3x dx  -   2y dy)  +  i ò  C  ( 2y dx + 3x dy) 


I =     å3 n = 1     [ò  C  (3x dx  -   2y dy)   + iò  C  ( 2y dx + 3x dy) 


On C1:  0 < x  < 1, y = 3, dy = 0


ò  C1  (3x dx  -   2y dy)  +  i ò  C1  ( 2y dx + 3x dy)   


=  0 1    3x dx  +   i 0 1    6 dy  =    [3/2 x2] 0 1       +   i[6y] 0 1    


=  3/2 + 6i


On C2: 3 < y  < 5, x = 1, and dx = 0


ò  C2  (3x dx  -   2y dy)  +  i ò  C2  ( 2y dx + 3x dy)   


=   ò3 5   ( -2y ) dy  +   i ò3 5     3 dy  =      [- y2] 3 5      +   i[3y] 3 5


= - 16 + 6i


On C3: 1 < t  < 0, x = t, and dx = dt, y = 2t +3, dy = 2dt 


Then:


ò  C3  (3x dx  -   2y dy)  +  i ò  C3  ( 2y dx + 3x dy)   


=   1 0   [ 3t  dt  - 2(2t + 3) 2 dt] + i  1 0   [ 2(2t + 3) dt + 3t (2dt)]


= - 1 0    (5t  + 12)  dt   + i 1 0    (10t  + 6)  dt  


=   -  [5t2 / 2 + 12t] 1 0  + i[5t2  + 6t] 1 0     =  29/2 – 11i

Then the contour integral value is:


I =  ( 3/2 + 6i)  + (-16 + 6i) + (29/2 – 11i) =  0 + i


Problems  for Math Mavens:

1) For the closed path shown in the diagram below, evaluate the contour integral. I.

No automatic alt text available.
Let f(z) = z 2

   2) For the example shown in the blog post (Fig. 1) , what would the value of I be if:


f(z) = 3x + i3y?