How do you graph #y=1/2(1-cosx)#?
1 Answer
Here's the graph:
graph{1/2(1-cos(x)) [-10, 10, -5, 5]}
Explanation:
You only need to understand which changes were made, starting from the function
- Change sign:
#cos(x) -> -cos(x)# - Add
#1# :#-cos(x) -> 1-cos(x)# - Divide everything by
#2# :#1-cos(x) -> 1/2(1-cos(x))# .
Changing the sign of a function simply means to reflect it, with respect to the
graph{cos(x) [-12.66, 12.65, -6.33, 6.33]}
graph{-cos(x) [-12.66, 12.65, -6.33, 6.33]}
Adding a positive constant means to translate the graph upwards. In your case, you'll translate the graph of
graph{1-cos(x) [-12.66, 12.65, -6.33, 6.33]}
Finally, dividing by