题目内容
6.求函数f(x)=m(sinx+cosx)+sin2x(x∈R)的最大值.分析 换元法,设t=sinx+cosx,由三角函数知识可得t∈[-$\sqrt{2}$,$\sqrt{2}$],且sin2x=t2-1,可得f(x)=m(sinx+cosx)+sin2x=mt+t2-1,由二次函数区间的最值可得.
解答 解:设t=sinx+cosx=$\sqrt{2}$sin(x+$\frac{π}{4}$)∈[-$\sqrt{2}$,$\sqrt{2}$],
∴t2=(sinx+cosx)2=1+sin2x,
∴sin2x=t2-1,
∴f(x)=m(sinx+cosx)+sin2x=mt+t2-1=(t-$\frac{m}{2}$)2-$\frac{1}{4}{m}^{2}$-1,
当$\frac{m}{2}$≤0时,即m≤0时,此时f(x)max=f($\sqrt{2}$)=1+$\sqrt{2}$m,
当$\frac{m}{2}$>0时,即m>0时,此时f(x)max=f(-$\sqrt{2}$)=1-$\sqrt{2}$m,
故f(x)max=$\left\{\begin{array}{l}{1+\sqrt{2}m,m≤0}\\{1-\sqrt{2}m,n>0}\end{array}\right.$.
点评 本题考查三角函数的值域,涉及换元法和三角函数的值域以及二次函数区间的最值,属中档题.
练习册系列答案
相关题目
14.已知定义在R上的奇函数f(x),满足对任意t∈R都有f(2+t)+f(t)=0,且x∈[0,1]时,f(x)=$\frac{ex}{{e}^{x}}$,若函数g(x)=f(x)-loga|x|在其定义域上有5个零点,则实数a的值为( )
| A. | 7或$\frac{1}{7}$ | B. | 5或$\frac{1}{5}$ | C. | 3或$\frac{1}{3}$ | D. | e或$\frac{1}{e}$ |
1.已知函数f(x)=x2+3f′(1)x+2,则f(1)=( )
| A. | -2 | B. | 2 | C. | 0 | D. | 1 |