问题 选择题 已知函数f(x)=-x,x>13x,x≤1,若f(x)=2,则x=( )A.-2B.log23C.log32D.2 答案 若x>1,则-x=2,解得x=-2,舍去;若x≤1,则3x=2,解得x=log32,综上,x=log32.故选C.