View Single Post
Coda Coda is offline
Developer
Default   #203  
Let's consider p(x) = x2 + 1. We know there are two roots, but none of them are real. But what about imaginary roots, now that we know about them?

Well, let's pull out our old friend the quadratic formula. a=1, b=0, c=1, so:

x = (-0 +/- sqrt(02 - 4*1*1))/(2*1)
x = +/- sqrt(-4) / 2
x = +/- 2sqrt(-1) / 2
x = +/- sqrt(-1)
x = +/- i

So x = i and x = -i are the imaginary roots of the function!



Now, if you want to think about what complex numbers LOOK like... It gets complicated!

If real numbers are one-dimensional, then complex numbers are two-dimensional. If functions of real numbers can be plotted in two dimensions... functions of complex numbers are plotted in FOUR. That's not easy to imagine on its own!

But you CAN think of it as a FIELD.

Imagine the real number line. If you were to map a function over it, then each point on that line would have a corresponding number for the value of the function at that point.

For complex numbers, imagine a plane. If you consider f(x + yi) -- that is, the real part of the number along the x axis, and the imaginary part along the y axis -- then you can evaluate the function at any point on the plane, and the result is a two-dimensional vector. For example, this is a graph of the function f(x) = (x + 2)(x - 2), if you allow x to take on complex values:



With a graph like this, the roots are the places where the length of the vector is zero. The real roots are places where this is true on the x axis. The imaginary roots are places where this is true on the y axis. There could also be complex roots: Consider the function f(x) = x4 + 1. We know it has to have four roots, but we can obviously see that none of them are real... Let's solve it anyway!

(Lots of algebra, put in a spoiler for brevity)


Therefore, the four complex roots of f(x) = x4 + 1 are +/-sqrt(1/2) +/- sqrt(1/2)i. No real roots! No imaginary roots! But if you take (x - sqrt(1/2) - sqrt(1/2)i)(x - sqrt(1/2) + sqrt(1/2)i)(x + sqrt(1/2) - sqrt(1/2)i)(x + sqrt(1/2) + sqrt(1/2)i) and multiply it out, sure enough you get back to x4 + 1 like we wanted!
Games by Coda (updated 4/8/2025 - New game: Marianas Miner)
Art by Coda (updated 8/25/2022 - beatBitten and All-Nighter Simulator)

Mega Man: The Light of Will (Mega Man / Green Lantern crossover: In the lead-up to the events of Mega Man 2, Dr. Wily has discovered emotional light technology. How will his creations change how humankind thinks about artificial intelligence? Sadly abandoned. Sufficient Velocity x-post)
Old Posted 02-14-2017, 01:57 AM Reply With Quote