Continue the initial value problem , , to using the Euler-Heun embedded pair. Choose absolute and relative error tolerances and , so the scalar scale is throughout. This intentionally absolute-only test makes the local and accumulated errors directly comparable. Start with , accept the Heun's method endpoint precisely when , and after every trial use the capped adaptive step-size controllerFor use the growth factor two. Cap every trial at ; on rejection retain the old time and state. These choices specify an original computation, rather than a claim about the defaults of a particular software solver.
The initial trial has and is rejected. Retrying from with gives and is accepted. The run takes 315 accepted steps and one rejected trial. Increasing exponential growth makes the local error estimator grow at a fixed , so subsequent steps shrink roughly like . The final step is additionally shortened to land at .
Computed Euler-Heun step sizes and errors: every accepted local estimate passes, but accumulated global error exceeds the absolute tolerance
. Details. The right panel plots errors against the accepted-step number, all divided by the same . The actual Heun local defect uses the restarted exact endpoint , while actual global error uses . All accepted are at most one, and the actual Heun local defects here are even smaller, at most about . Nevertheless the endpoint is , versus , with absolute error about . Passing local tests therefore does not certify the original trajectory's global error.
This failure of a global guarantee has an exact explanation for this example. Put and . ThenEach new local defect is added to the previous error amplified by . Iterating this identity, rather than merely inspecting , accounts for accumulation. The variable-step global ODE error bound describes the corresponding mechanism for more general ordinary differential equations.
Repeating with gives 98 accepted steps, one rejection and endpoint absolute error about ; with it gives 1001 accepted steps, two rejections and endpoint absolute error about . Accuracy improves on this smooth problem, but the endpoint error remains about fifteen times the requested local scale. A different initial value problem can amplify or damp defects differently.
Adaptive Euler step doubling for exponential decay Created 2026-10-14 Updated 2026-10-14
Consider the nonstiff scalar initial value problem , , on . Its exact solution is the exponential decay . Use step-doubling error estimation with the explicit Euler method: from the same numerical starting value , form one coarse step and two half steps giving :Accept when the absolute and relative error tolerances test passes, with . There is no Richardson extrapolation in the accepted value. Both approximations have order of a numerical method one, while this local error estimator has step exponent . Consequently the adaptive step-size controller uses a square root, not a cube root:Start with . A rejected trial retains both and , caps at one, and retries. A zero estimate uses . Before every trial, cap at . Stop with a failure if floating-point arithmetic gives , or after 100000 trials. These rules specify the example completely; they are not a prescription for every ordinary differential equation solver.
Adaptive two-half-step Euler decay: exact and numerical trajectories, accepted step sizes and rejected trials
. Details. The first two trials, and , have and and are rejected. The next trial has and and is accepted. For positive decreasing numerical values, , so the local error estimator givesWhen the relative term dominates, this suggests nearly constant accepted steps, approximately . When falls below the crossover size , the absolute term increasingly permits longer steps. The sharp final decrease in only lands on ; it does not indicate a sudden loss of smoothness.
The actual signed local defect from the same numerical input isHere is Big O notation, obtained from Taylor's theorem for the exponential function. Thus agrees with the leading term as , but is not identical to . At , , the estimate is while the actual local defect is . Their closeness improves for the smaller accepted steps. Had we added using Richardson extrapolation, the accepted formula would instead be , of order of a numerical method two; the same raw difference would still scale as and would not estimate that improved value's leading defect.
Estimated versus actual local Euler defects, rejected trials, and actual accumulated global error scaled by the local tolerance
. Details. The global error obeys an exact recurrence relation involving the actual local defects:Each previous global error contracts, yet the local defects keep adding. In the plotted run, 101 steps are accepted and two trials are rejected. Every accepted is at most approximately , while the largest is approximately . At , the numerical value is approximately , compared with the exact , giving absolute error approximately . The right-hand plot deliberately scales actual global error by the same used for local acceptance; it is not a new global error tolerance test.
Tightening both absolute and relative error tolerances by a factor ten gives 315 accepted steps and endpoint absolute error approximately ; tightening both by a factor one hundred gives 991 accepted steps and endpoint absolute error approximately . This is a convergence comparison for this particular initial value problem. The endpoint error decreases by about a factor three per tenfold tightening, rather than by ten: a first-order Euler method accumulates defects across many steps, while its local error estimator varies quadratically with . A variable-step global ODE error bound needs propagation information as well as accepted local tests.
The absolute stability boundary remains a separate constraint. On the Dahlquist test equation with , the accepted two-half-step formula has stability function . It strictly damps perturbations only for . Its local error estimator is , which can pass an absolute-tolerance test at tiny even outside this damping interval. In a stiff two-mode linear system, a fast mode can therefore constrain the step long after its visible amplitude has become small. An adaptive step-size controller does not turn an explicit Euler method into an A-stable method. Official solver documentation likewise distinguishes explicit Runge-Kutta methods for nonstiff problems from implicit Runge-Kutta methods and backward differentiation formulas for stiff equations.[ref]
scipy.integrate.solve_ivp. solve_ivp, method parameter: explicit versus implicit methods and stiffness
Adaptive step-size controller 2026-10-14
If a scaled local error estimator behaves as with approximately unchanged error scale, the displayed update targets a fixed local level. A safety factor aims below the acceptance boundary. For an embedded Runge-Kutta pair with order of a numerical method for the accepted output and for the companion formula, the difference generally has ; for the actual unscaled local truncation error of an order- formula, . The exponent belongs to the quantity being controlled. Dividing the defect by changes that exponent. This follows by solving for the next step.[ref]
Rejecting a trial means retrying from the same accepted time and state, with a smaller step. Advancing time or retaining the rejected output would change the initial value problem being approximated. Minimum and maximum change factors prevent extreme updates; a zero estimate requires finite capped growth. After acceptance, cap the next step at the remaining interval length. Detect a step that cannot advance time in floating-point arithmetic, and report failure rather than an endless retry. An adaptive step-size controller can use earlier estimates to smooth step sequences, but the memoryless rule here is sufficient to explain acceptance and rejection.[ref]
Convergence of a numerical method Created 2026-10-06 Updated 2026-10-14
For an initial value problem, convergence means that the largest global error on each fixed finite time interval tends to zero as the step size tends to zero and the starting errors vanish. For linear multistep methods, the Dahlquist equivalence theorem separates this requirement into consistency of a numerical method and zero-stability.
Delayed solutions of a square-root differential equation Created 2026-10-14 Updated 2026-10-20
This initial value problem uses a square root and absolute value to define a continuous function on all of . For every finite waiting time , a forward solution of a differential equation on isThe constant solution of a differential equation is another choice. For example, at , waits give values . These are dimensionless mathematical trajectories; no measured physical waiting time is being supplied.
Verification uses the original ordinary differential equation, including the join. Before departure, both and vanish. For , their common value is . For , the difference quotient at the join isThus the derivative exists at , equals the rate law there, and is continuous across the join. For the same computation gives the right derivative at the starting endpoint. For , the left and right second derivatives at departure are and : these forward solutions of a differential equation are continuously differentiable functions, without being twice differentiable at departure. The local two-sided statement of the Peano existence theorem is separate from this explicitly forward family.
The rate law tends to zero as , but its secant slopes from zero are unbounded:No finite local Lipschitz constant exists at zero. At the quotient is , even though the rates are shrinking to zero. Continuity controls the rate itself; Lipschitz continuity would control its change relative to the state displacement.
There is also a numerical lesson. The forward Euler method starting exactly at zero gives at every step. It reproduces the constant solution of a differential equation for every positive step size, while the moving trajectories remain equally valid. A computation producing one trajectory cannot establish uniqueness. Likewise, the separable differential equation calculation that divides by only describes the moving pieces: checking the original equation recovers the zero pieces and their joins.
Deterministic evolution Created 2026-10-14 Updated 2026-10-20
Evolution is deterministic when a specified initial condition and evolution rule select a unique future orbit. For a discrete dynamical system, applying the same map to the same state gives the same next state. For an ordinary differential equation, uniqueness of the initial value problem is required; merely writing a differential equation does not guarantee it.
Determinism permits both asymptotic stability and sensitive dependence on initial conditions. It does not by itself imply reliable prediction from approximate measurements, and sensitivity does not introduce a random choice into the evolution rule.
Direction field Created 2026-10-14 Updated 2026-10-18
A direction field for places a short segment with slope at each sampled point where is defined. A function graph of a solution of a differential equation follows these segments: its tangent line has exactly the prescribed slope. Segment length is a drawing choice, rather than a speed; arrows, if used, point toward increasing . An isocline collects points with one common slope.
For Newton's law of cooling, with time in minutes and temperature in degrees Celsius, the slopes at are respectively degrees Celsius per minute. Each horizontal row is an isocline, because this autonomous differential equation has no explicit time dependence. Above the solutions of a differential equation descend, below they rise, and is an equilibrium point.
The highlighted initial condition selects one curve from the family. The picture reveals approach to the equilibrium point before any algebra is done. Under the hypotheses of the Picard-Lindelöf theorem, distinct function graphs of solutions cannot cross or even meet in the time-state plane. A direction field alone does not guarantee uniqueness: several curves can share a tangent line at the same point when those hypotheses fail. See the delayed-start example under initial value problem.
This geometric interpretation is developed in Direction Fields, Isoclines, Integral Curves.
Take a reservoir with constant horizontal cross-sectional area , one small orifice of area , no inflow, and constant stipulated discharge coefficient . Let the initial head be . For constant mass density , the stored mass above the outlet level is and outgoing mass flow rate is . Mass conservation cancels and gives the initial value problemThe downward speed of the free surface is , smaller than the ideal jet speed by the factor . Thus a small opening relative to the reservoir supports the negligible-surface-velocity assumption.
For , separation of variables or the chain rule gives . Integrating yieldsThe model reaches zero head in finite time even though volumetric flow rate tends to zero. Extending the squared expression beyond would make head grow again and violate the original ordinary differential equation. The zero-head continuation enforces no further outflow. For an elevated side opening, zero head means the surface has reached that opening, leaving fluid below it; is not the time to remove every drop from such a tank.
For an original synthetic example, stipulateThe initial volume above outlet level is . The initial ideal jet speed is , the initial volumetric flow rate is , and the predicted zero-head time is . These are consequences of stipulated parameters, not experimental measurements. At , head is , stored volume is , and volumetric flow rate is . Half the initial volume has already left at .
Constant-area drainage: quadratic head and linearly declining discharge
. Original synthetic trajectories for the stipulated draining tank with constant cross-sectional area, with , , , and . The model remains at zero head and zero volumetric flow rate after . The shaded area under the flow curve represents . Details.An independent mass conservation check integrates the outgoing volumetric flow rate:Multiply both sides by mass density to obtain discharged mass. A dimensional analysis check gives , and . The triangular area under explains why the initial-rate estimate is only half the actual model time. Doubling doubles ; doubling or halves , within the same assumptions.
This finite-time result is an idealized prediction. The constant and quasi-steady approximation need not survive very small head or the initial startup. Appreciable viscosity in a narrow outlet tube requires a different pressure balance, as in Poiseuille flow; appreciable surface tension can prevent zero head altogether.
Endpoint obstruction in a homogeneous differential equation Created 2026-10-20 Updated 2026-10-25
For on a domain where the tangent is finite, put . The homogeneous first-order differential equation becomes . Direct differentiation gives , hence , without dividing by and losing constant-ratio solutions. If and as , two branches are and , defined for . They approach the same finite endpoint but have unbounded derivatives. The original tangent is undefined at the endpoint, so neither is a classical solution through that point. An implicit relation extending continuously to an initial point does not by itself solve an initial value problem there.
For an incoming timelike Schwarzschild geodesic with asymptotic Lorentz factor , the critical unstable circular orbit obeysAt , and . For , the critical radius lies between and and . The marginally bound angular-momentum bound remains sufficient at larger energies but is no longer the exact threshold. Origin at infinity and an inward initial branch are essential; an orbit already inside a barrier is a different initial value problem.
Consider identical harmonic oscillators with unit mass, natural angular frequency , and positive coupling :An initial impulse on the first gives and . The normal mode coordinates and have angular frequencies and . Solving their initial value problems provesLet . To leading order in , sum-to-product identities give the displacement amplitude envelopes and . Thus the first nearly complete energy transfer occurs at , and localization returns at . More precisely, at , the first oscillator has exactly zero velocity and residual displacement , of order .
Here transferred energy means kinetic energy plus the uncoupled quadratic potential energy; the coupling potential energy is relatively small. The fast phase need not make the receiving oscillator pass through zero displacement at the transfer time. Expanding as small is invalid on the transfer scale . This lemma complements absolute and signed beat envelopes by keeping that slow phase.
Euler-Heun embedded pair 2026-10-14
The Euler-Heun 1(2) pair combines the explicit Euler method and Heun's method. Here 1(2) names their respective order of a numerical method; the accepted endpoint in this article is the second-order one. Its shared Runge-Kutta stages and endpoints areThe first output row in this Butcher tableau is Heun's method; the second is the explicit Euler method. Both outputs cost two evaluations of together, rather than one for Euler method plus two for a separately computed Heun's method.
For the initial value problem , , take . The first slope is ; the stage state is , giving . ThereforeThe exact exponential function gives signed local defects approximately for the explicit Euler method and for Heun's method. Their difference is exactly . Thus the pair difference estimates the larger Euler defect; calling it the actual Heun defect would miss by a factor about fourteen here.
More generally, a step from on hasThese original Taylor expansions separate three quantities: the accepted Heun's method has local truncation error and global error under suitable numerical stability, while the tested local error estimator is . For with held approximately fixed, use . A cube-root update would model a different quantity, the actual higher-order local defect.
Euler method Created 2026-10-14 Updated 2026-10-20
The Euler method approximates an initial value problem , , by evaluating the derivative at the current point and moving along that tangent line for a time . With , its displayed update needs one evaluation of per step. This simple rule turns local slope information into a whole approximate trajectory. MIT's course notes derive it by dropping the second-order Taylor remainder.[ref]
Take , , whose exact solution is the exponential function . The Euler method givesAt , the first values are . At , five steps give , compared with . The result decays but is too small: absolute stability alone does not ensure accuracy. At , the first values are , and at five steps give , while the exact solution is about .
For the Dahlquist test equation , the Euler method has stability function with . Its absolute stability region is , the closed disk centred at with radius one. For the present real decay problem and , bounded numerical values require ; strict decay requires . At the values alternate without decay. These conditions follow directly from the amplification factor , matching MIT's criterion for .[ref]
https://web.mit.edu/10.001/Web/Course_Notes/Differential_Equations_Notes/node3.html. MIT 10.001, Forward and Backward Euler Methods, linear decay example
The Euler method is first order: with bounded second derivative and suitable Lipschitz continuity, its global error is on a fixed interval. In this example the logarithm gives for small positive . At , this means . It explains both the downward bias and why halving the step roughly halves the error once is sufficiently small.
Finite-dimensional continuation criterion Created 2026-09-24 Updated 2026-10-14
Under the Picard-Lindelöf theorem's hypotheses on , extend a solution of a differential equation as far as possible, to a maximal interval . If , the time-state trajectory must eventually leave every compact subset of . Equivalently, confinement near to one compact subset of permits continuation past . See Teschl, Section 2.6, Lemma 2.14 and Corollaries 2.15–2.16, pp. 52–53.
The domain restriction matters even for a bounded trajectory. Restrict , , to . Then exists in this domain only for ; at its values are . As , it approaches the excluded boundary point while remaining bounded. Its trajectory cannot fit into any compact subset of near that endpoint. This is escape from a finite domain, without finite-time blowup in norm. Enlarging the domain to gives the same formula for every real .
Conversely, , , stays in the compact set for every fixed . Its growing exponential function is unbounded over the entire future, but has no finite-time blowup. At , its largest value on is only . The relevant question is boundedness before each finite endpoint, rather than one bound valid forever. The tangent function in the diagram under the Picard-Lindelöf theorem illustrates the other possibility: its norm escapes every bound before .
This criterion is useful because an estimate can secure continuation without an explicit formula. In a finite-dimensional vector space, a bounded closed ball is compact; a bounded state trajectory therefore supplies the needed compact set when its time-state closure is inside the domain. That final proviso prevents mistaking a domain boundary for finite-time blowup.
A common sufficient estimate comes from global Lipschitz continuity in the state. Assume for an open time interval , with continuous and a Lipschitz constant valid for all states on each compact time interval under consideration. For , let , finite by continuity. Then , and the Gronwall inequality gives, for wherever the solution already exists,For instance, , , has and the exact solution , attaining this estimate; at the value is . Finite bounds of this kind give continuation throughout , with the analogous estimate backwards in time. When , this gives existence for all real times. If has a finite endpoint, it gives no continuation beyond that prescribed domain. The underlying linear-growth criterion is [ref].
A brief explanation of the continuation mechanism suffices: within the protecting compact set, the continuous function is bounded, say by . The integral equation yields near the finite endpoint, so has a limit . The protecting compact set puts inside . Restarting the initial value problem there and using local uniqueness joins the trajectories.
Fundamental matrix of a linear differential equation Created 2026-10-06 Updated 2026-10-14
For a system of linear differential equations , a fundamental matrix has columns forming a basis of its solution space. It solves and is invertible at every time in its interval. Every solution is for a constant vector : differentiating gives zero. Invertibility at one time implies invertibility throughout the interval by uniqueness of the initial value problem. This notion is distinct from a Markov-chain fundamental matrix or the projective-geometric matrix used in stereo vision.
Hyperbolic function Created 2026-10-05 Updated 2026-10-14
Hyperbolic functions combine the exponential function to describe a hyperbola much as trigonometric functions describe a circle. Their two basic members are the hyperbolic cosine and hyperbolic sine, defined for every real number byTheir derivatives exchange the two functions:These formulas follow by applying differentiation to the exponential function definitions. [ref]
https://openstax.org/books/calculus-volume-2/pages/2-9-calculus-of-the-hyperbolic-functions. Gilbert Strang and Edwin Herman, OpenStax Calculus Volume 2, §2.9: hyperbolic definitions and derivatives
Adding and subtracting gives and . Multiplying these equalities proves the hyperbolic Pythagorean identity:Consequently the parametric equation traverses the entire right branch of the unit hyperbola , where . For example, gives , while gives approximately . Compare on the unit circle, where the squared coordinates add to one. The minus sign changes the geometry from a closed circle to an unbounded hyperbola.
The other members are ratios and reciprocals: hyperbolic tangent is , hyperbolic cotangent is , and hyperbolic secant is ; denominators must be nonzero. The hyperbolic sine and hyperbolic cosine both solve the second-order linear differential equation . In fact has and , making this basis convenient for an initial value problem. Their geometry also makes hyperbolic substitution useful for integrals containing , and the hyperbolic cosine gives the physical catenary of a hanging chain.
Implicit differential equation 2026-10-25
An implicit ordinary differential equation relates the derivative to the independent and dependent variables without requiring it to be explicitly isolated. For example is meaningful at every pair as an equation, but no differentiable solution of a differential equation can pass through : its left side would vanish there. Dividing by gives only on the domain . Conversely multiplying an explicit equation by a vanishing denominator can introduce points where the original equation was undefined. A solution of the multiplied equation at such a point need not solve the original initial value problem.
Implicit solution Created 2026-10-06 Updated 2026-10-14
An implicit solution describes a solution of a differential equation through a relation , instead of isolating in an explicit formula. The relation describes a level set; an actual scalar solution of a differential equation must be a differentiable function on an interval whose function graph lies in the equation's domain. A whole level set need not be one such function graph.
For example, considerImplicit differentiation of gives . For , the circle contains two solutions of a differential equation,Both satisfy the equation on the stated open interval, and their function graphs stay in . An initial condition fixes and selects the sign of . In particular, gives and the upper branch on . The constant alone does not select the branch.[ref]
1.3 Separable equations. §1.3.2 Implicit solutions: implicit differentiation, multiple branches, and selection by an initial condition
A circular level set gives local solution graphs away from vertical tangencies, while a singular level needs separate analysis
. Details. The precise local criterion uses the implicit function theorem. Let be continuously differentiable on an open subset of the plane, with . If its partial derivative , the nearby level set is a unique continuously differentiable function graph through that point. The chain rule givesThis proves that the local function graph solves there. For a different prescribed equation , one must also check along that branch and that it stays in the domain of . A level set by itself does not verify an arbitrary ordinary differential equation.[ref]
8.5 Inverse and implicit function theorems. §8.5.1, Theorem 8.5.6 and the preceding circle example: local existence, uniqueness and derivative of an implicit graph
For , the upper branch through has and tangent line slope . At , however, and . The circle remains a smooth regular level set with a vertical tangent line: it can be written locally as , but not as a single function graph over an open interval containing . Moreover, is undefined there, so the scalar solution of a differential equation cannot include this point in its domain. Changing the parameter draws the curve through the point but does not extend that scalar initial value problem.
When both partial derivatives vanish, even the geometry needs separate inspection. The level is an isolated point, not a function graph on any nonempty open interval. The zero level set of instead consists of the two lines and crossing at the origin, where . Each line satisfies the implicit ordinary differential equation , including at the origin; the explicit form excludes the origin. Thus algebraically dividing by a vanishing coefficient changes the domain and can change which solutions of a differential equation are admissible. Vanishing alone is only failure of a sufficient test: has the smooth zero function graph despite everywhere on it.
Implicit solutions are especially useful for exact first-order ordinary differential equations and for finding a first integral of an ordinary differential equation: a conserved relation can reveal allowed states without an explicit formula. For the normalized harmonic oscillator written as , , the energy has . Its positive level sets are the same circles. Where , eliminating time gives and the local implicit solution above. The harmonic oscillator's parametric curve continues through because its vector field governing evolution in time is defined there; treating as the independent variable fails at that turn. The origin is an equilibrium point of the harmonic oscillator, although it is excluded from the scalar equation .
Initial value problem Created 2026-10-06 Updated 2026-10-14
An initial value problem combines an ordinary differential equation with an initial condition, for example and . The task is to find a solution of a differential equation on an interval containing which has that starting value. For a continuous linear differential equation , every prescribed finite vector determines a unique solution on the coefficient interval. A boundary value problem can instead prescribe values at distinct endpoints.
For the cooling initial value problem , , where and are constant, the unique solution isTake degrees Celsius, degrees Celsius, , and per minute. Then degrees Celsius. Reaching degrees Celsius requires , so minutes. The time constant minutes reduces the excess temperature by a factor ; it does not reduce the absolute temperature by that factor.
Uniqueness needs assumptions. If is a continuous function on an open neighborhood of and satisfies a local Lipschitz condition in , uniformly in , the Picard-Lindelöf theorem gives a unique local solution. Concretely, a finite bounds in a sufficiently small rectangle. Cooling satisfies this with . Local existence does not promise existence for all future time: , , has on and finite-time blowup at .
Continuity alone is insufficient for uniqueness. Consider the dimensionless initial value problem involving a square root and an absolute value:Besides , each delay gives a solution for :At , delays give , despite identical starting data. These are valid solutions of a differential equation: for , both one-sided derivatives at the join are zero; for , the right derivative at the starting time is zero. After the join, because . Squaring alone would also suggest a parabola before the join, but its negative derivative there would violate the equation. Since , a forward solution starting from zero stays nonnegative.
One initial value permits infinitely many delayed-start solutions without a Lipschitz condition
. Details. The right-hand side is a continuous function but fails the Lipschitz condition at zero: for , is unbounded. Thus the Peano existence theorem still supplies local existence, while the Picard-Lindelöf theorem does not supply uniqueness. Related waiting-time examples and a sufficient uniqueness condition appear in MIT 18.034, Lecture 2: Fundamental Principles.
A brief proof outline explains the mechanism: rewrite the initial value problem as the integral equation . On a short enough interval, the Lipschitz condition makes the right-hand side a contraction mapping on a closed set of continuous functions near . The contraction mapping theorem gives a unique fixed point; the fundamental theorem of calculus turns it back into a solution.
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 problemDefine and . The exact solution of a differential equation throughout that interval isThe 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 givesThe 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.
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 , andThus , 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.
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 asFor , 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 givesIntegrating 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.











