General solution 2026-09-29
The general solution of a differential equation is a family containing every solution, usually parameterized by arbitrary constants or initial data. For a forced linear ordinary differential equation, it is the sum of one particular solution and the general homogeneous solution.
For the harmonic oscillator equation , with , the displacement is continuous and the velocity increases by at the impulse. If the incoming displacement is zero and , the outgoing displacement and velocity both vanish. The subsequent homogeneous solution is identically zero. Equivalently, the causal forced response cancels the pre-existing oscillation, where is the Heaviside step function.
Particular solution Created 2026-09-24 Updated 2026-09-24
A particular solution is any one solution of a forced linear differential equation. Every solution is the sum of that particular solution and an arbitrary homogeneous solution.
The integrating factor is , so . Integrating gives the general solution
The particular solution is only defined up to a homogeneous solution. Subtract from it, absorbing that multiple into the arbitrary constant. The same family can then be written
Holding fixed, the quotient tends to , the derivative of with respect to at . Thus the resonant family is . Direct differentiation gives , so it is the full general solution at resonance. This resonant exponential forcing in a first-order equation limit concerns a reparametrized family, not a fixed value of the original divergent constant . The initial condition gives , hence
Let and measure Lionel's fortune in unit stakes. This is gambler's ruin: the fortune moves by with probability and with probability , stopping at or . Let be the expected value of the absorption time starting at . It is finite: from any interior state, a run of wins or losses has a fixed positive probability of absorption within steps, giving a geometric bound on survival over successive blocks. First-step analysis therefore gives
For , the homogeneous solution of the recurrence is , and a particular solution is . Put . Imposing the two endpoint boundary conditions gives the expected duration of biased gambler's ruin
Consequently the expected number of games is
The denominator and numerator have matching signs, so this is positive. As a check its continuous limit at is , the expected duration of symmetric gambler's ruin.
Away from the impulse, the harmonic oscillator equation has a homogeneous solution. Before , the initial conditions select . The jump condition for an impulse requires continuity of and a unit jump in : a jump in would produce a derivative of the Dirac delta distribution, which is absent from the forcing, while integrating through the impulse gives .
Just before the impulse, and . Just afterwards, and , so uniqueness for the harmonic oscillator equation makes the subsequent solution identically zero. Equivalently the causal response is , with the Heaviside step function, and it cancels the original oscillation.
The solution is
The impulse cancellation of a harmonic oscillator produces a continuous graph with a corner at , followed by a horizontal zero line.
Figure 1.
An impulse cancels the oscillator at zero displacement
.
Transform in time and use the zero interior initial conditions. The Laplace transform of a derivative formula turns the wave equation into . Its transformed endpoint conditions are and . A homogeneous solution satisfying the right condition is a multiple of ; the left condition fixes that multiple. Thus, for ,
Here and the denominator has no zeros in this half-plane. The initial-boundary corner at is deliberately discontinuous: the applied step launches propagating fronts, so one should not demand a globally smooth solution across them.
Write , and . The first correction in the inner expansion satisfies . Direct differentiation verifies that is a particular solution. Adding the constant and error function homogeneous solutions gives .
The left boundary condition forces . Re-expanding the outer expansion at gives
Therefore , with no constant term in its large- overlap. Since and , this sets . Thus the required half-order correction is
It vanishes at zero and has the correct linear overlap. Keeping this term is essential even though the outer solution has no correction of that order.
An integrating factor explains the second hint and the first-order inner calculation. For
multiplication by gives . The term already produces , and integrating the remaining terms twice gives , in terms of the Gaussian drift primitives. The homogeneous solutions are a constant and the error function. Hence
For the piecewise forcing in the inner problem, replaces and provides the continuously matched particular solution for . The coefficients and then account for the forcing.
The homogeneous solution is
For the constant and forcing terms, a particular solution is
Indeed, applying multiplies the coefficient by . Thus
The term only changes the definition of at this order, so one may set .
For , subtracting an appropriate homogeneous solution from the particular solution removes its apparent singularity as . The resulting derivative in the parameter produces the resonant particular solution . The arbitrary constant must be reparametrized before taking the limit.