sin^{2} theta +cos theta = 2
Use the pythagorem identity sin^{2} theta +cos^{2} theta =1 to replace sin^{2} theta in the given equation