Linear Equations — Question 7

PDF ↗

Question 7

Consider the periodically forced equation y′+2y=3cos⁡x+sin⁡x,y'+2y=3\cos x+\sin x, with initial condition y(0)=0y(0)=0.

Tasks

  1. Solve the IVP using an integrating factor. Show how you evaluate the integral of the forcing times that factor.

  2. Find the unique 2π2\pi-periodic solution of the equation, and verify both its periodicity and its differential equation.

  3. Find the earliest X≥0X\ge 0 such that the IVP solution differs from the periodic solution by at most 1/1001/100 for every x≥Xx\ge X.

  4. Sketch the IVP solution and the periodic solution on [0,2π][0,2\pi] in your solution. Explain which part of the general solution is the transient and why the prescribed IVP solution is not itself periodic.

Original worksheet page 1: question and worked solution for 2-1-007
Show solutionHide solution

Question 7 – Solution

Strategy. Integrate the forcing after multiplying by e2xe^{2x}, then separate periodic and decaying terms.

Step 1: Integrate. The equation becomes (e2xy)′=e2x(3cos⁡x+sin⁡x).(e^{2x}y)'=e^{2x}(3\cos x+\sin x). Seek an antiderivative e2x(Acos⁡x+Bsin⁡x)e^{2x}(A\cos x+B\sin x). Matching coefficients gives 2A+B=32A+B=3 and 2B−A=12B-A=1, hence A=B=1A=B=1. Indeed, [e2x(cos⁡x+sin⁡x)]′=e2x(3cos⁡x+sin⁡x).[e^{2x}(\cos x+\sin x)]'=e^{2x}(3\cos x+\sin x). Therefore y=cos⁡x+sin⁡x+Ce−2xy=\cos x+\sin x+Ce^{-2x}. Since y(0)=0y(0)=0, C=−1C=-1, giving y=cos⁡x+sin⁡x−e−2x.\boxed{y=\cos x+\sin x-e^{-2x}.}

See the diagram in the original worksheet below.

Step 2: The only periodic member. The function yp=cos⁡x+sin⁡xy_p=\cos x+\sin x is 2π2\pi-periodic and satisfies yp′+2yp=3cos⁡x+sin⁡xy_p'+2y_p=3\cos x+\sin x. For the general solution, y(x+2π)−y(x)=Ce−2x(e−4π−1).y(x+2\pi)-y(x)=Ce^{-2x}(e^{-4\pi}-1). This vanishes for every xx only if C=0C=0. Hence yp=cos⁡x+sin⁡x\boxed{y_p=\cos x+\sin x} is the unique periodic member; the IVP has C=−1C=-1 and is not periodic.

Step 3: Uniform accuracy after a time. The exact discrepancy is |y−yp|=e−2x|y-y_p|=e^{-2x}, strictly decreasing on x≥0x\ge 0. Thus e−2X≤1100⇔X≥ln⁡10.e^{-2X}\le\frac 1{100}\quad\Longleftrightarrow\quad \boxed{X\ge\ln 10.} The earliest such time is ln⁡10\ln 10. The term Ce−2xCe^{-2x} is transient because it vanishes as x→∞x\to\infty, leaving the periodic response.

Original worksheet page 2: question and worked solution for 2-1-007

Original worksheet layout. Use Enlarge or open the PDF for a closer view.