Question
Question: How do you determine the intervals for which the function is increasing or decreasing given\(f\left(...
How do you determine the intervals for which the function is increasing or decreasing givenf(x)=x2−4?
Solution
First we have to split the function into two functions depending on the intervals. Then, we have to differentiate both the terms with respect to x, that is, we have to find f′(x). If f′(x)>0, then the function is increasing in that interval and if f′(x)<0, then the function is decreasing in that interval. We must keep in mind that, we have to split the given modulus function because the modulus function is not differentiable, so we have to split the function into intervals and then differentiate.
Complete step by step solution:
Given, function is, f(x)=x2−4.
Now, we can write, x2−4=(x−2)(x+2).
Therefore, f(x)=∣(x−2)(x+2)∣
Now, we know, the modulus function is always positive.
Therefore, (x−2)(x+2)⩾0
Now, using the method of intervals on the real line, we get,
So, on the real line, for positive values, the value of x have to be within the intervals which are indicated by + sign in the real line, that is,
x∈(−∞,−2]∪[2,∞)
And, for negative values, the value of x have to be within the intervals which are indicated by - sign in the real line, that is,
x∈(−2,2)
Therefore, we can split the function, in the following way,
In the interval x∈(−∞,−2]∪[2,∞), the function is,
f(x)=x2−4
And, in the interval x∈(−2,2), the function is,
f(x)=−(x2−4)
Now, to find the intervals in which the function is increasing and decreasing let us differentiate the functions with respect to x.
Therefore, in the interval, x∈(−∞,−2]∪[2,∞)
f′(x)=dxd(x2−4)
⇒f′(x)=2x
Now, for the interval, (−∞,−2],
f′(x)<0
Hence, the function is decreasing in (−∞,−2].
And, for the interval, [2,∞),
f′(x)>0
Hence, the function is increasing in [2,∞).
Now, for the interval x∈(−2,2),
f′(x)=dxd(−(x2−4))
⇒f′(x)=dxd(−x2+4))
⇒f′(x)=−2x
Now, in the interval, (−2,0),
f′(x)>0
Hence, the function is increasing in (−2,0).
And, in the interval, (0,2),
f′(x)<0
Hence, the function is decreasing in (0,2).
Therefore, we can say that the function increases in the interval (−2,0)∪[2,∞). And, decreasing in the interval (−∞,−2]∪(0,2).
Note: The problem could also be solved by checking the various intervals of the functions after splitting the modulus function and then checking with various values of the defined intervals (−∞,−2],(−2,0),(0,2),[2,∞) and see the trend of the values of the function un these intervals and hence find the solution to the question.