Solution:
Concept: When x→a and a=0, we put x=a+h, so that h→0. Then we use the trigonometric identities to bring the expression to the standard limits (angles in radians)
h→0limhsinhh→0limhtanh=1=1
together with the half-angle identity 1−cos2θ=2sin2θ.
Step 1 — Shift the point to zero. We put x=π+h. As x→π, the new variable h→0, and the denominator x−π becomes h:
x→πlimx−π1+cosx=h→0limh1+cos(π+h)
Step 2 — Simplify the numerator. Since cos(π+h)=−cosh, the numerator becomes 1−cosh, and the half-angle identity turns it into a square of a sine:
1+cos(π+h)=1−cosh=2sin22h
Step 3 — Split the fraction. We write one sine over its own angle 2h and keep the other sine as a separate factor:
h2sin22h=sin2h⋅2hsin2h
Step 4 — Let h→0. The factor sin2h tends to sin0=0, and the fraction tends to 1 by the standard limit:
0×1=0
Therefore, the limit is 0.