how do you change the cosine to negative
What are you talking about?
If you mean inverse cos then use acos