Let f:R→R be a function defined by f(x)=logm{2(sinx-cosx)+m-2}, for some m, such that the range of f is [0, 2]. Then the value of m is [2023]
(2)
Since, -2≤sinx-cosx≤2
∴ -2≤2(sinx-cosx)≤2
Let 2(sinx-cosx)=t
-2≤t≤2 ...(i)
f(x)=logm(t+m-2)
We have, 0≤f(x)≤2
⇒ 0≤logm(t+m-2)≤2
1≤t+m-2≤m
-m+3≤t≤2 ...(ii)
From (i) and (ii), we get -m+3=-2 ⇒ m=5