We are given the functions y1=sinx+cosx and y2=∣cosx−sinx∣, and the interval x∈[0,2π]. Our goal is to find the area enclosed by these curves and the given lines.
Step 2: Simplify y1=sinx+cosx
We can rewrite y1 using the identity Rsin(x+α)=sinx+cosx where R=12+12=2 and α=arctan(1)=4π. This simplifies the analysis of the function's behavior.
y1=sinx+cosx=2(21sinx+21cosx)=2sin(x+4π)
Since x∈[0,2π], then x+4π∈[4π,43π]. Since sin(x) is positive in the interval [4π,43π], y1 is always non-negative in the given interval.
Step 3: Simplify y2=∣cosx−sinx∣
To handle the absolute value, we need to determine when cosx−sinx is positive or negative. This involves finding where cosx=sinx, which occurs at x=4π in the interval [0,2π].
For x∈[0,4π], cosx≥sinx, so y2=cosx−sinx.
For x∈[4π,2π], sinx≥cosx, so y2=−(cosx−sinx)=sinx−cosx.
Step 4: Determine which function is greater in each subinterval
We need to compare y1 and y2 in the two subintervals [0,4π] and [4π,2π].
For x∈[0,4π]:y1−y2=(sinx+cosx)−(cosx−sinx)=2sinx. Since sinx≥0 in this interval, y1≥y2.
For x∈[4π,2π]:y1−y2=(sinx+cosx)−(sinx−cosx)=2cosx. Since cosx≥0 in this interval, y1≥y2.
Therefore, y1≥y2 throughout the interval [0,2π].
Step 5: Set up the integral for the area
Since y1≥y2 in the entire interval, we can write the area as:
A=∫0π/2(y1−y2)dx=∫0π/4(y1−y2)dx+∫π/4π/2(y1−y2)dx
Substituting the expressions for y1 and y2 in each subinterval:
A=∫0π/4[(sinx+cosx)−(cosx−sinx)]dx+∫π/4π/2[(sinx+cosx)−(sinx−cosx)]dxA=∫0π/42sinxdx+∫π/4π/22cosxdx
Absolute Value: Forgetting to consider the different cases when dealing with absolute values is a common error. Always analyze the sign of the expression inside the absolute value.
Integration Errors: Double-check your integration and the evaluation of the limits. Sign errors are common.
Identifying the Upper Curve: Always determine which curve is above the other in the interval of integration to correctly set up the integral.
Summary
We found the area enclosed by the curves y=sinx+cosx and y=∣cosx−sinx∣ and the lines x=0 and x=2π by first simplifying the given functions, then determining the intervals where each function was greater, setting up the definite integrals, and finally evaluating the integrals. The area is 22(2−1).
Final Answer
The final answer is \boxed{2\sqrt 2 (\sqrt 2 - 1)}, which corresponds to option (A).