Problem:
The inscribed circle of triangle ABC is tangent to AB at P, and its radius is 21. Given that AP=23 and PB=27, find the perimeter of the triangle.
Solution:
Let I be the center of the inscribed circle, and R be the point where the circle is tangent to CA. Because I is the intersection of the angle bisectors of ABC, it follows that β IAB+β IBC+β ICA=90β. Notice that tanβ IAB=21/23,tanβ IBC=21/27, and tanβ ICA=21/CR. Thus
Therefore CR=245/2 and the perimeter of triangle ABC is 2(23+27+2245β)=345β.
OR
Use the same figure. Let a=BC,b=CA,c=AB,x=CR, and s=21β(a+b+c). Then s=x+50,sβa=23,sβb=27, and sβc=x. The area of any triangle is the product of its inradius and its semiperimeter, so 21s=s(sβa)(sβb)(sβc)β, by Heron's formula. It follows that 212(x+50)=23β 27β x. Solve this equation to obtain x=245/2 and 2s=2(x+50)=345β.
OR
As in the preceding, let s be the semiperimeter of triangle ABC, and notice that BC=sβ23. Because IB bisects β ABC, it follows that
Hence the area of triangle ABC is 21βABβ BCsinβ ABC=25(sβ23)6563β. The area of a triangle is also equal to the product of its inradius and its semiperimeter, so 25(sβ23)6563β=21s. Solve this equation to find that 2s=345β, which is the perimeter.