Exponential function f (x) = 2 ^ x + 1 / (2 ^ | x |) = 2, then x =?

Exponential function f (x) = 2 ^ x + 1 / (2 ^ | x |) = 2, then x =?

x>=0
2^x+1/2^x=2
Let a = 2 ^ X
a²-2a+1=0
a=1
2^x=1
x=0
x