Physics Forums

Thread Closed

Page 1 of 2   1   2  >

To find logarithm of a complex number

#2

Hi,
Well can anyone tell me how to find the natural logarithm of a complex number p + iq.
Also please tell me how to convert it into logarithm to the base 10.
An external link to a webpage (where all the details are given) will be appreciated.

Recognitions:      Homework  Help     Science  Advisor  Write the complex number in polar form and it should be evident how to find the logarithm.  To convert the logarithm to base 10 use log z = ln z/ln 10.

Recognitions:      Gold Member        Science  Advisor     Staff Emeritus  Of course, since the argument of a complex number (the angle part of the polar form) can have any multiple of $2\pi$ added to it, the log function is, like most complex functions, multi-valued.

Recognitions:
Homework Help
Science Advisor

To find logarithm of a complex number

the defn of ln(z) is the integral of the differential dw/w along a path from w = 1 to w = z, but not passing through w=0. the ambiguity is in the choice of that path.

if you transform it to r,theta coordinates I am guessing that differential becomes dr/r + i dtheta. since dr/r has a primitive, namely it equals dln|r|, which is dwefined everywhere except at 0, that part of the integral is not dependent on the path.

but the other part idtheta, does depend on how much angle is swept out wrt the origin by the whole path.

so the real part of the log of z is just the log of the absolute value |z|, but the complex part equals i times some determination of the angle arg(z).

I didn't really calculate this out just now, but this is probably very close to correct, as this is one of my long time favorite objects. I never understood complex functions or logs until I saw it explained roughly this way in Courant's calculus book (where else?).

Recognitions:      Homework  Help     Science  Advisor  thats why 3^(ipi) = -1, i.e. minus one has absolute value 1 so real log zero, but angle pi, so complex part ipi.  and also why e^(2ipi) = 1, since one determination of the angle of 1 is 2pi.

I remember something like  Ln(z) = Ln(|z|) + iArg(z)  where |z| is the amplitude and arg(z) is the angle in radians between the point z and x axis.

Recognitions:
Gold Member
Science Advisor
Staff Emeritus

Quote by Kaan 					 				 				I remember something like  Ln(z) = Ln(|z|) + iArg(z)  where |z| is the amplitude and arg(z) is the angle in radians between the point z and x axis.
And, again, since the angle Arg(z) + $2kpi$, for any integer i, gives the same point, ln(z)= ln(|z|)+ i Arg(z)+ $2ki\pi$

Quote by mathwonk 					 				 				the defn of ln(z) is the integral of the differential dw/w along a path from w = 1 to w = z, but not passing through w=0.  the ambiguity is in the choice of that path.
i don't really want to start anything, wonk, but while i believe that is true, is it the definition?

i didn't even think that was the definition for the real logarithm

$$\log(x) \equiv \int_1^x \frac{1}{u} du$$

i thought that the definition had more to do with

$$\log(x y) = \log(x) + \log(y)$$

that's what defines some function as a logarithm.

then it can be shown that for the function:

$$f_A(x) \equiv \int_1^x \frac{A}{u} du$$

$$f_A(xy) = \int_1^{xy} \frac{A}{u} du = \int_1^{x} \frac{A}{u} du + \int_x^{xy} \frac{A}{u} du = \int_1^{x} \frac{A}{u} du + \int_1^{y} \frac{A}{u} du = f_A(x) + f_A(y)$$

so we can say that fA is logarithmic. and the natural logarithm was such that numerator A is 1.

isn't this a difference between what is definition and what is a resulting property?

They're both perfectly valid definitions.  Some properties are easier to prove using one choice of definition over the other.   An example is this PDF using an alternate definition of the exp(x), and deriving some specific results from that. http://www.math.lsu.edu/~mcgehee/Exp.pdf

Recognitions:
Gold Member
Science Advisor
Staff Emeritus

Quote by rbj 					 				 				i don't really want to start anything, wonk, but while i believe that is true, is it the definition?  i didn't even think that was the definition for the real logarithm  $$\log(x) \equiv \int_1^x \frac{1}{u} du$$  i thought that the definition had more to do with  $$\log(x y) = \log(x) + \log(y)$$  that's what defines some function as a logarithm.  then it can be shown that for the function:  $$f_A(x) \equiv \int_1^x \frac{A}{u} du$$  $$f_A(xy) = \int_1^{xy} \frac{A}{u} du = \int_1^{x} \frac{A}{u} du + \int_x^{xy} \frac{A}{u} du = \int_1^{x} \frac{A}{u} du + \int_1^{y} \frac{A}{u} du = f_A(x) + f_A(y)$$  so we can say that fA is logarithmic.  and the natural logarithm was such that numerator A is 1.  isn't this a difference between what is definition and what is a resulting property?
What makes you think there is such a thing as such a thing as "the" definition of ln(x)?
Any function can have many different equivalent definitions. though it is a matter of taste, I would think that a definition that gives a direct formula ($ln(x)= \int_1^x dt/t$) is better than a definition that says the fnction has such and such properties (ln(x) is the function f such that f(xy)= f(x)+ f(y) and f(1)= 0)/

