问题
填空题
设f(x)为定义在R上的奇函数,且当x>0时,f(x)=log2(x+2),则f(x)的解析式为 ______.
答案
∵f(x)为定义在R上的奇函数
∴f(0)=0
设x<0,则-x>0,
∴f(-x)=log2(2-x)
∵f(x)为定义在R上的奇函数
∴f(x)=-f(-x)=-log(2-x)
∴f(x)=log2(x+2) ,(x>0) 0 ,(x=0) -log2(2-x) ,(x<0)
故答案为:f(x)=log2(x+2) ,(x>0) 0 ,(x=0) -log2(2-x) ,(x<0)