Answer:
Let f(x)=cos(x2+1). By the first principle,
f′(x)=h→0limhf(x+h)−f(x)
=h→0limhcos((x+h)2+1)−cos(x2+1)
Use cosA−cosB=−2sin2A+Bsin2A−B with A=(x+h)2+1 and B=x2+1. Then
2A+B=x2+xh+2h2+1
2A−B=xh+2h2
So
f′(x)=h→0limh−2sin(x2+xh+2h2+1)sin(xh+2h2)
=−2[h→0limsin(x2+xh+2h2+1)]⋅h→0limxh+2h2sin(xh+2h2)⋅[h→0limhxh+2h2]
As h→0:
- the angle x2+xh+2h2+1 tends to x2+1, so the first factor tends to sin(x2+1);
- θ=xh+2h2 tends to 0, so the second factor tends to 1, by limθ→0θsinθ=1 (for small h=0, θ=h(x+2h)=0);
- hxh+2h2=x+2h tends to x.
f′(x)=−2sin(x2+1)⋅1⋅x
=−2xsin(x2+1)
Thus dxdcos(x2+1)=−2xsin(x2+1).