What is the value of x if x^2 = 4?

The value of x is either 2 or -2. This is because the square of both those numbers is 4 as shown below:

2 * 2 = 4
-2 * -2 = 4