Calculus · real student question

Show that x = sin(kt) + cos(kt) satisfies the differential equation x'' + k^2 x = 0.

Question

Show that

x=sin(kt)+cos(kt)x=\sin(kt)+\cos(kt)

satisfies the differential equation

x+k2x=0x''+k^2x=0

Step-by-step solution

  1. Plan the verification. To confirm a proposed solution, differentiate it twice, substitute into the equation, and check that the left side reduces to zero identically — for every tt, not just at sample points.

  2. Differentiate once, applying the chain rule. The inner function is ktkt, whose derivative is kk, so each term picks up a factor of kk:

    x=kcos(kt)ksin(kt)x'=k\cos(kt)-k\sin(kt)

    Note the sign swap: sin\sin differentiates to +cos+\cos, but cos\cos differentiates to sin-\sin.

  3. Differentiate again. Each term picks up another factor of kk, and the signs swap once more:

    x=k2sin(kt)k2cos(kt)x''=-k^2\sin(kt)-k^2\cos(kt)

    So two differentiations produce k2k^2 and a net sign reversal — the hallmark of sine and cosine.

  4. Factor out -k^2 and recognise the original function.

    x=k2(sin(kt)+cos(kt))=k2xx''=-k^2\left(\sin(kt)+\cos(kt)\right)=-k^2x

    since the bracket is exactly xx.

  5. Substitute into the equation.

    x+k2x=k2x+k2x=0 x''+k^2x=-k^2x+k^2x=0\ \checkmark

    The identity holds for all tt and all kk, so the function is a genuine solution.

  6. Note what this means physically and structurally. x+k2x=0x''+k^2x=0 is simple harmonic motion, and {cos(kt),sin(kt)}\{\cos(kt),\sin(kt)\} spans its full two-dimensional solution space — so sin(kt)+cos(kt)\sin(kt)+\cos(kt) is the member with both coefficients equal to 11. It can be rewritten in amplitude-phase form as 2sin ⁣(kt+π4)\sqrt2\sin\!\left(kt+\tfrac{\pi}{4}\right), revealing amplitude 2\sqrt2 and period 2πk\tfrac{2\pi}{k}.

  7. Verify numerically. With k=1.7k=1.7, a second-order central difference of step 10410^{-4} gives xx'' values matching k2x-k^2x at t=0.3,1.1,2.0t=0.3,\,1.1,\,-2.0 to four significant figures ✓, and the amplitude-phase rewrite agrees with the original at every test point ✓.

Answer

x=kcos(kt)ksin(kt),x=k2(sin(kt)+cos(kt))=k2x,so x+k2x=0x'=k\cos(kt)-k\sin(kt),\quad x''=-k^2\left(\sin(kt)+\cos(kt)\right)=-k^2x,\quad\text{so } x''+k^2x=0

Need to solve a different problem like this? Open the solver →