Why an attempt needs structure

Most failed attempts do not fail at the hard step. They fail earlier, because the problem was misread, or later, because an answer was accepted without being checked. A fixed sequence of phases protects against both. The one used here extends George Pólya's classic four stages by splitting his final stage, looking back, into two separate jobs: checking the answer and reflecting on the method.

  1. Understand: restate the problem, name its type, and predict features of the answer.
  2. Plan: list candidate methods and choose one deliberately; keep a second one in reserve as a check.
  3. Execute: carry out the plan, writing each step so that someone else could follow it.
  4. Check: test the answer by means that do not repeat the execution.
  5. Reflect: record what generalizes and what nearly went wrong.

The rest of this guide runs one problem through all five phases.

y′−3y=cos⁡2x,y(0)=0y' - 3y = \cos 2x, \qquad y(0) = 0
(IVP)

Phase 1: Understand

Name the problem as precisely as you can. This is a first-order, linear, constant-coefficient, nonhomogeneous ordinary differential equation with one initial condition. The unknown is a function y(x)y(x); the data are the coefficient 33, the forcing cos⁡2x\cos 2x and the value y(0)=0y(0) = 0. Linear first-order problems with continuous coefficients have exactly one solution through a given initial point, so you are looking for a single function, not a family.

Before solving, extract what the equation already tells you. At x=0x = 0 it gives y′(0)=3y(0)+cos⁡0=1y'(0) = 3y(0) + \cos 0 = 1, so near the origin y(x)≈xy(x) \approx x. Differentiating the equation once gives y′′=3y′−2sin⁡2xy'' = 3y' - 2\sin 2x, hence y′′(0)=3y''(0) = 3. The homogeneous equation y′=3yy' = 3y has the growing solution e3xe^{3x}, so unless that mode is exactly cancelled you should expect exponential growth for large xx. These predictions cost a few lines and become checks later.

Phase 2: Plan

Write down the candidate methods, not just the first one that comes to mind:

  • Integrating factor. Multiply by e−3xe^{-3x} to get (e−3xy)′=e−3xcos⁡2x\left(e^{-3x}y\right)' = e^{-3x}\cos 2x, then integrate. This needs the integral of e−3xcos⁡2xe^{-3x}\cos 2x.
  • Undetermined coefficients. The forcing cos⁡2x\cos 2x is not a solution of the homogeneous equation, so a trial Acos⁡2x+Bsin⁡2xA\cos 2x + B\sin 2x will work. Only linear algebra is required.
  • Laplace transform. The initial condition is at 00 and the forcing has a standard transform, so the problem becomes algebra in ss followed by partial fractions.

Choose undetermined coefficients for the execution, because it involves the least integration. Keep the Laplace transform in reserve as an independent second method for the check phase. Deciding this now, rather than after an answer appears, keeps the check honest.

Phase 3: Execute

Undetermined coefficients for y′ − 3y = cos 2x

Solve y′−3y=cos⁡2xy' - 3y = \cos 2x with y(0)=0y(0) = 0.

  1. Homogeneous part: yh′=3yhy_h' = 3y_h gives yh=Ce3xy_h = C e^{3x}.
  2. Trial particular solution: yp=Acos⁡2x+Bsin⁡2xy_p = A\cos 2x + B\sin 2x, so yp′=−2Asin⁡2x+2Bcos⁡2xy_p' = -2A\sin 2x + 2B\cos 2x.
  3. Substitute: yp′−3yp=(2B−3A)cos⁡2x+(−2A−3B)sin⁡2xy_p' - 3y_p = (2B - 3A)\cos 2x + (-2A - 3B)\sin 2x. This must equal cos⁡2x\cos 2x for every xx.
  4. Match coefficients: 2B−3A=12B - 3A = 1 and 2A+3B=02A + 3B = 0. The second gives A=−32BA = -\tfrac{3}{2}B; substituting, 132B=1\tfrac{13}{2}B = 1, so B=213B = \tfrac{2}{13} and A=−313A = -\tfrac{3}{13}.
  5. General solution: y=Ce3x−313cos⁡2x+213sin⁡2xy = C e^{3x} - \tfrac{3}{13}\cos 2x + \tfrac{2}{13}\sin 2x.
  6. Initial condition: y(0)=C−313=0y(0) = C - \tfrac{3}{13} = 0, so C=313C = \tfrac{3}{13}.
y(x)=313(e3x−cos⁡2x)+213sin⁡2xy(x) = \frac{3}{13}\left(e^{3x} - \cos 2x\right) + \frac{2}{13}\sin 2x

