已知函数f(x)=log12x(x>0)(12)x(x≤0),若f(a)=2,则实数a的值为______.-数学

题目简介

已知函数f(x)=log12x(x>0)(12)x(x≤0),若f(a)=2,则实数a的值为______.-数学

题目详情

已知函数f(x)=
log
1
2
x(x>0)
(
1
2
)
x
(x≤0)
,若f(a)=2,则实数a的值为______.
题型:填空题难度:中档来源:不详

答案

函数f(x)=
logclass="stub"1
2
x(x>0)
(class="stub"1
2
)
x
(x≤0)

因为f(a)=2,
若x>0,可得logclass="stub"1
2
a
=2,解得a=class="stub"1
4

若x≤0,可得(class="stub"1
2
)a
=2,解得a=-1;
解得a=-1或class="stub"1
4

故答案为:-1或class="stub"1
4

更多内容推荐