f′(x)=cosx(3sin2(x)+2λsinx)=0⇒x=0,±π/2 or
3sin(x)+2λ=0It is easy to see that 0 is a local minimum of the function and the values ±π/2 are not included in the domain of definition of the function.
So the function can have an extrema only at values of x where 3sin(x)+2λ=0⇒sin(x)=−2λ3
Now, we know that −1≤sin(x)≤1⇒−1≤−2λ3≤1⇒−32≤λ≤32.
So the possible integral values that λ can take are −1,0,1.
But λ=0 gives back x=0 which is an inflection point when λ=0 as f(x)=sin3x⇒f′(x)=3sin2xcosx.
Observe that when λ=0, f(0)=f′(0)=f′′(0)=0, hence x=0 is an inflection point in that case, not a maxima.
Thus, there are 2 integral values of λ for which the given function has exactly one maxima in the given domain and those values are ±1