We need to find k such that the given piecewise function is continuous at x=0, i.e., k=x→0limsecx−cosxloge(1−x+x2)+loge(1+x+x2).
Using the logarithm property loga+logb=log(ab):
loge(1−x+x2)+loge(1+x+x2)=loge((1−x+x2)(1+x+x2))
Expanding the product:
(1−x+x2)(1+x+x2)=(1+x2)2−x2=1+2x2+x4−x2=1+x2+x4
So the numerator = loge(1+x2+x4).
secx−cosx=cosx1−cosx=cosx1−cos2x=cosxsin2x
limx→0cosxsin2xloge(1+x2+x4)=limx→0sin2xloge(1+x2+x4)⋅cosx
As x→0, using the standard limit loge(1+u)≈u for small u:
loge(1+x2+x4)≈x2+x4(since x2+x4→0)
Also, as x→0: sinx≈x, so sin2x≈x2, and cosx→1.
Substituting these approximations:
limx→0x2(x2+x4)⋅1=limx→0(1+x2)=1
We can verify using L'Hopital's rule. As x→0, both numerator and denominator approach 0 (it is a 00 form since loge(1)=0 and sec0−cos0=0).
For continuity at x=0, we need k=1.
Therefore, the correct answer is Option A: 1.