(a)
x = (ln(1/4) + 2*i*pi*n) / ln(2), for any integer n
x = -2 + ((2*i*pi*n)/ln(2)), for any integer n
x =~ -2 + 9.0647202836543876192553658914333*i*n, for any integer n
If x is a real number, then n = 0, so x = -2
http://www.wolframalpha.com/input/?i=1%2F4%3D2^x
(b)
125 = (25^3) / (5^x)
125 = 15625 / (5^x)
125 * (5^x) = 15625
5^x = 15625/125
5^x = 125
x = (ln(125) + 2*i*pi*n) / ln(5), for any integer n
x = 3 + ((2*i*pi*n)/ln(5)), for any integer n
x =~ 3 + 3.9039625316623427965473047644973*i*n, for any integer n
If x is a real number, then n = 0, so x = 3
http://www.wolframalpha.com/input/?i=125%3D25^3%2F5^x