We are given the function:
f(x)=∣sinx∣+∣cosx∣.We need to find the period of this function.
Step 1: To determine the period of
f(x), we need to analyze the behavior of
∣sinx∣ and
∣cosx∣. Both
sinx and
cosx have a period of
2π, but since they are both taken as absolute values, the function
f(x) will have a shorter period.
Step 2: Consider the behavior of
f(x) in the interval
[0,π]:
- On the interval
[0,2π], both
sinx and
cosx are non-negative, so
f(x)=sinx+cosx.
- On the interval
[2π,π],
sinx is positive, but
cosx is negative, so
f(x)=sinx−cosx.
- The function
f(x) repeats this pattern on subsequent intervals of length
π.
Step 3: Therefore, the function
f(x) has a period of
2π.
Thus, the period of
f(x) is
2π.
Therefore, the correct answer is option (D).
Quick Tip: When dealing with absolute value functions of periodic functions, analyze their behavior on one period and observe if the period is halved or modified due to the absolute values. In this case, the absolute values reduced the period.