Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an equation like this: $$a+ib = \log(x+iy).$$

I need to separate the real and imaginary part in RHS so that I can equate the real part of LHS to real part of RHS and imaginary to imaginary part of RHS.

share|cite|improve this question
up vote 2 down vote accepted

You could convert the complex number from algebraic to polar form $r\cdot e^{j\theta} $ where $r=\sqrt{x^2+y^2} $ and $\theta=\arctan\left(\frac{y}{x}\right) $

After that, you can split the $\log$ function into real and imaginary parts:

$$ \log(r\cdot e^{j\theta}) =\log(r) +j\theta\log(e) $$ $$ = \log(r) +j\theta $$ (assuming natural logarithm)

share|cite|improve this answer

Note your equation is equivalent to

$$ e^{a+jb}=a+jb\\ e^ae^{jb}=a+jb\\ e^a(\cos(b)+j\sin(b))=a+jb $$ Then real and imaginary parts have been separated.

share|cite|improve this answer
OP has changed the variables in his post (and it makes sense this now). – M. Vinay Jun 14 '14 at 3:53
That I know but how do I seperate it in real and imaginary part when the complex number is inside a log funciton?. In the above equation forget the LHS. I need to solve the RHS $\log\(x+jy\)$ and seperate this into the form a + jb – Shivji Jun 14 '14 at 3:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.