Each line of the execution states one operation and its result. That is not a matter of style: when an error appears later, a step-by-step record is the only way to find the line where it entered.

Phase 4: Check

Use checks that do not simply repeat the computation.

  • Substitution. y′=913e3x+613sin⁡2x+413cos⁡2xy' = \tfrac{9}{13}e^{3x} + \tfrac{6}{13}\sin 2x + \tfrac{4}{13}\cos 2x. Subtracting 3y=913e3x−913cos⁡2x+613sin⁡2x3y = \tfrac{9}{13}e^{3x} - \tfrac{9}{13}\cos 2x + \tfrac{6}{13}\sin 2x leaves 1313cos⁡2x=cos⁡2x\tfrac{13}{13}\cos 2x = \cos 2x.
  • Initial data and predictions. y(0)=313(1−1)+0=0y(0) = \tfrac{3}{13}(1 - 1) + 0 = 0, and y′(0)=913+413=1y'(0) = \tfrac{9}{13} + \tfrac{4}{13} = 1, matching the prediction from Phase 1. The coefficient of e3xe^{3x} is positive, so the solution grows, as expected.
  • Second method. Transforming the equation with y(0)=0y(0) = 0 gives (s−3)Y(s)=s/(s2+4)(s - 3)Y(s) = s/(s^2+4). The partial-fraction decomposition below inverts term by term to 313e3x−313cos⁡2x+213sin⁡2x\tfrac{3}{13}e^{3x} - \tfrac{3}{13}\cos 2x + \tfrac{2}{13}\sin 2x, the same function.
  • Numerical spot check. The formula gives y(1)=313(e3−cos⁡2)+213sin⁡2≈4.8710y(1) = \tfrac{3}{13}(e^{3} - \cos 2) + \tfrac{2}{13}\sin 2 \approx 4.8710. A fourth-order Runge–Kutta integration of the equation from 00 to 11 with step 10−410^{-4} produces the same value to better than 10−910^{-9}.
Y(s)=s(s−3)(s2+4)=313⋅1s−3  −  313⋅ss2+4  +  213⋅2s2+4Y(s) = \frac{s}{(s-3)(s^2+4)} = \frac{3}{13}\cdot\frac{1}{s-3} \;-\; \frac{3}{13}\cdot\frac{s}{s^2+4} \;+\; \frac{2}{13}\cdot\frac{2}{s^2+4}
The Laplace-domain form of the solution, used as an independent check.

Phase 5: Reflect

Reflection asks what this problem teaches beyond its own answer. Repeating the execution with a general rate bb and frequency ω\omega (assuming bb and ω\omega are not both zero) gives a reusable particular solution:

y′−by=cos⁡ωx⟹yp=−bcos⁡ωx+ωsin⁡ωxb2+ω2y' - by = \cos \omega x \quad\Longrightarrow\quad y_p = \frac{-b\cos\omega x + \omega\sin\omega x}{b^2 + \omega^2}

With b=3b = 3 and ω=2\omega = 2 it reproduces the result above, which is itself a check. Two further lessons are worth recording. First, the trial function worked because cos⁡2x\cos 2x is not a homogeneous solution; if the forcing had been e3xe^{3x}, the trial would have needed an extra factor of xx. Second, the equation y′−by=f(x)y' - by = f(x) is exactly the form that Chapter 5 of the book treats with its Matrix Boundary Method, for forcing functions in a space closed under differentiation; the classical solution above is a useful baseline when reading that chapter.

What to write down when you are stuck

Being stuck is a normal phase of an attempt, not a sign to stop. What matters is that the time produces a record. Write down:

  1. The problem in your own notationEvery given condition, the unknown, and the domain on which it lives.
  2. The type and the methodName the problem class as precisely as you can and the method you tried.
  3. The boundary of certaintyThe last line you are sure of and the first line you are not. Most stuck points sit between those two lines.
  4. A smaller problem you can solveDrop the forcing, set the initial value to zero, or take a special parameter such as ω=0\omega = 0. Solving a special case often shows the structure of the general one.
  5. What the answer must satisfyInitial values, signs, growth or decay, symmetry, units. In the example, y(0)=0y(0) = 0, y′(0)=1y'(0) = 1 and eventual growth were known before any solving.
  6. A specific questionTurn the stuck point into a question someone else can answer quickly. See How to Ask a Precise Mathematical Question.

References

  1. George Pólya. How to Solve It. Princeton University Press, 1945. The four-stage model (understand, plan, carry out, look back) that this guide extends..
  2. Kevin Houston. How to Think Like a Mathematician. Cambridge University Press, 2009.