Mathematics

Mathematics

Problem

State, in terms of aa and bb, the maximum possible value of the function f(x)=asin⁡x+bcos⁡xf(x)=a\sin x + b\cos x for all real xx.
Intuitive explanation

The key insight is that asin⁡x+bcos⁡xa\sin x + b\cos x traces out a sinusoidal wave as xx varies, and you can rewrite it as a single sine (or cosine) function with a shifted phase. The maximum value of any sinusoid Rsin⁡(x+ϕ)R\sin(x + \phi) is simply its amplitude RR. So find the amplitude by combining the coefficients aa and bb using the Pythagorean theorem—the maximum occurs when the two components align perfectly.

Intuitive explanation

The key insight is that asin⁡x+bcos⁡xa\sin x + b\cos x traces out a sinusoidal wave as xx varies, and you can rewrite it as a single sine (or cosine) function with a shifted phase. The maximum value of any sinusoid Rsin⁡(x+ϕ)R\sin(x + \phi) is simply its amplitude RR. So find the amplitude by combining the coefficients aa and bb using the Pythagorean theorem—the maximum occurs when the two components align perfectly.

Browse the problem library