Calculus · real student question

Solve the linear system of differential equations x' = x - 2y, y' = 2x + y.

Question

Solve the system

{x=x2yy=2x+y\begin{cases} x' = x - 2y \\ y' = 2x + y \end{cases}

Step-by-step solution

  1. Write the system as a single matrix equation. With X=(xy)\mathbf{X} = \begin{pmatrix} x \\ y \end{pmatrix} the system is X=AX\mathbf{X}' = A\mathbf{X} where

    A=(1221)A = \begin{pmatrix} 1 & -2 \\ 2 & 1 \end{pmatrix}

    This matters because the whole solution is then determined by the eigenvalues of AA — no substitution or elimination is needed.

  2. Find the eigenvalues. The characteristic equation is

    det(AλI)=(1λ)2+4=0(1λ)2=4\det(A - \lambda I) = (1-\lambda)^2 + 4 = 0 \quad\Longrightarrow\quad (1-\lambda)^2 = -4

    so λ=1±2i\lambda = 1 \pm 2i. A complex pair α±βi\alpha \pm \beta i always produces eαte^{\alpha t} times sines and cosines of βt\beta t: growth rate α=1\alpha = 1, rotation rate β=2\beta = 2.

  3. Find one eigenvector. For λ=1+2i\lambda = 1 + 2i the first row of AλIA - \lambda I reads 2iv12v2=0-2i\,v_1 - 2v_2 = 0, so v2=iv1v_2 = -i\,v_1 and

    v=(1i)\mathbf{v} = \begin{pmatrix} 1 \\ -i \end{pmatrix}

    Only one eigenvector is required: the conjugate pair carries no new information.

  4. Split the complex solution into real and imaginary parts. Using e(1+2i)t=et(cos2t+isin2t)e^{(1+2i)t} = e^{t}(\cos 2t + i\sin 2t),

    e(1+2i)tv=et(cos2t+isin2tsin2ticos2t)e^{(1+2i)t}\mathbf{v} = e^{t}\begin{pmatrix} \cos 2t + i\sin 2t \\ \sin 2t - i\cos 2t \end{pmatrix}

    Its real part et(cos2t, sin2t)e^t(\cos 2t,\ \sin 2t) and imaginary part et(sin2t, cos2t)e^t(\sin 2t,\ -\cos 2t) are two independent real solutions.

  5. Combine them into the general solution.

    x(t)=et(C1cos2t+C2sin2t),y(t)=et(C1sin2tC2cos2t)x(t) = e^{t}\left(C_1\cos 2t + C_2\sin 2t\right), \qquad y(t) = e^{t}\left(C_1\sin 2t - C_2\cos 2t\right)

  6. Check by substitution. Differentiating xx gives et(C1cos2t+C2sin2t)+et(2C1sin2t+2C2cos2t)e^t(C_1\cos 2t + C_2\sin 2t) + e^t(-2C_1\sin 2t + 2C_2\cos 2t), and x2y=et(C1cos2t+C2sin2t)2et(C1sin2tC2cos2t)x - 2y = e^t(C_1\cos 2t + C_2\sin 2t) - 2e^t(C_1\sin 2t - C_2\cos 2t) — the same expression. The second equation checks the same way. Since α=1>0\alpha = 1 > 0, every trajectory spirals outward from the origin.

Answer

x(t)=et(C1cos2t+C2sin2t),y(t)=et(C1sin2tC2cos2t)x(t) = e^{t}\left(C_1\cos 2t + C_2\sin 2t\right), \qquad y(t) = e^{t}\left(C_1\sin 2t - C_2\cos 2t\right)

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