Quote by HallsofIvy 					 				 				What makes you think there is such a thing as such a thing as "the" definition of ln(x)?
i guess i normally think that a definition comes first, chronologically in the history or pedagogy.

in that sense, i think of logarithms as the generalized exponent of some given base (which is "e" if it's a "natural logarithm" - why e takes on the value that it does has to do with that integral, that wonk was using as a defining expression).

i didn't like it, but in my old calc book (Seeley, and i generally really like the book), they simple defined the natural exponential of a complex number as

$$e^z = e^{\mathrm{Re}(z)} \cos\left(\mathrm{Im}(z)\right) \ + \ i e^{\mathrm{Re}(z)} \sin\left(\mathrm{Im}(z)\right)$$

and then stated that the definition was a good one since it reverted to the previous definition of ex for a real argument (when Im(z)=0) and satisfied ez+w = ez ew for any complex z and w. for me, that was an unsatisfying "definition".

Hello:  So if my function was  LN [ -exp(cx)/sin(d)  - i  ]  = ?  Then, I would decompose it to real and imaginary parts?  The larger problem is  LN [ -exp(cx)/sin(d)  - i  ] - LN [ -exp(cx)/sin(d)  + i  ]   where c and d are constants.    ???

Recognitions:
Gold Member
Science Advisor
Staff Emeritus

Quote by BCox 					 				 				Hello:  So if my function was  LN [ -exp(cx)/sin(d)  - i  ]  = ?  Then, I would decompose it to real and imaginary parts?
Assuming that -exp(cx)/sin(d) is real, that is of the form ln(a- i) with a= -exp(cx)/sin(d). Rewrite a- i in "polar form", $re^{i\theta}$ with $r= \sqrt{exp(2cx)/sin^2(d)+ 1}$$= \sqrt{exp(2cx)+ sin^2(d)}/sin(d)$ and $\theta= arctan(sin(d)/exp(cx))$. Then $ln(a- i)= ln(r)+ \theta i+ 2k\pi i$ or
$$ln(-exp(cx)/sin(d)- i)= \frac{1}{2}ln(exp(2cx)+ sin^2(d))- ln(sin(d))+ arctan(sin(d)/exp(cx))i+ 2k\pi i$$

The larger problem is  LN [ -exp(cx)/sin(d)  - i  ] - LN [ -exp(cx)/sin(d)  + i  ]   where c and d are constants.    ???

Hmm... perhaps a rephrase of the question is more appropriate.  I want to take the limit of the following function as x -> infinity  (1/d) * arcot [ - exp(cx) / sin(d) ]  where d is (-pi,0)  Now a prior condition would stipulate that the above has to go to zero as x tends to infinity.  But I am more interested at the rate at which the function goes to zero as x -> infinity.  For one case as d->0, the first term tends to infinity.  But I have another condition telling me that the whole function must approach zero; so that the second term arcot() must approach zero at a faster rate than 1/d.  But analytically, what is the rate that   (1/d) * arcot [ - exp(cx) / sin(d) ] ~ ? as x->infinity

I'm not really a "mathematician", but for what its worth, you could put the complex number into a power series and hopefully try to see what it converges too...no? :( ??

Recognitions:      Gold Member        Science  Advisor     Staff Emeritus  ?? A power series is necessarily a function.  How do you put a number in a power series.

Quote by HallsofIvy 					 				 				?? A power series is necessarily a function.  How do you put a number in a power series.
right. It's tricky

Thread Closed

Page 1 of 2   1   2  >

Thread Tools

|                                                            |                                  |         |
|------------------------------------------------------------|----------------------------------|---------|
| Similar Threads for: To find logarithm of a complex number |                                  |         |
| Thread                                                     | Forum                            | Replies |
|                                                            | Calculus & Beyond Homework       | 12      |
|                                                            | Calculus & Beyond Homework       | 0       |
|                                                            | Precalculus Mathematics Homework | 14      |
|                                                            | Calculus & Beyond Homework       | 1       |
|                                                            | Calculus                         | 4       |
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 9, "mathjax_display_tex": 10, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9443142414093018, "perplexity_flag": "middle"}