1
$\begingroup$

Suppose I have a second order differential equation

I can find the complementary solution $y_c$ by finding the roots of the characteristic equation.

Let those roots be $\lambda \pm\mu$

Thus $y_c(t) = C_1e^{t(\lambda + \mu)} + C_2e^{t(\lambda - \mu)}$ where $C_1$ and $C_2$ are real constants

I was taught that this simplifies to $y_c = e^{\lambda}(Acos(\mu t) + Bsin(\mu t))$

I do not understand how the complex part disappears.

$$y_c = C_1e^{t(\lambda + \mu)} + C_2e^{t(\lambda - \mu)} = e^{\lambda t}(C_1e^{\mu t} + C_2e^{-\mu t})$$

$$= e^{\lambda t}(C_1cos(\mu t) +C_1isin(\mu t)+C_2cos(-\mu t) + C_2isin(-\mu t))$$

Since $cos(\mu t) = cos(-\mu t)$ and $sin(\mu t) = -sin(\mu t)$

$$= e^{\lambda t}(C_1cos(\mu t) +C_1isin(\mu t)+C_2cos(-\mu t) + C_2isin(-\mu t))$$

$$= e^{\lambda t}((C_1 + C_2)cos(\mu t) + (C_1-C_2)isin(\mu t))$$

If we let $A = C_1 + C_2$ and $B = C_1 - C_2$ then $$= e^{\lambda t}(Acos(\mu t) + Bisin(\mu t))$$

Notice that there $i$ is still present in the equation. How is the complex part removed?

$\endgroup$

2 Answers 2

2
$\begingroup$

We should have $\lambda \pm i\mu$ and

$$y_c(t) = C_1e^{t(\lambda + i\mu)} + C_2e^{t(\lambda - i\mu)}$$

with $C_2 =\overline{C_1}$, since $y_c$ needs to be real, and with this set upwe can show that

$$y_c(t) = e^{\lambda}(A\cos(\mu t) + B\sin(\mu t))$$

indeed we have

$$y_c(t) = C_1e^{t(\lambda + i\mu)} + C_2e^{t(\lambda - i\mu)}=e^{\lambda t}\left(C_1e^{i\mu t} + C_2e^{- i\mu t}\right)=$$

and by $C_1=\frac{A+iB}2$ and $C_2=\frac{A-iB}2$

$$=e^{\lambda t}\left(A\frac{e^{i\mu t}+e^{-i\mu t}}2 + B\frac{e^{i\mu t}-e^{-i\mu t}}{2i}\right)=e^{\lambda}(A\cos(\mu t) + B\sin(\mu t))$$

$\endgroup$
4
  • $\begingroup$ Ah yes, I missed the $i$, but how would it cancel down the road? wouldn't we be left with $cos(\mu i t)$ and $sin(\mu i t)$? How does the $i$ cancel? $\endgroup$ Nov 14, 2019 at 20:44
  • $\begingroup$ By Euler's identity $ e^{t(\lambda + i\mu)}=e^{\lambda t}(\cos (\mu t)+i\sin(\mu t)$ $\endgroup$
    – user
    Nov 14, 2019 at 20:46
  • $\begingroup$ I think what you (Cedric) are looking for is some sort of 'inverse' to the formula in user's last comment, namely $\cos x = \frac{e^{ix} + e^{-ix}}{2}$ and $\sin x = \frac{e^{ix} - e^{-ix}}{2i}$, which follow from Euler's identity $\endgroup$
    – Vincent
    Nov 14, 2019 at 20:51
  • 1
    $\begingroup$ @Vincent We can obtain the result in both ways. In the edit I've indicated the one you are referring to. $\endgroup$
    – user
    Nov 14, 2019 at 20:53
1
$\begingroup$

Suppose our characteristic values are $a\pm ib,$ where $a,b$ are real and $b\ne 0.$ Then it follows that the functions $e^{(a+ib)t}$ and $e^{(a-ib)t}$ are cjaracteristic solutions of the differential equation. Now here's the idea -- since these solutions are independent, any linear combination of these solutions is also a solution, and an arbitrary linear combination of two independent solutions represents the general solution of the system.

Before we proceed we may simplify the functions to be $e^{at}e^{ibt}=e^{at}(\cos bt+i\sin bt)$ and $e^{at}e^{-ibt}=e^{at}(\cos bt-i\sin bt).$ If we now add these solutions, we obtain $2e^{at}\cos bt$ and if we subtract we get $2ie^{at}\sin bt,$ which are also solutions by the above italicised fact. Again, by that fact, an arbitrary linear combination of these solutions represents the general solution of the equation, so that we have the general solution to be $$Ae^{at}\cos bt+Be^{at}\sin bt=e^{at}(A\cos bt+B\sin bt),$$ where $A,B$ are constants (not necessarily real now). Thus, the complex constants have not disappeared. They may appear depending on the initial conditions, thought they rarely do in applications -- that is, usually, the initial conditions always fix $A$ and $B$ to be real.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .