8

I've learned that

$$\bbox[8px,border:1px solid black]{\operatorname{Re}(z)= \frac{z+\overline{z}}{2} \qquad \qquad \operatorname{Im}(z)=\frac{z-\overline{z}}{2i}} $$

And that in the number $z=a+bi$, $a$ is the real part and $b$ is the imaginary part. The formulas I mentioned above are used to get $a$ and $b$ alone. But by looking at $z$, I could get the real part just by taking $a$ and ignoring the rest. The same is valid for $b$ and in both cases, without using the formulas. So why are these formulas important? I just learned the basics of complex numbers and still don't know why one needs those formulas.

Hakim
  • 10,213
Red Banana
  • 23,956
  • 20
  • 91
  • 192
  • 9
    "But by looking at $z$, I could get the real part just by taking $a$ and ignoring the rest. The same is valid for $b$ and in both cases, without using the formulas." What if you're not given a complex number in the form $a+ib$? What if you're given, say, $\sqrt{17}e^{i\pi/13}$? – Git Gud Jun 27 '14 at 16:40
  • 7
    But by looking at z, I could get the real part just by taking a and ignoring the rest: this statement is true only if you're given $z$ in algebraic form. What if you're given $z=\mathrm{e}^{2i}$? (Edit: beaten by @GitGud). – gniourf_gniourf Jun 27 '14 at 16:41
  • 1
    Well for one, you have an algebraic (as opposed to geometric or intuitive) proof that $|Re(z)|=|\frac{z+\bar{z}}{2}|<\frac{1}{2}(|z|+|\bar{z}|) = \frac{2}{2}|z|=|z|$ – Squirtle Jun 27 '14 at 16:45
  • I see. I still didn't read about complex numbers expressed in that way. I just discovered a few seconds ago that they are called complex numbers in the exponential form. – Red Banana Jun 27 '14 at 16:47
  • 3
    @GitGud In that case we use $\mathrm{e}^{\mathrm{i}\theta} = \cos\theta + \mathrm{i}\sin\theta$ and conclude that $a=\sqrt{17}\cos\frac{\pi}{13}$ and $b=\sqrt{17}\sin\frac{\pi}{13}$. – Fly by Night Jun 27 '14 at 17:00
  • @FlybyNight You still need to transform it in the algebraic form, that's my point. I could choose a more complicated example like $\sqrt{-\sqrt{2}+i\root 4 \of 2}$ for a well defined $\sqrt \cdot$. – Git Gud Jun 27 '14 at 17:02
  • @GitGud OK, use the OP's formula and your example to find the real part. What exactly is the conjugate of $$\sqrt{-\sqrt{2}+\mathrm{i}\sqrt[4]{2}} \ ?$$ It's not always true that $\mathrm{f}(\overline{z}) = \overline{\mathrm{f}(z)}$. – Fly by Night Jun 27 '14 at 17:11
  • @FlybyNight I don't know what it is and that's the whole idea, I know the real part can be written as in the question. – Git Gud Jun 27 '14 at 17:14
  • @GitGud I don't know what it is either. If we don't know what the conjugate is then the OP's formula is useless. It gives a formal expression for the real and imaginary parts, but then so do $\Re(z)$ and $\Im(z)$. – Fly by Night Jun 27 '14 at 17:18
  • @FlybyNight You're right, I had missed your point. Anyway the square root is defined as as an appropriate exponential and logarithm, taking the conjugate of those should pose no problem (I didn't check). – Git Gud Jun 27 '14 at 17:19
  • I found a quite practical use: I was doing an electrical engineering problem in which I had to make sure a particular parameter(involving variables) was purely real. It would have been pretty tough without the above formula. – William R. Ebenezer Feb 13 '20 at 13:42

5 Answers5

10

This is a nice question. We often learn formulae without asking why they are useful.

I've re-typed this post half a dozen times. Every time, I thought I had a nice use, but then found out that I didn't need the formulae after all. Having said that, I think that I have found one.

Using the exponential form $z=\mathrm{e}^{\mathrm{i}\theta} = \cos\theta + \mathrm{i}\sin\theta$, we see that

$$\begin{eqnarray*} \cos\theta &=& \frac{1}{2}\!\left(\mathrm{e}^{\mathrm{i}\theta} + \mathrm{e}^{-\mathrm{i}\theta}\right) \\ \\ \sin\theta &=& \frac{1}{2\mathrm{i}}\!\left(\mathrm{e}^{\mathrm{i}\theta} - \mathrm{e}^{-\mathrm{i}\theta}\right) \end{eqnarray*}$$ We can use these formulae to evaluate sine and cosine over the complex plane: $$\begin{eqnarray*} \cos(\mathrm{i}) &=& \frac{1}{2}\!\left(\mathrm{e}^{\mathrm{i}\mathrm{i}} + \mathrm{e}^{-\mathrm{i}\mathrm{i}}\right) \\ \\ &=& \frac{1}{2}\!\left(\mathrm{e}^{-1} + \mathrm{e}^{1}\right) \\ \\ &=& \frac{1+\mathrm{e}^2}{2\mathrm{e}}\approx 1.543 \end{eqnarray*}$$ I have ignored the multi-valued problem, i.e. $\mathrm{e}^{\mathrm{i}\theta} = \mathrm{e}^{\mathrm{i}(\theta+2\pi k)}$ for all $k \in \mathbb{Z}$.

