y=sinx+cosx simply adds a sine to a cosine. Two waves are superposed and yet the result is again a single sine wave. It is the simplest and prettiest instance of what is called combining trigonometric functions1.
Combining the two
Running the addition formula backwards collapses the sum.
sinx+cosx=2sin(x+4π)
Expanding the right-hand side returns the original.
Both original amplitudes are 1, yet the combined amplitude is 2, because the two waves are a quarter period out of step. It is the same arithmetic as adding two perpendicular vectors of length 1 to get one of length 2.
Range and period
The amplitude is 2≈1.414
The period is 2π
The range is −2≤y≤2
The maximum falls at x=4π+2nπ and the minimum at x=45π+2nπ
Zeros and symmetry
The equation sinx+cosx=0 is the same as tanx=−1, so the zeros are at x=43π+nπ. The function is neither even nor odd, but it is symmetric about the vertical line x=4π through its maximum.
The clearest way to read the graph is as sinx shifted left by 4π and stretched vertically by 2.
x
y
0
1
4π
2
43π
0
45π
−2
47π
0
Monotonicity and concavity
The derivative is y′=cosx−sinx=2cos(x+4π). The second derivative satisfies the equation of simple harmonic motion exactly.
y′′=−sinx−cosx=−y
The inflection points therefore coincide with the zeros, at x=43π+nπ.
The general case
The same computation gives the general form.
asinx+bcosx=a2+b2sin(x+α)
Here α is fixed by cosα=a2+b2a and sinα=a2+b2b. The amplitude a2+b2 is the Pythagorean theorem in disguise, making plain that the two terms are being added as vectors.
Applications
In an alternating-current circuit the current through a resistor and that through a capacitor or an inductor are a quarter period out of phase, so finding the total current is precisely this combination. That the amplitude is not the plain sum but the square root of a sum of squares is the basis of impedance calculations. The same structure governs the interference of waves and the phasor representation of a signal by an amplitude and a phase2.