The critical points of a function are the points in its domain where the derivative is zero or does not exist.
First, consider x=0. The function is continuous at x=0 since x→0limxsinx=1=f(0).
For x∈(−π,π), xsinx>0, so f(x)=xsinx.
The derivative at x=0 is given by f′(0)=x→0limxxsinx−1=x→0limx2sinx−x=0.
Since f′(0)=0, x=0 is a critical point.
Next, consider the points where f(x)=0, which occurs at x=π and x=−π in the interval (−2π,2π).
At x=π, the inner function g(x)=xsinx has g(π)=0 and g′(π)=−π1=0. Since the derivative of the inner function is non-zero, the absolute value function f(x)=∣g(x)∣ is not differentiable at x=π. By symmetry, f(x) is also not differentiable at x=−π.
Thus, x=π and x=−π are critical points.
For x=0,π,−π, the function is differentiable and f′(x)=±x2xcosx−sinx.
Setting f′(x)=0 gives xcosx−sinx=0⇒tanx=x.
We analyze the roots of tanx=x in (−2π,2π):
In (0,π), tanx>x for x∈(0,π/2) and tanx<0<x for x∈(π/2,π). There are no roots in this interval.
In (π,2π), tanx increases from 0 to ∞ on (π,3π/2). Since tanπ=0<π and tanx→∞ as x→3π/2−, there is exactly one root in (π,3π/2). In (3π/2,2π), tanx<0<x, yielding no roots.
Since tanx=x is an odd equation, there is exactly one symmetric root in (−2π,−π).
This gives 2 additional critical points where f′(x)=0.
The total number of critical points in (−2π,2π) is 1 (at x=0) +2 (at x=±π) +2 (roots of tanx=x) =5.
Answer: 5