Question
Question: How do you graph \(y=3-\cos x\)?...
How do you graph y=3−cosx?
Solution
For graphing the function which is given in the question as y=3−cosx, we first have to draw the graph of the function y=cosx. Then, we have to obtain the graph of the y=−cosx from the graph of y=cosx by taking the reflection of the graph of y=cosx with respect to the x axis. Finally, the graph of the function y=3−cosx will be obtained from the graph of the function y=3−cosx by shifting its graph by three units in the vertical direction.
Complete step by step answer:
From the equation given in the question, we have
y=3−cosx......(i)
We can see that it is related to the basic cosine function, which is given by
y=cosx.......(ii)
The graph corresponding to the above equation is, as we know drawn as
But as we can see in equation (i) that it has negative of cosx. So we have to obtain the graph of
⇒y=−cosx.......(ii)
By comparing equations (ii) and (iii) we can see that the only change is the negative of the dependent variable y. So its graph will be obtained by taking the reflection of the above graph with respect to the x-axis, as shown below
Considering the given equation