Skip to main content
\(\newcommand{\trace}{\operatorname{tr}} \newcommand{\real}{\operatorname{Re}} \newcommand{\imaginary}{\operatorname{Im}} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section1.8Complex Numbers and Differential Equations

Objectives
  • To understand the notation associated with complex numbers, including their Cartesian and polar/exponential forms, notations for conjugates, absolute values (also called the complex modulus), and so on.

  • To understand first-order differential equations, such as \(\frac{dz}{dt} = f(t, z),\) where \(z\) is allowed to be complex.

  • To understand Euler's formula \(e^{i\theta}=\cos(\theta) + i\sin(\theta),\text{,}\) and how to work with it in the context of differential equations.

Recall the real numbers, denoted by \(\mathbb{R}\text{,}\) which consist of all numbers which are positive, negative, or zero. The real numbers include numbers such as \(17, \sqrt{2},-5.231,\pi,e,\frac45\text{,}\) and so on. We define a complex number to be a "number" of the form \(z=a+bi\text{,}\) where \(a\) and \(b\) are real numbers, and \(i^2=-1\text{.}\) Loosely speaking, we think of \(i\) as being equal to \(\sqrt{-1}\text{,}\) but its defining property is \(i^2=-1\text{.}\)

The real number \(a\) is called the real part of \(z\text{,}\) denoted \(Re(z)\text{,}\) and the real number \(b\) (not \(bi\)) is called the imaginary part of \(z\text{,}\) denoted \(Im(z)\text{.}\) (Note that this means that the "imaginary part" is actually a real number.) Every real number \(a\) can be thought of as a complex number with its imaginary part equal to zero: \(a=a+0i\text{.}\) The word "complex" in "complex number" does not mean "complicated", but instead refers to the fact that a complex number is composed of two parts, similar to the usuage of the word "complex" in "apartment complex".

The set of all complex numbers is denoted by \(\mathbb{C}\text{.}\) Numbers of the form \(z = 0+bi = bi\) where \(b\) is real are called imaginary numbers or sometimes pure imaginary numbers. The set of all imaginary numbers does not have its own symbol, but since they are just \(i\) times a real number, we will denote this set by \(i\mathbb{R}\text{.}\) We can picture the complex numbers on a 2D space called the complex plane, shown below.

The complex plane
Figure1.8.1The complex plane \(\mathbb{C}\) with two complex numbers, \(z\) and \(w\text{,}\) drawn both as a points and as vectors (i.e., arrows pointing from the origin \(0+0i\) to the point in the plane).

Before we get too involved with the details, let's take a quick look at an example of how multiplication works:

\begin{align*} (3+5i)(7+2i)&=7(3+5i)+2i(3+5i)\\ &=21+35i+6i+10i^2\\ &=21+41i+10(-1)\\ &=11+41i \end{align*}

Here, we simply used the distributive rule to "foil out" the binomials, used the fact that \(i^2=-1\text{,}\) and collected like terms. Multiplication of complex numbers always works like this. In general, for two complex numbers \(z=a+bi\) and \(w=c+di\text{,}\) we define their product as

\begin{equation*} zw=(a+bi)(c+di)=(ac-db) + (ad+bc)i \end{equation*}

although there is little need to memorize this formula; it is usually easier to just work it out as in the example above.

Addition (and subtraction) are easier: we just add (or subtract) the real parts and the imaginary parts separately:

\begin{align*} z+w = (a+bi) + (c+di)&=(a+c) + (b+d)i\\ z-w = (a-bi) + (c+di)&=(a-c) + (b-d)i \end{align*}

We can also think of addition graphically, as in the image below.

Complex addition
Figure1.8.2Visualization of adding two complex numbers. Notice that we simply add the real parts, and separately add the complex parts. The result is shown in terms of vectors: one vector is "dragged" so that its tail is placed on the tip of the other vector, resulting in a new vector which is the sum of the complex numbers.

Division is only slightly more involved. It uses the multiplication rule, but also the high school technique of "multiplying and dividing by the conjugate".

\begin{align*} \frac{z}{w} &= \frac{a+bi}{c+di}\\ &=\frac{(a+bi)(c-di)}{(c+di)(c-di)}\\ &=\frac{(ac+bd) +(bc-ad)i}{c^2+d^2}\\ &=\frac{ac+bd}{c^2+d^2} + \frac{bc-ad}{c^2+d^2}i \end{align*}

To check your understanding, try to show that the following is true:

\begin{equation*} \frac{3+5i}{7+2i}=\frac{31}{53} + \frac{29}{53}i. \end{equation*}

It turns out that the conjugate of a complex number is so special that it gets its own notation. For a complex number of the form \(z=a+bi\text{,}\) where \(a\) and \(b\) are real, we denote its complex conjugate by

\begin{equation*} \overline{z}=a-bi\quad\quad (\text{the complex conjugate of }z) \end{equation*}

Complex conjugation
Figure1.8.3Visualization of complex conjugation. The complex numbers \(z\) and \(\overline{z}\) are reflections of each other over the real line.
It is straightforward to check (try it!) that for any complex numbers \(z\) and \(w\text{,}\)

\begin{align*} \overline{z+w} &= \overline{z}+\overline{w},\\ \overline{z-w} &= \overline{z}-\overline{w},\\ \overline{zw} &= \overline{z}\,\overline{w},\\ \overline{\left(\frac{z}{w}\right)}&=\frac{\overline{z}}{\overline{w}}. \end{align*}

We also have

\begin{equation*} \overline{\overline{z}} = z \end{equation*}

and, moreover,

\begin{align*} z + \overline{z} &= (a+bi) + (a-bi) = 2a,\\ z - \overline{z} &= (a+bi) - (a-bi) = 2bi. \end{align*}

That is,

\begin{equation*} \fbox{ $\displaystyle z + \overline{z}= 2Re(z)\qquad \text{and}\qquad z + \overline{z}= 2i\,Im(z).$ } \end{equation*}

The complex conjugate can also be thought of as a reflection in the complex plane about the real axis. In particular, the only numbers that do no change upon this reflection are the real numbers. This implies that

\begin{equation*} \fbox{ \(z \text{ is a real number if and only if }\,\,\, z = \overline{z}.\) } \end{equation*}

If \(z = \overline{z}\text{,}\) it is sometimes said that \(z\) satisfies the reality condition. Recall that absolute value symbol \(|x|=\sqrt{x^2}\) for real numbers \(x\text{.}\) One can think about \(|x|\) as the distance of \(x\) away from zero. In the same spirit, we extend this notation to complex numbers:

\begin{equation*} |z|=\sqrt{a^2+b^2}\quad\quad (\text{for }z=a+bi) \end{equation*}

This can also be thought of as the distance of \(z\) away from the origin \(0+0i\text{.}\) The symbol \(|z|\) is called the complex modulus, the norm, or simply the absolute value. Make note of the following useful identity:

\begin{equation*} z\overline{z} = (a+bi)(a-bi) = a^2-b^2i^2 = a^2-b^2(-1) = a^2+b^2 = |z|^2. \end{equation*}

Are complex numbers "real"? Before we move on, it may be worth addressing a question that may be on some readers' minds: Do complex numbers "really exist" in some sense? This is a great question for a philosophy class, but one should also ask whether any numbers "really exist." What does it mean for the number 5 to "exist"? What about the number \(\sqrt{2}\,\,\text{?}\) Indeed, for centuries, many people even doubted the existence of negative numbers; how can you have, for instance, \(-5\) apples?

In fact, complex numbers and negative numbers gained acceptence at roughly around the same time: in the early-to-mid 19\(^\text{th}\) century. In modern mathematics, if we can define a self-consitent structure (that is, one that doesn't let to any internal logical contradictions), this is good enough to say that something "exists", at least in the mathematical sense. In any case, complex numbers, just like negative numbers, have found such an enormous number of applications in science, engineering, and mathematics (and in particular, differential equations), that it is worth learning how to use them.

Subsection1.8.1Complex Functions and Calculus

The aim of this section is to learn about complex differential equations. However, first it will be useful to understand complex-valued functions of time. These are functions whose input is a real number, interpreted as a time variable, and whose output is a complex number. If we denote a complex-valued function at a time \(t\) by \(z(t)\text{,}\) we can consider its real and imaginary parts, which will themselves be functions of \(t\text{.}\) Let us write:

\begin{equation*} z(t) = a(t) + b(t)i \end{equation*}

where \(a(t)\) and \(b(t)\) are real-valued functions of \(t\text{.}\) Derivatives are defined in the usual way:

\begin{equation*} \end{equation*}
\begin{align*} z'(t)= \frac{dz}{dt}(t) &= \lim_{h\rightarrow0} \frac{z(t+h)-z(t)}{h}\\ &=\lim_{h\rightarrow0} \frac{[a(t+h)+b(t+h)i]-[a(t) + b(t)i]}{h}\\ &=\lim_{h\rightarrow0} \frac{[a(t+h)-a(t)] +ib(t+h)- b(t)]i}{h}\\ &=\lim_{h\rightarrow0} \frac{a(t+h)-a(t)}{h} +\lim_{h\rightarrow0}\frac{b(t+h)- b(t)}{h}i\\ &=a'(t) + b'(t)i \end{align*}

provided that the limits exist. For example:

\begin{equation*} \text{If }z(t) = t^2 + 5t^3i,\text{ then } z'(t) = 2t + 15t^2i. \end{equation*}

Integration is defined similarly:

\begin{equation*} \int z(t)\,dt = \int (a(t)+b(t)i)\,dt = \int a(t)\,dt + i\int b(t)\,dt \end{equation*}

We give an example with a definite integral:

\begin{align*} \int_0^{\pi/2}(\sin(t)+i\cos(t))\,dt &= (-\cos(t)+i\sin(t))\Big|_0^{\pi/2}\\ &= (-\cos(\tfrac{\pi}{2})+i\sin(\tfrac{\pi}{2})) - (-\cos(0)+i\sin(0))\\ &= 1+i \end{align*}
It is straightforward to verify that all of the familiar derivative and integral rules, such as the product rule, the quotient rule, the chain rule, integration by parts, u-substitution, and so on, extend to the complex case.

Subsection1.8.2Complex Differential Equations

Now that we have defined complex derivatives and integrals, there is nothing to stop us from considering complex differential equations! Let us start with an example: Find a function \(z(t)\) satisfying:
\begin{equation*} \begin{cases} \displaystyle\frac{dz}{dt}&= iz,\\ z(0) &=1. \end{cases} \end{equation*}
Before we see a method to solve problems like this, let us first verify that the function \(z(t)=\cos(t)+i\sin(t)\) is a solution. We check:
\begin{align*} \frac{dz(t)}{dt}&= \frac{d}{dt}\cos(t) + i\frac{d}{dt}\sin(t)\\ &= -\sin(t) + i\cos(t)\\ &= i^2\sin(t) + i\cos(t)\quad\text{ (since $i^2=-1$)}\\ &= i(i\sin(t) + \cos(t))\\ &= iz(t) \end{align*}
and also
\begin{equation*} z(0) = \cos(0)+i\sin(0) = 1+i0 = 1. \end{equation*}
Therefore, \(z(t)=\cos(t)+i\sin(t)\) is a solution to the initial value problem above. But wait! We already know how to solve problems like this when the coefficients are real. Consider the following initial value problem, where \(r\) is real:
\begin{equation*} \begin{cases} \displaystyle\frac{dx}{dt}&= rx,\\ x(0) &=1. \end{cases} \end{equation*}
As we have already seen in earlier sections, the unique solution to this problem is given by
\begin{equation*} x(t) = e^{rt} \end{equation*}
If we imagine that this formula extends to the complex case, we would have that the solution \(z(t)\) to the original problem is given by
\begin{equation*} z(t) = e^{it} \end{equation*}

What is meant by a complex exponent? First of all, note that the standard existence and uniquness theorems for real-valued initial value can easily be extended to the case of complex differential equations (with the same proofs, except that we use the complex modulus \(|z|\) instead of the absolute value). Hence, we simply interpret the notation \(e^{it}\) to mean "the solution to the initial value problem \(z'=iz,\,\,z(0)=1\text{.}\)" One can then show that all of the usual exponent rules hold. For example, suppose that \(z(t)\) is the solution to \(z'=aiz,\,\,z(0)=1\text{,}\) and \(w(t)\) is the solution to \(w'=biw,\,\,w(0)=1\text{.}\) Then,

\begin{align*} (zw)'&=z'w + zw'=(aiz)w + z(biw) = (a+b)izw,\\ (zw)(0)&=z(0)w(0)=1\cdot 1 = 1, \end{align*}

from which it follows that \(e^{ait}e^{bit} = e^{(a+b)it}\text{.}\) We have found ourselves in a fortunate position: we have two different expressions which satisfy the same initial value problem; namely, \(z(t) = e^{it}\) and \(z(t)=\cos(t)+i\sin(t)\text{.}\) Therefore, by uniqueness of solutions, we have:

\begin{equation} \fbox{ $\displaystyle e^{it}= \cos(t)+i\sin(t)$ }\label{firstlook08_Euler_Formula}\tag{1.8.1} \end{equation}

This important result is called Euler's formula. (Note: "Euler" is pronounced like "OY-ler", not "YOU-ler.") It is highly worth memorizing. Euler's formula is a major key to understanding complex analysis, as we will see in the next section.

We can get more out of Euler's forumla. By replacing \(t\) by \(-t\) and using the fact that cosine is an even function and sine is an odd function, we obtain

\begin{equation*} e^{-it}= \cos(-t)+i\sin(-t)= \cos(t)-i\sin(t). \end{equation*}

By adding this to Euler's identity, we obtain:

\begin{equation*} e^{it} + e^{-it}= (\cos(t)-i\sin(t)) + (\cos(t)-i\sin(t)) = 2\cos(t). \end{equation*}

Subtracting, we obtain

\begin{equation*} e^{it} - e^{-it}= (\cos(t)-i\sin(t)) - (\cos(t)-i\sin(t)) = 2i\sin(t). \end{equation*}

Dividing the first equation by \(2\) and the second by \(2i\text{,}\) we can express the trig functions entirely in terms of complex exponentials. These formulas are also worth memorizing.

\begin{equation} \fbox{ $\displaystyle \cos(t)= \frac{e^{it} + e^{-it}}{2}\qquad \text{and}\qquad \sin(t)= \frac{e^{it} - e^{-it}}{2i}.$ }\label{firstlook08_complex_sin_cos}\tag{1.8.2} \end{equation}

A beautiful identity. Leonhard Euler (1707-1783) discovered his formula in his mid-thirties and published it in 1748. His proof used Taylor series, a branch of analysis that deals with approximating functions by polynomials. He also realized that by setting \(t=\pi\text{,}\) one obtains \(e^{i\pi}= \cos(\pi)+i\sin(\pi)=-1\text{.}\) Adding \(1\) to both sides yields a formula that was engraved on Euler's tombstone:

\begin{equation*} e^{i\pi} + 1=0. \end{equation*}

This is known as Euler's identity, and it has been call "the most beautiful theorem in mathematics", perhaps because it unites five very important mathematical constants in one formula: \(e, i, \pi,1,\text{ and } 0\text{.}\)

Subsection1.8.3The Polar Form of Complex Numbers

In this section, we will find a very convenient way to write complex numbers, called the polar form of a complex number. First, consider a complex number of the form:

\begin{equation*} z = x + iy. \end{equation*}

Since \(x\) and \(y\) are uniquely identifed with \(z\text{,}\) we can identify \(z\) with the point in the Cartesian plane \((x,y)\text{.}\) Recall that we can always write a point \((x,y)\) in the plane as

\begin{equation*} \begin{cases} x&=& r\cos(\theta),\\ y&=&r\sin(\theta), \end{cases} \end{equation*}

where \(r\geq0\) is the distance from the origin to \((x,y)\) (that is, \(r=\sqrt{x^2+y^2}=|z|\)), and \(\theta\) is the angle between the positive \(x\)-axis and the ray pointing from the origin to the point \((x,y)\text{.}\) Using Euler's identity from the previous section with \(t\) replaced by \(\theta\text{;}\) that is, \(e^{i\theta}= \cos(\theta)+i\sin(\theta)\text{,}\) we find that

\begin{align*} z&=x+iy\\ &=r\cos(\theta)+ir\sin(\theta)\\ &=r(\cos(\theta)+i\sin(\theta))\\ &=re^{i\theta} \end{align*}

Therefore, any complex number can be written as either \(z=x + iy\) or \(z=re^{i\theta}\text{.}\) The first form is called the Cartesian form and the second form is called the polar form. In this form, sometimes \(r\) is called the magnitude or amplitude of \(z\text{.}\)

The polar form gives us a very convenient way to multiply complex numbers together. For example:

\begin{equation*} \text{If } z_1 = r_1 e^{i\theta_1}\text{ and } z_2 = r_2 e^{i\theta_2},\text{ then }z_1z_2=r_1r_2e^{i(\theta_1+\theta_2)}. \end{equation*}

That is, to multiply two complex numbers together, multiply their amplitudes and add their angles. This gives us a new way to interpret multiplication by complex numbers. Recall that multiplying by a real number can be thought of as scaling; for example, multiplying by \(2\) "scales" a quantity to a larger size, and multiplying by \(\frac{1}{2}\) "scales" a quantity to a smaller size. Multiplication by a complex number not only scales a quantity by \(r\text{,}\) but also rotates it by angle \(\theta\text{.}\) This is pictured below.

Complex multiplication
Figure1.8.4Visualization of multiplying two complex numbers. The angles (\(\alpha\) and \(\beta\)) add, and then lengths (\(|z|\) and \(|w|\)) multiply.

With this pictute in mind, notice that

\begin{equation*} i = 0+1i = \cos(\tfrac{\pi}{2}) + i\sin(\tfrac{\pi}{2}) = e^{i\pi/2}. \end{equation*}

Hence, the differential equation we saw earlier, namely

\begin{equation*} \displaystyle\frac{dz}{dt}= iz, \end{equation*}

can be interpreted as giving an instantaneous rotation by \(\pi/2\) radians (i.e., \(90^\circ\)). Such a path traces out a circle, centered at the origin, with radius \(r=1\text{;}\) that is, the unit circle, pictured in the complex plane below.

The complex unit circle
Figure1.8.5The unit circle in the complex plane.

We can also handle fully complex exponents as follows. Let \(\lambda = a+bi\) where \(a\) and \(b\) are real. For any real number \(t\text{,}\) let \(z(t)=e^{\lambda t}\text{.}\) Then

\begin{equation*} z(t)=e^{\lambda t}=e^{(a+bi) t} = e^{at + ibt} = e^{at} e^{ibt} = e^{at}(\cos(bt) + i\sin(bt)) \end{equation*}

In particular, since \(e^{at}>0\text{,}\)

\begin{equation*} |z(t)|= e^{at}|\cos(bt) + i\sin(bt)| = e^{at}(\cos^2(bt) + \sin^2(bt)) = e^{at}. \end{equation*}

This shows that the real part of \(\lambda\) , namely \(a\text{,}\) controls the growth or decay of \(z(t)\) (growth if \(a>0\text{,}\) decay if \(a<0\text{,}\) no growth or decay if \(a=0\)). Moreover, the imaginary part of \(\lambda\text{,}\) namely \(b\text{,}\) controls the oscillation frequency of \(z(t)\) (larger \(b\) means faster oscillations, \(b=0\) means no oscillations).

It is useful to note that the conjugate of \(z(t)=e^{(a+bi) t}\) can also be found as follows.

\begin{equation*} \overline{z(t)}=\overline{e^{(a+bi) t}} = \overline{ e^{at}(\cos(bt) + i\sin(bt))} = e^{at}(\cos(bt) - i\sin(bt)) = e^{(a-bi) t}. \end{equation*}

Subsection1.8.4Applications to Differential Equations

Very often in differential equations (starting in the next chapter), even if the coefficients are real, we will find that the solutions come in the form of complex numbers. For example, a real-value function \(y(t)\) might be expressed in the form
\begin{equation*} y(t) = c_1 e^{(a+bi)t} + c_2e^{(a-bi)t} \end{equation*}
where \(c_1\) and \(c_2\) are complex constants, and \(a\) and \(b\) are real constants. Euler's identity can be used to rewrite such expressions entirely in terms of real-valued functions. First, let us notice what happens when we take the complex conjugate of a complex function in the form \(z=e^{(a+bi)t}\text{.}\) Since \(y\) is real-valued, the reality condition says that \(y = \overline{y}\text{.}\) Hence, we have:
\begin{equation*} c_1 e^{(a+bi)t} + c_2e^{(a-bi)t} = y = \overline{y}= \overline{c_1} e^{(a-bi)t} + \overline{c_2}e^{(a+bi)t} \end{equation*}
Comparing both sides shows that \(c_1 = \overline{c_2}\) and \(c_2 = \overline{c_1}\text{;}\) that is, the coefficients must be complex conjugates. Writing \(c_1 = k_1+ik_2\text{,}\) where \(k_1\) and \(k_2\) are real, we have \(c_2 = k_1-ik_2\text{.}\) Using the rules of conjugates shown in a previous section, we find
\begin{align*} y(t)&=c_1 e^{(a+bi)t} + c_2e^{(a-bi)t}\\ &=(k_1+ik_2) e^{(a+bi)t} + (k_1-ik_2)e^{(a-bi)t}\\ &=(k_1+ik_2) e^{(a+bi)t} + \overline{(k_1+ik_2)e^{(a+bi)t}}\\ &=2Re[(k_1+ik_2) e^{(a+bi)t}]\\ &=2Re[(k_1+ik_2) e^{at}(\cos(bt) + i\sin(bt))]\\ &=2e^{at}Re[(k_1+ik_2) (\cos(bt) + i\sin(bt))]\\ &=2e^{at}Re[k_1\cos(bt) -k_2\sin(bt) + ik_1\cos(bt)+ ik_2\sin(bt)]\\ &=2e^{at}(k_1\cos(bt) -k_2\sin(bt))\\ &=C_1e^{at}\cos(bt) + C_2e^{at}\sin(bt) \end{align*}
where \(C_1\) and \(C_2\) are real constants (one can work out that \(C_1=c_1+c_2\) and \(C_2=i(c_1-c_2)\text{,}\) which are both real, since \(c_1 = \overline{c_2}\text{,}\) but it really only matters that they are some real constants).
Exercise1.8.7

Explain what the real and imaginary parts of a complex number are in your own words.

Exercise1.8.8

Explain how to add a pair of complex numbers together graphically. Consider further the action of multiplying a complex number \(z = a + bi\) by a another complex number \(e^{i \theta}\) of modulus \(1.\) What effect does this action have on \(z\text{?}\)

Subsection1.8.5Exercises

Identify the real and imaginary part of each complex number in Exercise Group1.8.5.16.

\(-7 + 3i\)

\((2+4i)(-1-i)\)

\(\frac{1}{1-i}\)

\(\frac{3+2i}{2-8i}\)

\(e^{(a+bi)t}\) for real numbers \(a\text{,}\)\(b\text{,}\) and \(t\text{.}\)

\(ie^{2 \pi i / 3 }\)

Convert each complex number in Exercise Group1.8.5.710 to polar form.

\(1+i\)

\(3-2i\)

\(i\)

\(2\cos(\theta) + 2 i \sin(\theta)\text{,}\) for \(\theta\) an angle in \([0, 2\pi)\text{.}\)

Each exercise in Exercise Group1.8.5.1114 deals with a trigonometric identity, or a derivative or integral formula for trigonometric functions.

Using Euler's formula, show the angle sum formulae

\begin{equation*} \sin(\alpha + \beta) = \sin(\alpha)\cos(\beta) + \cos(\alpha)\sin(\beta) \end{equation*}

and

\begin{equation*} \cos(\alpha + \beta) = \cos(\alpha)\cos(\beta) - \sin(\alpha)\sin(\beta) \end{equation*}

for real numbers \(\alpha\) and \(\beta\text{.}\) (Hint: Expand both sides of \(e^{(\alpha + \beta)i}=e^{\alpha i}e^{\beta i}\) and compare the real and imaginary parts.)

The Pythagorean Theorem states that for any real \(\theta\text{,}\)

\begin{equation*} \sin^{2}(\theta) + \cos^{2}(\theta) = 1. \end{equation*}

Using the complex definitions of \(\sin\) and \(\cos\) derived in (1.8.2), prove the Pythagorean Theorem.

One way of computing integrals of the form

\begin{equation*} \int e^{\alpha t}\sin(\beta t)\,dt \end{equation*}

involves doing integration by parts twice, then solving an algebraic equation in which the variable of interest is the integral itself.

Instead of using integration by parts, compute this integral by using the complex definition of \(\sin\) in (1.8.2) and integrating directly.

Show that

\begin{equation*} \int_{-\pi}^{\pi}\cos(mt)\sin(nt)\,dt = 0 \end{equation*}

for all integers \(m\) and \(n\text{.}\) To compute the integral, use the complex definitions of \(\sin\) and \(\cos\) in (1.8.2).

Solve the following complex ordinary differential equations Exercise Group1.8.5.1518 up to an arbitrary constant.

\begin{equation*} z' = 5iz \end{equation*}
\begin{equation*} z' = i-z \end{equation*}
\begin{equation*} z' - 3z = e^{5it} \end{equation*}
\begin{equation*} z' + 3iz = \cos(2t) \end{equation*}

Hint: Use the identity in (1.8.2) for cosine.