Method
Solving first-order equations
Adapted
Gives the six standard closed-form methods for a first-order first-degree equation — separation, exactness, integrating factors, the linear formula, the substitutions for homogeneous and for Bernoulli equations — each with the hypotheses it needs, the reason it works, and worked examples with checkable numbers.
Prerequisites: Partial derivatives and the chain rule, Differentiation under the integral sign, Implicit and inverse function theorems, Line integrals and conservative fields
There is no procedure that solves every first-order equation in closed form. What there is instead is a short list of shapes that can be recognised by inspection, each of which collapses to an integration. Two ideas do all the work.
- Separate. If the -dependence and the -dependence can be pushed to opposite sides of the equation, each side is integrated on its own and the solution is the resulting relation between and .
- Make exact. If the left-hand side of is the total differential of a single function , the equation says , so the solution curves are the level curves . When it is not such a differential, multiplying by an integrating factor can make it one.
The other four types are reductions to these two: a linear equation is made exact by an integrating factor that can always be written down, and the homogeneous and Bernoulli substitutions turn their equations into a separable and a linear one respectively. All of them but one involve a division — by a factor , by or , by , by — and each division can discard solutions or shrink the region where the work is valid. The exception is the exact-equation method as given below, which divides by nothing and loses nothing; that is part of why it is the shape the others are reduced to. For the rest, keeping track of what was divided by is part of the method, not an afterthought.
A first-order equation contains no derivative of beyond , and it is of first degree when appears to the first power only. Such an equation can be written in either of two interchangeable ways,
related by wherever . The first form is the one to use when is to be found as a function of ; the second treats the two variables alike, which is what the exactness methods below need. Riley, Hobson and Bence call these the two standard forms and choose between them according to the type of equation at hand.
A solution on an interval is a differentiable function whose graph lies in the region where the data are defined and which satisfies at every . A solution of the initial-value problem , is a solution on an interval containing with .
The general solution carries one arbitrary constant. (Riley, Hobson and Bence take the general solution of an th-order equation to contain arbitrary parameters, or constants; they say explicitly that they assume this rather than prove it, a fully general proof being difficult, p. 470.) Fixing the constant from an initial condition gives a particular solution.
Most of the methods below deliver the answer not as but as an implicit solution: a relation
together with the statement that every differentiable function defined implicitly by that relation is a solution. Where the implicit function theorem converts the relation into a function locally; where the solution curve has a vertical tangent and cannot be solved for, although may be solvable as a function of . This is why the differential form, which is symmetric in the two variables, is often the honest place to stop.
An equation has separated variables when it can be written
Coddington defines the class by the quotient instead, calling separated when can be written as (p. 186), and then multiplies up to the displayed form. The two forms pick out the same equations but not the same solutions: where vanishes or is undefined the displayed form can hold and the quotient form cannot, which is the content of the proviso at the end of this block. Riley, Hobson and Bence write the same class as a product, , which is the case .
Theorem (Coddington, Theorem 1). Assume is continuous and real-valued on and is continuous and real-valued on . Pick antiderivatives: any with and any with . The solutions are then exactly the functions cut out by the relation
in the following two senses, for an interval contained in (Coddington's wording: he assumes continuous on the open interval but allows inside the closed one).
- Suppose that, for one such , the relation determines implicitly a differentiable real-valued throughout . Then holds along on .
- Suppose instead that is given as a solution of on . Then some constant makes the relation hold along throughout .
For the quotient form of the equation Coddington adds a proviso, since dividing by is dividing: such a solves on as long as is non-zero at each point of .
Both directions are the chain rule, read forwards and backwards. The function has derivative , which is exactly the left side minus the right side of the equation. So " solves the equation" and " is constant" are two ways of saying that one function has zero derivative. Writing and integrating each side separately is a shorthand for the substitution in the integral of the left-hand side.
-
The relation gives a solution. Suppose defines a differentiable on , so that for all . Differentiate in : the left side is differentiable because is (its derivative is continuous) and is, and the chain rule gives
which is the equation satisfied by on . If moreover throughout , dividing gives , the equation in the form . This is where Coddington's proviso is used, and it is the only place it is needed.
-
A solution satisfies the relation. Conversely let solve on and fix . By step 1 read backwards, is the derivative of , so the equation says that and have the same derivative on . Integrating from to and using the fundamental theorem of calculus — legitimate because both derivatives are continuous on —
Setting gives on .
-
Why "separating" is the same computation. In step 2 the integral was evaluated by recognising the integrand as a derivative; the substitution , turns it into . That substitution is precisely what the formal manipulation records.
- Try to factor the right-hand side as . Equations that do not look separable often become so after one factorisation.
- Record the zeros of . Each root of gives a constant solution . These are exactly the solutions that the next step may destroy.
- Divide by , multiply by , and integrate each side with respect to its own variable, remembering a single constant of integration.
- Solve the resulting relation for if it can be solved; otherwise leave it implicit. Impose the initial condition to fix the constant, and check by substitution.
- State the interval on which the answer is valid: it ends where the denominator reaches zero, where an integral diverges, or where itself ceases to exist.
Separation can miss solutions, and Coddington makes the point with two examples.
- For , separating gives . The identically zero function also solves the equation and is not of that form for any .
- For , separating gives , and again is a solution outside the family. This equation has worse behaviour still, and Existence and uniqueness of solutions returns to it.
The remedy is the bookkeeping in step 2 of the method: list the roots of before dividing. In Example 1 below, the two constant solutions found that way turn out to be the asymptotes that every other solution approaches, so the lost solutions are not a technicality but the main features of the phase picture.
The equation , written in differential form as , is exact in a region if there is a function with continuous first partial derivatives in such that
Equivalently, is the total differential of a single function — an exact differential in the sense of Riley, Hobson and Bence, §5.3. (Coddington writes and where we write and , and where we write ; the two theorems below are his, in our letters.)
Theorem (solutions of an exact equation; Coddington, Theorem 2). Let be exact in a rectangle , and let be real-valued with and throughout . Then every differentiable function defined implicitly by a relation
is a solution; and conversely, no solution with graph in is of any other kind. In short, the solutions in are exactly the differentiable functions that the level relations of define implicitly.
Theorem (criterion; Coddington, Theorem 3). Let and be real-valued functions with continuous first partial derivatives on a rectangle
Then is exact in if and only if
The three sources state the criterion with different amounts of hypothesis, and this unit follows Coddington's version, where both the differentiability assumptions and the shape of the region are named.
- Coddington asks for continuous first partial derivatives of and on a rectangle and gets an "if and only if".
- Riley, Hobson and Bence derive from the equality of mixed partials and then record that the criterion is sufficient as well as necessary (p. 156), without naming a region on which that holds.
- Arfken, Weber and Harris are more cautious in the other direction: they draw only the one-way conclusion, that exactness forces the criterion (p. 333), and obtain the potential afterwards by integration.
The region matters. On a region that is not simply connected the criterion can hold without a single-valued existing: on minus the origin,
satisfy , yet and the polar angle gains around a loop enclosing the origin, so no continuous exists on the whole punctured plane. This is the same phenomenon as a curl-free field that is not a gradient field (Line integrals and conservative fields); a rectangle is convex, so every loop inside it bounds a region also inside it, and the obstruction cannot arise there. Taking the criterion as sufficient without a hypothesis on the region, as the shortest statements of it do, is therefore a genuine restriction on where it may be applied.
One direction is just that mixed partial derivatives commute: if and are a gradient's two components then and are both the mixed second derivative of .
The other direction has to produce out of nothing. Integrate in along the horizontal segment that runs from the rectangle's vertical centre line out to ; that forces but leaves an unknown function of , which is fixed by integrating along the centre line itself, from the centre up to . The resulting then has for one reason only: differentiating the horizontal integral under the integral sign produces , the hypothesis replaces by , and the fundamental theorem of calculus turns back into . The rectangle is what guarantees that the two segments used lie inside the region.
Necessity. Suppose the equation is exact in , with and . By the hypothesis of Theorem 3 the two first partials of are then on , so is there, and the equality of mixed partials for a function (Partial derivatives and the chain rule) gives in .
Sufficiency. Assume in and define, for ,
Both integrals are defined: is a rectangle centred at , so the horizontal segment from to and the vertical segment from to both lie in , where and are continuous.
-
. The second integral does not involve , and is continuous, so the fundamental theorem of calculus gives at every point of , the derivative being the one-sided one at the two vertical edges.
-
, first at interior points. Fix and let range over the open interval , which is the form in which the prerequisite is stated: its parameter set must be open, whereas our runs over a closed interval. On that open interval we may differentiate the first integral with respect to under the integral sign, because and are continuous on the product of it with the closed -interval between and (Differentiation under the integral sign); the second integral is differentiated by the fundamental theorem. Hence, for ,
where the middle equality is the hypothesis — the only step that uses it — and the last is the fundamental theorem applied to .
The two edges. To reach the top and bottom of , integrate what has just been proved: for the function has the continuous derivative , so there. Both sides are continuous in on the closed interval — the left because and are continuous on , the right because is — so the identity holds at as well, and differentiating it with the fundamental theorem gives throughout , one-sidedly on the two horizontal edges.
-
Since and are continuous, has continuous first partials, so the equation is exact in .
(Coddington reaches differently: he writes down a second integral formula for , with the roles of the two variables exchanged, and verifies that it agrees with the first by an identity between two iterated integrals. The computation in step 2 does the same work by differentiating the first formula directly.)
Theorem 2. Let , in and let be differentiable on an interval with graph in . The chain rule gives
Read from right to left: if solves on , the right side vanishes identically, so has zero derivative on the interval and is therefore a constant ; thus is defined implicitly by . Read from left to right: if on , the left side vanishes, so solves the equation.
- Write the equation as .
- Test. Compute and . If they differ, the equation is inexact; go to the integrating-factor method below.
- Integrate in with held fixed: , the "constant" of integration being allowed to depend on .
- Fix : differentiate the result with respect to , set it equal to , and solve for . Every must cancel at this point; if it does not, step 2 was wrong. Integrate .
- The solution is . Fix from the initial condition and solve for if possible.
Arfken, Weber and Harris give the result of steps 3 and 4 in closed form,
which is the function constructed in the proof above; their Eq. (7.10). They also note that separability and exactness are independent properties: every separable equation is exact, but an exact equation need not be separable (p. 333).
Standing hypotheses. Throughout this block and are real-valued with continuous first partial derivatives on a rectangle
which are the conditions Coddington imposes for his integrating-factor exercises (Ex. 3, p. 198), and is a function on with continuous first partial derivatives and nowhere zero there. Call such a an integrating factor on for if
The case of interest is the one in which the original equation is inexact, somewhere in ; nothing in the definition requires it, and Coddington's definition (Ex. 2, p. 198) does not either.
Because and again have continuous first partial derivatives on , the criterion theorem above applies to them, so on this rectangle exactness of the multiplied equation is equivalent to a computable condition:
(This is Coddington's Ex. 3, p. 198, which writes the right-hand condition out as and refers it to his Theorem 3.) The hypothesis that the region is a rectangle is doing real work in this equivalence: on a region that is not of this kind the criterion can hold with no potential existing, as the remark above shows.
Riley, Hobson and Bence assert that the differential can always be made exact in this way, but that when depends on both variables there is no general method for finding it; it must then be found by inspection or trial (p. 473). Two cases are systematic.
- A factor of alone. Suppose is nowhere zero on , so that is defined and continuous on , and suppose is independent of . Being continuous, has an antiderivative, and — the exponential of any one of them — is an integrating factor on . (Coddington, Ex. 4(b), p. 199, whose hypothesis is exactly that the test quantity be continuous and independent of .)
- A factor of alone. Suppose is nowhere zero on , so that is defined and continuous on , and suppose is independent of . Then, for the same reason, is an integrating factor on . (Coddington, Ex. 5(b), p. 199.)
(Riley, Hobson and Bence call these two test quantities and ; they are renamed here because , and already have other meanings in the separable-equation blocks above.) Computing and is therefore also the test for whether a one-variable factor exists at all. Coddington's exercises state the converses: under the same standing hypotheses, if the equation has an integrating factor depending on alone, then above is a continuous function of alone (Ex. 4(a), p. 199), and correspondingly for (Ex. 5(a)).
Write out the exactness condition for and all the unknown-function terms collect into one: a single term on the left and a single term on the right. If is allowed to depend on both variables that leaves one partial differential equation for one unknown function, which is underdetermined — hence infinitely many integrating factors and no procedure. If is restricted to one variable, one of the two terms disappears and what is left is an ordinary separable equation for , solvable exactly when its right-hand side happens to involve that one variable only.
Throughout, , and satisfy the standing hypotheses of the statement, so that a with continuous first partials and no zero on is an integrating factor there precisely when on — the equivalence recorded in the statement, which is the criterion theorem applied to and .
Case 1: . Then , because does not depend on , while the product rule gives . So is an integrating factor exactly when
the division by being legitimate because is nowhere zero on , and the division by because is not either.
The left side of that equation depends on alone, so it can have a solution only if too is independent of — which is the hypothesis of case 1, and which also proves the converse quoted in the statement: for an integrating factor as above, equals and is therefore a continuous function of alone. Granted the hypothesis, is continuous on (, and are continuous there and ), so it has an antiderivative; is separable, with solution , that is . This is positive, hence nowhere zero, and continuously differentiable, since its logarithmic derivative is continuous — so it meets the conditions a factor must meet. Reading the display backwards, it does satisfy the criterion, hence makes the equation exact on . This is Coddington's Ex. 4 in both directions.
Case 2: . Identical with the roles of the variables exchanged, under the hypothesis that is nowhere zero on and is independent of : now and , so the criterion reads and .
- It must not vanish. Multiplying by does not change the solution set as long as , since and then have the same solutions pointwise. Where vanishes the second equation is satisfied automatically and can acquire solutions the first does not have; this is why "nowhere zero" is part of the definition.
- It is not unique. If and are both integrating factors with potentials and , then both families of level curves consist of the same solution curves, so is constant along every curve on which is: locally, each potential is a function of the other. The application below exhibits two different integrating factors for the same differential and checks that relation explicitly.
- The tests divide. The expression is undefined where , and where . A one-variable factor may exist and still be invisible to the tests on a region meeting such a curve, so apply the tests on a region where the relevant denominator keeps a fixed sign.
A linear first-order equation is one of the form
with and continuous on an interval . Fix and set
Then:
- Multiplying the equation by turns its left-hand side into the derivative of a single function: This is what calling an integrating factor means here. (Only continuity of and is assumed, so this is one step short of the statement above, whose standing hypotheses ask for and to have continuous first partials and hence for and to be ; when they are, that statement applies verbatim on any rectangle lying over , since is nowhere zero and the test quantity is , a function of alone. This includes the case , where the original equation is already exact and — an integrating factor by that definition, which does not ask the equation to be inexact.)
- The general solution on is
- Through every point of the strip , there passes exactly one solution, and that solution is defined on the whole of — not merely near .
- (Arfken, Weber and Harris, p. 337.) The general solution of the inhomogeneous equation is any one particular solution plus the general solution of the homogeneous equation ; equivalently, the solution is unique up to an arbitrary multiple of the homogeneous solution. The homogeneous equation has only one linearly independent solution.
In differential form the equation is , so and the test quantity equals — automatically a function of alone. The linear equation is thus the one case where the one-variable recipe never fails, and its integrating factor can be written down from the coefficient. After multiplying, the whole left side is the derivative of the single product , so one integration finishes the problem. Because the integrals involved exist across the entire interval of continuity, nothing stops the solution part-way: linear equations have no finite-time breakdown.
-
What the factor must satisfy. Let be differentiable and positive on . By the product rule,
while multiplying the equation by gives . The two left sides agree for every differentiable precisely when . So the search for an integrating factor is the search for a solution of that one equation; this is Arfken's route, and it bypasses the general theory above.
-
Solving for the factor. is separable, and is continuous on , so has an antiderivative there and is a solution with . Being an exponential it is positive on all of , so dividing by it later is always legal. (Any constant multiple of this serves equally well; the constant cancels in step 3, which is why the constant of integration in is conventionally dropped.)
-
One integration. With that , the equation is equivalent to on . The right side is continuous, hence integrable, and integrating from to ,
using . Writing and dividing by gives the formula in part 2. Conversely, differentiating that formula returns , so every member of the family is a solution: the family is exactly the set of solutions, which is what part 1 and part 2 assert.
-
Existence and uniqueness on the whole interval. Given with , part 3 shows that a solution with must have , one value and no other, and that this choice does produce such a solution. Its formula is defined and differentiable at every point of , because is positive and continuous there and is integrable on every subinterval. Hence exactly one solution, on all of . For a nonlinear equation neither conclusion holds in general: see Existence and uniqueness of solutions.
-
The structure statements. If and both solve the inhomogeneous equation, subtracting the two equations gives , so the difference solves the homogeneous equation; and by part 2 with the homogeneous solutions are exactly the multiples . Two of them, and , are proportional, so the homogeneous equation has a one-dimensional solution space: at most one linearly independent solution, Arfken's second theorem.
- Divide through by the coefficient of to reach , and note the interval on which and are continuous — in particular, exclude the points where the original coefficient of vanishes.
- Compute , dropping the constant of integration.
- Multiply by and recognise the left side as .
- Integrate once and divide by : . Fix from the initial condition.
Hassani states the solution formula for the unnormalised equation , requiring , and to be continuous on an open interval (his , which has nothing to do with the rectangle dimensions , used in the exactness criterion above), and obtains the general solution
This is the same result as part 2 above, with a differently scaled integrating factor: his carries an extra factor , so his plays the role of our . His theorem is stated with no separate hypothesis that is non-vanishing, although the formulas divide by ; a point where vanishes is a singular point of the equation, and there step 1 of the method above cannot be carried out. We use the normalised form throughout.
A function is homogeneous of degree if for all and all . The equation is called homogeneous when its right-hand side can be written as a quotient
in which and are homogeneous of one and the same degree . (The name clashes with "homogeneous" as applied to a linear equation with zero right-hand side; Arfken, Weber and Harris (p. 334) and Coddington (p. 191) both warn about the collision, which is standard and unavoidable. Riley, Hobson and Bence write the quotient as , with the opposite sign convention to the differential form of the definition block above, where ; the neutral letters and are used here to keep the two apart.) Riley, Hobson and Bence point out the practical test: in each term of the numerator and of the denominator, the powers of and must add up to the same number.
Why the substitution works. With and homogeneous of degree , the quotient satisfies : it is homogeneous of degree . Taking on the half-plane ,
so the right-hand side depends on and only through the ratio ; write it , reusing the letter for the one-variable function. (For take and repeat with .) Substituting , so that ,
which has separated variables.
Recipe.
- Check that every term of the numerator and of the denominator has the same total degree.
- Record the roots of : each root gives a straight-line solution through the origin, and these are the solutions the next step divides away.
- Substitute , separate as displayed, and integrate both sides.
- Replace by .
Bernoulli's equation is
The two excluded values are the ones for which it is already linear. The extra factor makes it nonlinear, but the substitution
removes the nonlinearity. Indeed , so dividing the equation by and substituting,
a linear equation in , to be solved by the method above and then inverted through .
Recipe.
- Arrange the equation in the displayed form and read off .
- Note the division by : for the function solves the original equation and is lost, and for non-integer the work is confined to , where and are defined.
- Solve the linear equation for .
- Return to and impose the initial condition.
Solve with .
Step 1: the constant solutions. The right-hand side factors as with and , so the equation is separable. The roots of are and , giving the two constant solutions and . Neither satisfies the initial condition, but they are recorded before dividing.
Step 2: separate and integrate. On the strip , where ,
so integrating both sides gives , that is
Step 3: the initial condition. Putting , gives . Hence , and solving for ,
the last step by multiplying numerator and denominator by .
Step 4: check. Differentiating, , while . They agree, and . Numerically and .
Step 5: where the lost solutions went. The solution exists for all real and satisfies as , approaching the constant solution discarded in step 2. The other discarded solution, , is the repelling one: any initial value gives, by the same formula with , a solution that blows up at a finite . The two constant solutions are therefore the organising features of the picture, which is the practical reason for step 2 of the method.
Solve with , on the half-plane .
Step 1: it is inexact. With and ,
which differ wherever , so the equation is not exact on any rectangle in . Nor is it separable, since does not factor, and it is not linear in .
Step 2: a factor of alone. Take as the region a rectangle inside , where is nowhere zero, so that the test quantity of case 1 is defined:
a constant, hence certainly a continuous function independent of . Case 1 therefore applies and
is an integrating factor on ; it is positive, hence nowhere zero, as required.
Step 3: the multiplied equation is exact. Multiplying through by ,
confirming exactness.
Step 4: the potential. Integrating the coefficient in at fixed , with ,
Differentiating in gives , which must equal ; so and is a constant, absorbed into . The solution is therefore
Step 5: the initial condition and the answer. At the left side is , so and
Check: ; and differentiating, , which is the equation. Numerically .
An independent check. The substitution turns the equation into , a linear equation whose integrating factor is the same ; since , it gives , that is , and fixes again.
Step 6: the interval. The expression under the root is positive for every and vanishes where , that is at ; so the solution exists on , with at the right end and as . At the curve has : it meets the line with a vertical tangent, which is what the differential form predicts, since at the equation reads and so forces as long as . The level curve continues smoothly into , but the solution as a function with ends at — which is also where the rectangle of step 2, which had to stay inside , runs out.
A body with a single thermal time constant exchanges heat with surroundings at temperature according to Newton's law of cooling,
Take , a daily outdoor cycle with , and an initial temperature .
Step 1: put it in linear form. , so and , both continuous on all of . Part 3 of the linear theorem therefore gives a unique solution defined for all .
Step 2: the integrating factor. , and the equation becomes .
Step 3: integrate. With (check by differentiating),
so, writing the bracket as a single cosine with a phase,
Step 4: the numbers. Here , so
giving a driven amplitude . The initial condition fixes .
Step 5: read the answer. After the transient has died away (a few multiples of h), the body oscillates about with amplitude instead of the outdoor , and its extremes lag the outdoor ones by
Checks on the formula: as imposed; , , and after two days . Since , the purely periodic part there is , and the gap between the two is — exactly the surviving transient , as it must be.
Solve with .
Step 1: degrees. Every term of the numerator and of the denominator is of total degree , so the equation is homogeneous of degree and the substitution applies on .
Step 2: the straight-line solutions. Here , and
whose numerator never vanishes. So there are no straight-line solutions to lose; the division in the next step costs nothing. (At , that is on the line , the original right-hand side is undefined.)
Step 3: separate and integrate. With ,
and integrating each side,
Step 4: the initial condition. At , we have , and both sides vanish, so .
Step 5: recognise the curve. Put and , so that and . Then and the relation becomes
a logarithmic spiral through . Check: on one has , so
as required. At the curve is at , that is , and confirms the implicit relation.
Step 6: where stops being a function of . The denominator vanishes when , that is at , where and attains its largest value on this arc. The spiral continues happily past that point, but as a solution of the equation in the form the answer ends there, with a vertical tangent — the situation anticipated in the definition block.
Solve with , and .
Step 1: identify it. Written as this is Bernoulli's equation with , and , so and the substitution is . Since , the function solves the original equation and will be lost; it is the extinct state, and the initial value is not it.
Step 2: linearise. With one has , so dividing the equation by and substituting,
which is the general Bernoulli reduction with .
Step 3: solve the linear equation. The integrating factor is , so and
Step 4: back to , with the initial condition. gives , so
Step 5: check the numbers. Substituting back into gives zero identically. The values are , , and ; the population passes half the carrying capacity at yr, and as — approaching the other constant solution, , which separation would have discarded at the same point in the argument. Note that the equation is separable too; the Bernoulli route is preferable here because it replaces a partial-fraction integration by a linear equation that can be solved in one line.
The clearest physical appearance of these methods is not as a way of solving an equation but as a way of recognising a state function. For a simple compressible system the first law says that the heat absorbed along a path is
where is the internal energy (written in most thermodynamics texts, and renamed here because already denotes the potential of an exact differential). The central fact of thermodynamics is that is not the differential of any function of state: heat absorbed depends on the path, not only on its endpoints. In the language above, is an inexact differential, and the content of the second law is that a particular integrating factor makes it exact.
The ideal gas, explicitly. Take a fixed amount of ideal gas, moles, with constant heat capacity , so that and , and use as the two state variables. Then
so in the notation of this unit and with , . The exactness test fails:
So no function of the state has as its differential, which is the precise sense in which "the heat content of a state" does not exist.
Both one-variable tests succeed. This differential is unusual in that the two tests of the integrating-factor statement both apply. With and ,
the first a function of alone and the second a function of alone. Case 1 therefore gives and case 2 gives . The two factors compute two different things, and both are physically familiar.
First integrating factor: . Multiplying by gives , and now
so the multiplied differential is exact, with potential
the entropy of the ideal gas, up to the additive constant that no potential of a differential ever fixes; we set that constant to zero, which is the choice used below. One checks directly that and .
Second integrating factor: , and what it computes. Following case 2 with the just computed,
using and , so that . Multiplying by it gives , whose two mixed derivatives are both , and whose potential is
The level curves are : the adiabats of the ideal gas. This is exactly what the theory predicts, in two ways. First, is a first-order equation in the differential form , and once an integrating factor is found, its potential is constant along the solution curves — so an adiabatic process is a solution curve of , and is the quantity conserved along it. Second, the remark on non-uniqueness above says that two potentials of the same differential must be functions of one another, and indeed
with normalised as above; a different additive constant in only replaces this by . Either way is a function of alone, as it must be: the adiabats are the curves of constant entropy.
What the mathematics does and does not deliver. Riley, Hobson and Bence's assertion that an inexact differential in two variables can always be made exact (p. 473) is what makes a function like available at all for a system with two independent state variables; it says nothing about which factor to choose, and here it offers two with equal ease. The physical content of the second law is that one of them, with the absolute temperature, works simultaneously for every system and for systems with more state variables than two, where the mere existence of an integrating factor is no longer automatic. The first-order theory supplies the framework and the bookkeeping; the universality of is physics.
A second, more mundane use of the same machinery is the driven relaxation of the third example: Newton's law of cooling, an or circuit, a first-order sensor, and the linearised response of any system with a single relaxation time all have the form , where is the input — the ambient temperature, the applied voltage, the true gas temperature. In the notation of the linear-equation statement above this is and , the whole right-hand side. The integrating factor turns it into one integral, and the answer always has the same two parts — a transient that remembers the initial condition, and a driven response that does not. For sinusoidal forcing at angular frequency the driven part has its amplitude reduced by the factor and is delayed by : a first-order low-pass filter. For a thermocouple with reading a gas temperature that oscillates at , , so the recorded swing is only of the true swing and arrives late out of a period. Reading those two numbers backwards is how such an instrument is calibrated.