\text { Let } f(x)=\left\{\begin{array}{lr} -2, & -2 \leq x \leq 0 \\ x-2, & 0< x \leq 2 \end{array} \text { and } \mathrm{h}(x)=f(|x|)+|f(x)| \text {. Then } \int_\limits{-2}^2 \mathrm{~h}(x) \mathrm{d} x\right. \text { is equal to: }
Options
Solution
Key Concepts and Formulas
Piecewise Functions: Understanding how to define and work with functions that have different definitions over different intervals of their domain.
Modulus Function Properties: The behavior of ∣x∣ and ∣f(x)∣, specifically ∣a∣=a if a≥0 and ∣a∣=−a if a<0.
Definite Integration of Piecewise Functions: The integral of a piecewise function over an interval is the sum of the integrals over each sub-interval where the function's definition is constant.
∫abg(x)dx=∑i=1n∫aiai+1gi(x)dx
where a=a1<a2<⋯<an+1=b and g(x)=gi(x) on [ai,ai+1].
Step-by-Step Solution
We are asked to evaluate the definite integral ∫−22h(x)dx, where h(x)=f(∣x∣)+∣f(x)∣. To do this, we first need to determine the explicit form of h(x) over the interval [−2,2].
Step 1: Analyze the function f(x).
The given function f(x) is defined as:
f(x)={−2,x−2,−2≤x≤00<x≤2
Step 2: Determine f(∣x∣) for x∈[−2,2].
We need to substitute ∣x∣ into the definition of f(x). For x∈[−2,2], the value of ∣x∣ ranges from 0 to 2.
Let t=∣x∣.
If x∈[−2,0), then ∣x∣=−x. Since −2≤x<0, we have 0<−x≤2. Thus, t∈(0,2]. In this range, f(t)=t−2. So, f(∣x∣)=∣x∣−2=(−x)−2=−x−2.
If x=0, then ∣x∣=0. According to the definition of f(x), f(0)=−2. So, f(∣x∣)=−2.
If x∈(0,2], then ∣x∣=x. Since 0<x≤2, we have t∈(0,2]. In this range, f(t)=t−2. So, f(∣x∣)=∣x∣−2=x−2.
Combining these, we get f(∣x∣) for x∈[−2,2]:
f(∣x∣)=⎩⎨⎧−x−2,−2,x−2,−2≤x<0x=00<x≤2
We can simplify this by noting that when x=0, −x−2=−0−2=−2, and x−2=0−2=−2. So, we can combine the intervals:
f(∣x∣)={−x−2,x−2,−2≤x≤00<x≤2
Step 3: Determine ∣f(x)∣ for x∈[−2,2].
We need to consider the sign of f(x) in its defined intervals.
For −2≤x≤0, f(x)=−2. Since −2 is negative, ∣f(x)∣=∣−2∣=2.
For 0<x≤2, f(x)=x−2.
If 0<x<2, then x−2 is negative. So, ∣f(x)∣=∣x−2∣=−(x−2)=2−x.
If x=2, then f(2)=2−2=0. So, ∣f(2)∣=0.
Note that 2−x is 0 when x=2, so we can write:
∣f(x)∣=⎩⎨⎧2,2−x,0,−2≤x≤00<x<2x=2
For integration purposes, the value at a single point does not affect the integral, so we can consider ∣f(x)∣=2−x for 0<x≤2.
Thus, for x∈[−2,2]:
∣f(x)∣={2,2−x,−2≤x≤00<x≤2
Step 4: Determine h(x)=f(∣x∣)+∣f(x)∣ for x∈[−2,2].
We need to combine the definitions of f(∣x∣) and ∣f(x)∣ over the interval [−2,2]. The critical point for splitting the interval is x=0.
Interval 1: −2≤x≤0.
In this interval, f(∣x∣)=−x−2 and ∣f(x)∣=2.
So, h(x)=(−x−2)+2=−x.
Interval 2: 0<x≤2.
In this interval, f(∣x∣)=x−2 and ∣f(x)∣=2−x.
So, h(x)=(x−2)+(2−x)=0.
Therefore, the function h(x) over the interval [−2,2] is:
h(x)={−x,0,−2≤x≤00<x≤2
Step 5: Evaluate the definite integral ∫−22h(x)dx.
We split the integral based on the piecewise definition of h(x):
∫−22h(x)dx=∫−20h(x)dx+∫02h(x)dx
Substitute the respective definitions of h(x):
=∫−20(−x)dx+∫02(0)dx
Now, we evaluate each integral:
∫−20(−x)dx=[−2x2]−20=(−202)−(−2(−2)2)=0−(−24)=0−(−2)=2∫02(0)dx=0
Summing the results:
∫−22h(x)dx=2+0=2
Common Mistakes & Tips
Careful handling of ∣x∣: When substituting ∣x∣, remember that ∣x∣ is always non-negative. This means you need to consider how the original intervals of f(x) map to the intervals of ∣x∣.
Sign analysis of f(x): Properly determine when f(x) is positive, negative, or zero to correctly evaluate ∣f(x)∣.
Combining piecewise functions: Ensure that when defining h(x), you correctly add the corresponding pieces of f(∣x∣) and ∣f(x)∣ for each interval.
Summary
To solve this problem, we first broke down the definition of h(x)=f(∣x∣)+∣f(x)∣ by analyzing f(∣x∣) and ∣f(x)∣ separately over the interval [−2,2]. This resulted in a piecewise definition for h(x). We then used the property of definite integrals for piecewise functions to split the integral into sub-integrals over the relevant intervals and evaluated each part. The sum of these integrals yielded the final answer.