The maximum value of 1+sinπ4+θ+2cosπ4−θ for real values of θ, is
We have,
⇒y=1+sin(π4+θ)+2cos(π4−θ) ⇒y=1+12(sinθ+cosθ)+2(cosθ+sinθ) ⇒y=1+(2+12)sinθ+(2+12)cosθ ⇒y=1+(2+12)(cosθ+sinθ) (∵cosθ+sinθ≤2] ⇒y≤1+(2+12)2⇒y≤4
Hence, the maximum value is 4.