If you use that formula, and split it in half-angle formula, then you have to split sinA also in half-angle formula. After doing this you still have both sin and cos in the equation and you cannot solve it.
because you have to make cosA in terms of sinA, so that you can make an equation which has only one variable, so that you can solve it.
so you have to use,