You are solving these equations. Where n,a,m are given. You must square, convert cos to sin, then quadratic formula it.