Calculus

Answer & solution
Official answer: -2 to -2
Our answer: −2
1. Method and setup. Differentiate using the product rule twice: first differentiate both x and sin x; then differentiate both terms of the result. Adding f to f″ cancels the x sin x terms. The remaining coefficient of cos x must be zero for the identity to hold for all x.
2. Work through the result and its assumptions. For f=x sin x, f′=sin x+x cos x and f″=2cos x−x sin x. Therefore f″+f+t cos x=(2+t)cos x vanishes identically exactly when t=−2.