An imaginary number is a complex number that can be written as a realnumber multiplied by the imaginaryunit i, which is defined by its propertyi^2 = −1. The square of an imaginary number bi is −b^2. For example, 5i is animaginary number, and its square is −25.