a) Ta có:
−1≤cosx≤1,∀x∈R⇔0≤1+cosx≤2⇔0≤2(1+cosx)≤4⇔1≤√2(1+cosx+1≤3−1≤cosx≤1,∀x∈R⇔0≤1+cosx≤2⇔0≤2(1+cosx)≤4⇔1≤2(1+cosx+1≤3
Vậy y ≤ 3, ∀ x ∈ R
Dấu “ = “ xảy ra ⇔ cos x = 1 ⇔ x = k2π (k ∈ Z)
Vậy ymax = 3 khi x = k2π
b) Ta có:
Với mọi x ∈ R, ta có:
sin(x−π6)≤1⇔3sin(x−π6)≤3⇔3sin(x−π6)−2≤1⇔y≤1sin(x−π6)≤1⇔3sin(x−π6)≤3⇔3sin(x−π6)−2≤1⇔y≤1
Vậy ymax = 1 khi sin(x−π6)=1⇔x=2π3+k2π,k∈Z