Fly by Night
  • 32,272
  • Using $\cos\theta = 1/2(e^{i\theta} + e^{-i\theta})$ is also handy for evaluating certain integrals of the form $\int{e^{a\theta}\cos{(b\theta)}d\theta}$. – Hao Ye Jun 27 '14 at 21:55
  • These presentations of the trigonometric functions also explain (in some sense) the strong parallels between trig functions and hyperbolic functions. –  Jun 28 '14 at 03:59
  • @StevenTaschuk Absolutely. I see them as a single function. If $z \in \mathbb{R}$ then we get the good, old fashioned, cosine function. If $z \in \mathrm{i}\mathbb{R}$ we get the hyperbolic cosine function. I remember first learning this. I got such a buzz. – Fly by Night Jun 29 '14 at 13:19
3

For example, you know that $e^z=e^{x+iy}=e^x(\cos y + i \sin y)$ and $\overline{e^z}=e^{\overline{z}}=e^x(\cos y -i \sin y)$, so you have two pretty equations $\sin y=\frac{e^{iy}-e^{-iy}}{2i}$ and $\cos y=\frac{e^{iy}+e^{-iy}}{2}$.

agha
  • 10,038
  • Could you justify your claim that $\overline{\mathrm{e}^z}=\mathrm{e}^{\overline{z}}$? In general $\overline{\mathrm{f}(z)} \neq \mathrm{f}(\overline{z})$. – Fly by Night Jun 27 '14 at 17:41
  • @Ian The comments section of an answer is to allow people to ask for extra detail or to suggest improvements from the person answering the question. My comment was directed at agha and was a request for him to justify his steps. It was not a general appeal for an answer. Had that been the case then I would have posted it as a question. – Fly by Night Jun 27 '14 at 17:49
  • @Fly by night Yes, you'er right, it's property of exponential function, we have $e^{x+iy}=e^x(\cos y + i \sin y)$ by definition, so, $\overline{e^z}=e^x(\cos y - i \sin y)=e^x(\cos -y - i \sin -y)=e^{x-iy}=e^{\overline{z}}$ – agha Jun 27 '14 at 18:01
  • 2
    Euler's formula for complex exponentials is not a definition, it is a formula. We do have $\overline{f(z)}=f(\overline{z})$ in any region symmetric about the real axis where $f$ is defined by a real-coefficient power series, which is all of $\Bbb C$ for $\exp$. – anon Jun 27 '14 at 18:05
  • @blue Let's be careful here. What do you mean by "real-coefficient power series"? The power series of $\mathrm{e}^{\mathrm{i}\theta}$ has real coefficients for all even powered terms and imaginary coefficients for all odd powered terms.

    $$1+\mathrm{i}\theta-\frac{1}{2}\theta^2-\frac{\mathrm{i}}{3!}\theta^3+\frac{1}{4!}\theta^4-\frac{\mathrm{i}}{5!}\theta^5+\cdots$$

    – Fly by Night Jun 27 '14 at 18:35
  • @Fly How am I not being careful? I never said $f(\theta)=e^{i\theta}$ has a real-coefficient power series, or that it satisfies $f(\overline{\theta})=\overline{f(\theta)}$ (it doesn't). I said the function $f(z)=\exp z$ (the one agha was talking about in his or her comment) has a real-coefficient power series, and hence satisfies the conjugation-intertwining rule (all of which is correct). – anon Jun 27 '14 at 18:39
  • @blue Please don't get defensive. I wasn't criticising you (I upvoted your comment). I was just saying: "let's be careful". The additional clarification that you have provided fills in all of the possible misinterpretations. – Fly by Night Jun 27 '14 at 18:43
  • Okay. ${}{}{}{}$ – anon Jun 27 '14 at 18:56
2

You have $z + \bar{z} =4$

and you are asked to find real part of the complex number you get it by this formula. This is most basic use of this formula, later you advance in the course you will see its importance .

One suggestion whenever learning a new topic and its foundation do not think what is its importance unless you are genius it just that let question come think how formula is applied and then rereading the topic you can yourself get to the point. Though it is good that you asked here as it opens the grounds for you to see it's far reaching application.

Squirtle
  • 6,698
DSinghvi
  • 565
1

Allow me to explain a couple of uses for the formulas for $\sin$ and $\cos$ in terms of $e^{iz}$.

We can combine them with the geometric sum formula to compute various trigonometric sums and products without hard-to-remember trig formulas. E.g. $\sin(x)+\sin(2x)+\cdots+\sin(nx)$.

We can interchange between Fourier expansions in terms of real sines and cosines or complex exponentials, or compute integrals involving sines and cosines (e.g. the orthogonality relations).

Additionally, while those formulas for the real and imaginary parts of a complex number may not be entirely ubiquitous, the idea behind them is very important in higher math: decomposing something into its "eigenparts." This appears in linear algebra, where a diagonalizable operator can be decomposed as a direct sum of scalar operators on eigensubspaces. One can symmetrize or antisymmetrize tensors (or perform even more exotic skew-symmetrizations). One can decompose a function into an integral mixture of dual functions (characters in the generalized setting of locally compact abelian groups and abstract harmonic analysis). One can decompose into roots and weights in the setting of Lie algebras and representation theory. And so on.

anon
  • 151,657
1

One example of a domain in which these can be useful is differential equations.
Given, say, the equation $ \frac{d^2y}{dx} + y = 0 $ there are techniques that allow you to determine that the solution is $ y = a\cdot e^{ti} + b\cdot e^{-ti} $ where $ a $ and $ b $ are arbitrary complex numbers. Knowing that $ e^{ti} = \overline{e^{-ti}} $, and that Re(z) and Im(z) can be written as linear combinations of $ z $ and $\bar{z} $, we can reformulate the solution as $ y = c \cdot Re(e^{ti}) + d \cdot Im(e^{ti}) $ or $ y = c \cdot cos(t) + d \cdot sin(t) $ (with $c$ and $d$ again arbitrary constants).

Basically, knowing those identities helped us find a solution to the equation using only real numbers.