I need some informations about the triangle:

---> a and A are refering to the length of the same side of the triangle?

---> what kind of triangle do you mean: isosceles right triangle, isosceles triangle, a more general triangle?

Without these additional informations I can't help you.