Question
Question: Find the range of \(f\left( x \right)=\sin x+\cos x+3\). Range is \(\left[ a,b \right]\), then find ...
Find the range of f(x)=sinx+cosx+3. Range is [a,b], then find ab.
Solution
We will find the maxima and minima of the given function. To find the maxima and minima, we will differentiate the function and equate it to zero. The range of the function will be the values that lie between the minimum value and the maximum value of the function. After we find the range, we will multiply the values of the endpoints of the range to get the desired answer.
Complete step by step solution:
The given function is f(x)=sinx+cosx+3. We will look at the derivative of the given function. To find the derivative of a function which is of the form g(x)=u(x)+v(x), we will use the following rule,
g′(x)=dxd(u(x)+v(x))=u′(x)+v′(x)
So, we have
dxd(f(x))=dxd(sinx+cosx+3)
Using the rule mentioned above, we get the following,
dxd(sinx+cosx+3)=dxd(sinx)+dxd(cosx)+dxd(3)
We know that the derivative of a constant function is zero. Therefore, we have dxd(3)=0. We also know that dxd(sinx)=cosx and dxd(cosx)=−sinx. Substituting these values in the equation above, we get
dxd(f(x))=cosx−sinx+0=cosx−sinx
Now, to find the maxima and minima, we will equate the derivative of the function to zero, that is, f′(x)=0. Therefore, we obtain the following equation,
cosx−sinx=0
This implies that cosx=sinx. This is possible when x=4π. The value of the function at x=4π is the following,
f(4π)=sin4π+cos4π+3
Substituting sin4π=cos4π=21 in the above equation, we get
f(4π)=21+21+3=22+3=2+3
We get cosx=sinx when x=4π+π, since we know that sin(π+θ)=−sinθ and cos(π+θ)=−cosθ. Therefore, at x=4π+π, we get the value of the function as
f(4π+π)=sin(4π+π)+cos(4π+π)+3
Using the identities mentioned above, we get
f(4π+π)=−sin4π−cos4π+3=−21−21+3=−22+3=−2+3
Hence, the minima of the function is attained at x=4π+π and the maxima is attained at x=4π, and their respective values are −2+3 and 2+3. So, the range of the given function is [a,b]=[−2+3,2+3]. So, the value of ab can be calculated as follows,
ab=(−2+3)(2+3)=−2−2⋅3+2⋅3+9=7
Hence, we have ab=7.
Note: The maxima and minima of a function are obtained by equating the derivative of the function to zero. The values of x for which we obtain f′(x)=0 are called the critical values. We can talk about the function increasing or decreasing by taking the second derivative of the function. It is called the second derivative test.