Maths Olympiad Prep

Library / /62 of 520

Algebra Difficulty 2.7 Junior Find the answer

Given the function f(x)={2x+a,x1log2x,x>1f(x)=\begin{cases} 2x+a, & x\leqslant 1 \\ \log_2x, & x > 1 \end{cases}, if f(f(12))=4f(f(\frac{1}{2}))=4, then a=a=

Pick one

Solution

Analysis

This question examines the application of piecewise functions and the method of finding function values, which is a basic question.

Solution

Given f(x)={2x+a,x1log2x,x>1f(x)=\begin{cases} 2x+a, & x\leqslant 1 \\ \log_2x, & x > 1 \end{cases}, we know f(12)=a+1f(\frac{1}{2})=a+1.

If a0a\leqslant 0, then f(f(12))=2a+3=4f(f(\frac{1}{2}))=2a+3=4, we get a=12a=\frac{1}{2} (discard this option);

If a>0a > 0, then f(f(12))=log2(a+1)=4f(f(\frac{1}{2}))=\log_2(a+1)=4, we get a=15a=15.

Therefore, the correct answer is B\boxed{\text{B}}.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.