Solve the following equation.

​(Simplify your answer. Express complex numbers in terms of . Type an exact​ answer, using radicals as needed. Use a comma to separate answers as​ needed.)

x^2 + 4 = 0

To solve the equation x^2 + 4 = 0, we can subtract 4 from both sides of the equation:

x^2 = -4.

Now, we can take the square root of both sides:

x = ±√(-4).

Since there is no real number whose square is -4, we can express the answer in terms of the imaginary unit i:

x = ±2i.

Thus, the solution to the equation x^2 + 4 = 0 is x = ±2i.