For the linear partial differential equation , the method of characteristics gives , , . Thus is constant on each characteristic curve, whose nonzero level sets are ellipses. On a domain containing entire such ellipses, the solutions have the form , subject to the desired regularity at the origin.
For the inhomogeneous equation , a particular solution is , so the general solution is . Prescribing fixes only for . The inner ellipses never intersect that data line, so the boundary values leave their solution values undetermined. Smooth extensions must match the prescribed at ; choosing the same linear formula everywhere gives one polynomial extension.
Homogeneous linear differential equation Created 2026-09-29 Updated 2026-10-14
A homogeneous linear differential equation is a linear differential equation with identically zero forcing term, . On a common interval, its solutions of a differential equation form the vector space , the kernel of a linear map. They include the zero function and are closed under addition and scalar multiplication. For any two solutions of a differential equation and constant scalars , linearity gives : this is the superposition principle. The scalars must be constant; variable multipliers introduce extra derivatives.
For example, has general solution , where is any constant real number. A short verification uses the product rule: , so is constant. For and , the sum is and also solves the same homogeneous linear differential equation. At , their values are approximately , and . Every curve is a multiple of one exponential function; the solution space of a homogeneous linear differential equation has dimension one. Both and in this example and the following diagram are dimensionless mathematical variables.
Now keep the same differential operator but prescribe the forcing term . The inhomogeneous linear differential equation has particular solution and general solution . The initial conditions select, respectively,
At , their values are approximately , and . The midpoint solves the same inhomogeneous linear differential equation, because . The sum instead satisfies , so it fails the equation with forcing term . More generally, a linear combination of solutions of a differential equation for the same fixed nonzero forcing term retains that forcing term precisely when its scalar weights add to one. This is the affine space structure, rather than unrestricted superposition within that fixed family.
On the left, all three curves solve the same homogeneous linear differential equation. On the right, share the particular solution , and the shaded difference is the homogeneous solution . The dashed sum has twice the forcing term, even though its starting value coincides with that of . Adding the two initial conditions also adds their inputs; taking their midpoint averages both. This distinction makes the superposition principle useful for assembling responses to different inputs without mistaking that assembly for a solution of a differential equation with the original input. See MIT's superposition notes, including the particular solution one half.
Integrating factor Created 2026-09-24 Updated 2026-10-14
An integrating factor is a nonzero multiplier that makes a differential equation directly integrable. For a first-order linear differential equation, it gathers the unknown function and its derivative into one product rule expression. Suppose and are continuous functions on an interval containing , and consider the initial value problem
Define and . The exact solution of a differential equation throughout that interval is
The definite integral fixes , so the initial condition appears without an extra constant to determine. If the equation originally has a coefficient multiplying , first divide by that coefficient on an interval where it is nonzero; a zero of that coefficient needs separate attention. See OpenStax's first-order linear equations chapter for this normalization and the integrating factor procedure.
For a concrete balance, solve with . Here , so multiplying the entire ordinary differential equation gives . Accumulating from zero to gives
The computed values are , and . Its derivative is , which verifies exactly. Interpreting as a steady input and as proportional removal explains the shape: initially all input increases , then removal catches up. The constant particular solution balances input and removal, and the homogeneous solution is the transient response that corrects it to the initial condition. Because this autonomous differential equation has a time-independent right-hand side, is also an equilibrium point.
Figure 1.
A steady input becomes a constant particular solution plus a decaying transient
. Details.
The first panel adds the particular solution and homogeneous solution; the second shows the same balance in rates, . This links the algebra to a physical accounting rule. Newton's law of cooling has this form with and , while an electrical circuit can have a varying input. In both cases the integrating factor systematically handles the input rather than requiring a guess for a particular solution.
Variable coefficients work just as directly. For , , the integrating factor is , and
Thus , and . The derivative verifies , including at zero, where both coefficient and input vanish. No division by is necessary. The general solution is : is a constant particular solution, and solves the associated homogeneous linear differential equation. Although this special forcing term admits a constant trajectory, this is a nonautonomous differential equation: it depends explicitly on time. Merely setting its right-hand side to zero at one instant would not establish a constant solution of a differential equation; at every state has zero slope.
Figure 2.
Variable-rate trajectories share a constant particular solution and forget initial data by a factor of exp minus t squared
. Details.
The direction field shows the selected trajectory leaving its initially horizontal tangent line. For , the difference between any two solutions of a differential equation is multiplied by , rather than in the constant-rate example. This dependence on elapsed history is clearer if the exact formula is rewritten as
For , each contribution from the input at is weighted by the accumulated coefficient between and . The homogeneous solution remembers the initial condition; the particular solution given by the second term accumulates the forcing term with zero initial value. This decomposition differs from choosing a constant particular solution, but gives the same total. Initial-data memory tends to zero when ; a negative accumulated coefficient instead amplifies it. The reciprocal relation between integrating factor and homogeneous solution is developed in MIT's notes on solutions to linear first-order equations.
Why does the trick work? The fundamental theorem of calculus and chain rule give . Consequently the product rule gives
Integrating this identity and dividing by the positive exponential function produces the stated formula. Any nonzero constant multiple of works equally well; normalization is a convenience. This is the beauty of the method: a sum involving an unknown function becomes one exact derivative, leaving only an integral of known functions. See Oregon State's product-rule derivation. The related integrating factor for a differential one-form extends the idea of making an expression exact beyond this linear setting.
Linear differential equation Created 2026-09-24 Updated 2026-10-20
A scalar linear differential equation of order has the form
Here the coefficients and the forcing term are prescribed functions of the independent variable . A classical solution of a differential equation is an -times differentiable function satisfying the identity at every point of its interval. The unknown function and its derivatives enter to the first power, without products between them or coefficients depending on . Equivalently, the differential operator is a linear map: for constant scalars ,
The forcing term may be zero, giving a homogeneous linear differential equation, or nonzero, giving an inhomogeneous linear differential equation. Linearity of does not mean that every function graph of a solution of a differential equation is a straight line.
To use the usual order- initial value problem theory on an interval , assume that throughout and that all and are continuous functions there. Dividing by normalizes the highest derivative; specifying at then selects one solution of a differential equation throughout . A zero of needs separate analysis: one cannot divide through it and retain these conclusions. The first-order normalization appears in OpenStax's definition and standard form of linear equations; the corresponding system theorem is in MIT's existence and uniqueness notes for linear systems.
The coefficients need not be linear functions of . For example, is a linear differential equation on , although is quadratic. Its solution of a differential equation with initial condition is : its derivative is , so substitution gives , and . The zero of the highest coefficient at explains the domain restriction. In contrast, , and are nonlinear ordinary differential equations because of their dependence on the unknown function. Variable coefficients and nonlinear ordinary differential equations are different issues; see MIT's definitions and examples of first-order linear equations.
The practical benefit of linearity is that it separates the effect of the initial condition from the effect of the forcing term. Once one particular solution satisfies , every solution of a differential equation is
Here is the kernel of a linear map, consisting of solutions of a differential equation to the associated homogeneous linear differential equation. Indeed, , and conversely . Thus the family for a fixed forcing term is an affine space obtained by translating . If is not identically zero, the zero function is absent, so this family is not a vector space under the usual operations on functions. This short argument explains why a general solution is a particular solution plus a homogeneous solution.
Matched asymptotic expansion Created 2026-09-24 Updated 2026-10-14
A matched asymptotic expansion constructs approximations in regions with different distinguished limits and fixes their free constants by requiring agreement in an overlap region. The inner expansion resolves rapid variation; the outer expansion describes the surrounding region. Matching compares their common limiting behavior, rather than imposing distant boundary conditions directly on a local approximation.[ref]
For the singular perturbation problem , , , the leading outer solution is . The inner variable gives and , hence . In the overlap region , the inner variable tends to infinity while the outer coordinate tends to zero. The asymptotic matching condition is
so . One concrete path through the overlap region is : then and . Matching selects the free constant that the left boundary condition alone could not determine.
Why choose the right boundary condition for the outer solution? If instead one selects from the left, a proposed right boundary layer with satisfies . Its general solution is . Matching to zero as forces , contradicting . The direction in which the exponential function decays determines which endpoint can carry the boundary layer; endpoint selection is part of the calculation.
For a positive eigenvalue write . The general solution of the limiting constant-coefficient differential equation is . The endpoint at zero gives . A nonzero eigenfunction then requires , and the endpoint at gives . Consequently
For real eigenfunctions the constants may be any nonzero real amplitudes. Requiring unit L2 norm would set , but that normalization is not required by the question. The lowest eigenvalue is and its eigenspace is spanned by . For completeness, zero yields only an affine solution annihilated by both endpoints, and negative eigenvalues yield hyperbolic functions whose two zero endpoint values also force the zero solution.
Work first on . For , the power-law ansatz gives the indicial equation . Therefore the Cauchy-Euler equation has general solution
For the repeated indicial root supplies the logarithm rather than two copies of the constant solution. Alternatively, the change of variables turns the differential equation into . On the corresponding real formulas use and , with independent constants on the two sides of zero.
For general , normalize the second-order linear differential equation as
The coefficient is singular at zero, but and are analytic functions there because is a positive integer. The regular singular point criterion for a second-order equation therefore proves that zero is a regular singular point for every allowed . The indicial equation remains .
Normalize both leading coefficients to one. For the indicial root , the recurrence relation from part (b) gives
Recognizing the Taylor series of the sine gives the first Frobenius solution
For the smaller indicial root , . The equation at is ; choose the free coefficient to avoid adding the first Frobenius solution. The remaining coefficients are
Thus the Taylor series of the cosine gives
Their leading terms are and , as required for Case IIIb. A direct check uses : the differential equation becomes , so these two functions solve it on . Their Wronskian is , proving linear independence. The general solution is .
The power-law ansatz gives
Since , the equation roots and are distinct. The Cauchy-Euler equation therefore has general solution
For , the first derivative and second derivative are
The strictly convex function diverges to as , passes through , and has a unique lowest point at
As , , so the line is an asymptote. When , the lowest point is to the right of one; at it is at one, and for it is to the left of one.
The ratio of the two terms is
Thus is larger for , the terms are equal at , and is larger for . In the stronger asymptotic sense as , dominates at each fixed , and dominates at each fixed . Their crossover has , equivalently , as described by the power-law crossover in a singular perturbation. In that region with bounded gives .
Substitute the proposed regular perturbation into the differential equation. The leading and subsequent equations are
Consequently , and in fact each successive coefficient has the form , because the preceding second derivative is zero. The leading approximation is therefore
It has only one adjustable constant and generally cannot impose two independent boundary conditions. Those assumed in the question require a nonzero coefficient, which a power series in cannot recover: at fixed it is exponentially small, and at fixed it grows without bound as . Thus the regular perturbation describes the specified solution only in the region to the right of the crossover, away from ; it is not a uniform approximation on .
Figure 1.
The exact solution and its two power-law contributions
. Original sketch for , showing the decreasing contribution, the increasing contribution, their sum, and its lowest point. The inset resolves the region where both terms contribute. Details.
The reduced equation and the left boundary condition give the leading outer solution
Introduce the right inner variable and write . The chain rule gives and . Multiplying the rescaled differential equation by gives the exact equation
At leading order, , with general solution . The right boundary condition gives . The asymptotic matching condition in the overlap region gives
Thus and , yielding the leading inner expansion
Equivalently, the inner variable gives . Both normalizations describe the same boundary layer.
When , the forcing has nonzero integral , violating the Fredholm alternative condition. There is no bounded solution. Directly, integration gives ; cancellation of its logarithmic divergence at requires , while cancellation at requires .
For , the constant is a particular solution. Subtract it from any solution. The remainder satisfies the Legendre differential equation, whose general solution is a combination of and the logarithmically unbounded Legendre function of the second kind. Boundedness removes the latter coefficient, giving
The constant forcing is orthogonal to for , consistently with Orthogonality of Legendre polynomials and the Fredholm alternative.
For the positive coefficient of , setting gives the reduced equation , with general solution . A fast decaying homogeneous solution of is , placing the boundary layer at the left endpoint. Thus use the right boundary condition for the outer solution: implies
The dominant balance gives width . With the inner variable and , the exact rescaled equation is
At leading order, , so . The asymptotic matching condition sets , and sets . Therefore
The additive composite expansion has zero overlap to subtract. Its graph starts at one, decreases steeply over , and then stays close to zero; its initial slope is . The right endpoint discrepancy is exponentially small. The left panel of the figure below sketches this profile. A right-end inner expansion would instead contain a growing term and could not repair the left endpoint mismatch.
Separate variables and integrate on :
Hence the general solution in this region is
Every such solution increases from values near towards , remains strictly between the two equilibria, and is defined for all real .
With , the central finite difference converts the decay equation to
The continuous ordinary differential equation has the general solution . The discrete linear recurrence is second order and requires two initial values, such as . Trying gives the characteristic equation of a linear recurrence . Its roots are
so
There are no repeated roots, and the same formula extends to negative integer if required.
To demonstrate the continuum limit, put . Then and , with . For ,
uniformly, since . More precisely , giving an error on a fixed interval. Thus , selects the physical discrete mode and corresponds to .
The other root is a parasitic amplification root:
For fixed , even and odd mesh points approach values differing by . Equivalently successive mesh values have a nonvanishing alternating jump despite their time separation tending to zero. This mode cannot converge uniformly to a continuous ODE solution; its limiting envelope also grows rather than decays.
For step-dependent initial data the precise result is the centered two-step discretization of exponential decay criterion:
Sufficiency follows from the two uniformly bounded exponential envelopes on a fixed interval. Necessity follows from convergence at the adjacent points : , , and the coefficient formulas force , . In particular a nonzero but vanishing starting error is not excluded. Starting with the exact value gives and still converges on each fixed interval. The assertion about “remaining” solutions therefore concerns a fixed nonzero parasitic amplitude, not every nonzero step-dependent amplitude. The method is nevertheless not damping-stable for arbitrarily long times because .
An integrating factor for a differential one-form makes the multiplied form exact. If , then and . Equality of the mixed partial derivatives yields
This is a local compatibility condition under the usual smoothness assumptions.
For the trigonometric equation, where its coefficients are defined and division is legitimate, the slope is . In the first quadrant it is positive, small near either axis and large near the upper-right corner. The direction field below uses normalized line segments, so steep directions remain visible.
Multiplication by gives
Thus the multiplying function is an integrating factor, and the implicit general solution is
In the larger square, . The positive- curves have positive and are symmetric about the -axis; the negative- curves are their reflections. For , a graph representation is
with endpoints tending to . The interior curve is . The domain boundaries include singular coefficients or zeros of the integrating factor, so these endpoint limits and smooth continuations through describe the regularized relation; they must not be mistaken for additional solutions of the literal original equation at undefined points.
Figure 1.
Trigonometric direction field, regularized implicit solution family, and the positive higher-order particular solution
. Details.
For the homogeneous solution, expand in the independent eigenvectors of . Each coefficient obeys , so the complementary function is
If is any particular integral, subtracting it from any other solution gives a homogeneous solution. Hence is the general solution. Complex-conjugate modes can be combined to produce real solutions when the forcing is real.
For a real two-by-two matrix, the characteristic polynomial is . Under the stated distinct-eigenvalue assumption, all nonzero homogeneous modes are purely oscillatory exactly when the eigenvalues are with . Their sum and product imply , . Conversely these trace and determinant conditions force those eigenvalues, so there is no exponential growth, decay or Jordan-block secular growth.
For the final specified initial-value problem, direct multiplication gives . The forcing vector satisfies , so the forcing is resonant and is a particular integral. The matrix exponential is
Since the resonant particular integral vanishes initially, the initial-value solution is
This complex solution is appropriate to the complex forcing as written. Taking real parts gives the corresponding solution for the real part of that forcing.
Work first on , where the proposed logarithm is defined. Substitution of into the Cauchy-Euler differential equation gives the indicial equation
Its distinct indicial roots are . Using and Euler's formula, a real basis of solutions is . Their Wronskian is , so they are linearly independent and span the two-dimensional solution space of a homogeneous linear differential equation. Therefore
For the requested change of variables, set . The chain rule gives
The transformed second-order linear differential equation is . Its characteristic roots are again , giving . Substituting recovers precisely the previous general solution.
If solutions on are wanted, the same calculation uses and gives independent constants on that interval. Zero is a singular point of a differential equation; the logarithmic oscillations do not define a nonzero continuous solution through it.
On an interval where are continuous, define the Wronskian
Using the two second-order linear differential equations to eliminate the second derivatives gives
The integrating factor yields the Abel identity
Thus the Wronskian either vanishes identically or is nonzero everywhere on the interval. If are linearly dependent, it is identically zero. Conversely, if , the two initial-data vectors are dependent, so some nontrivial linear combination has both value and first derivative zero at . The uniqueness theorem for ordinary differential equations makes that combination identically zero. Hence the solutions are linearly independent exactly when their Wronskian is nonzero at one, and therefore every, point. Continuity and the common differential equation are essential to this converse.
For the particular equation, divide by on either interval or . The coefficient of is zero, so its Wronskian is constant there. The proposed satisfies . To construct a second solution by reduction of order, impose
Dividing by shows that , giving
Taking produces
The nonzero Wronskian proves linear independence; hence the general solution on either nonsingular interval is . Zero is a singular point of a differential equation and is excluded from this construction.
The characteristic polynomial of this second-order linear differential equation factors as . Its two distinct roots give the general solution . Boundedness as forces , and the initial condition gives .
The required solution is