A differential equation specifies how a state changes rather than giving the state directly. A first-order ordinary differential equation connects an unknown function to its first derivative with respect to one independent variable. Solving means finding a function, an interval, and any constants that make the relationship true. Classification reveals which exact method may work, while qualitative reasoning predicts behavior before calculation. This lesson develops a repeatable workflow that keeps equilibria, domains, units, and initial data visible throughout the algebra.
Identify the unknown state and independent variable
Write the unknown function explicitly before manipulating the equation. In , the state is . The independent variable is . The prime means . The function supplies the rate at each allowed pair .
The adjective first-order means no derivative higher than appears. The adjective ordinary means there is one independent variable. The equation can still be nonlinear in . For example, is first-order and nonlinear. Classification terms describe different structural features.
Attach units at this stage. If is seconds and is metres, then has units . Every term in must have those same rate units. A unit mismatch reveals a model error before integration begins. Parameters often carry the factors needed to restore dimensional consistency.
Distinguish a differential law from its solutions
The equation is a rule for slope. Integrating gives family . The constant can take many values. Each value shifts the curve vertically while preserving the derivative. The differential law therefore defines a family rather than one trajectory.
An initial condition such as selects a member. Substitution gives , so . The resulting initial-value solution is . Both equation and initial condition must be checked. Satisfying one without the other is incomplete.
A solution also has a domain interval. Formula solves only where its denominator is nonzero. A singular time divides possible intervals. An initial condition selects the relevant interval containing its initial point. Ignoring that interval can turn a local solution into a false global claim.
Classify before selecting an exact method
Begin by asking whether the equation is autonomous. An autonomous equation has form with no explicit independent variable. Then ask whether it is separable as . Finally, check whether it is linear in form . More than one answer can be yes.
Equation is autonomous because the right side depends only on . It is separable because away from equilibrium. It is also linear because . Multiple methods can solve it. Their agreement creates a useful check.
Equation is neither autonomous nor separable in the elementary product sense. It is nonlinear because of . The methods developed here do not provide a general elementary solution. A slope field or numerical solver may still produce insight. Classification prevents forcing an inapplicable technique.
Find equilibrium solutions before dividing
For autonomous equation , an equilibrium is a constant solution satisfying . The star labels a special constant value. Its derivative is zero. Substituting the constant into the original equation verifies it. Equilibria organize nearby behavior.
Separation often divides by a factor containing . If that factor is zero at an equilibrium, division excludes the constant solution. Therefore solve before rearranging . Record each constant solution separately. Then solve the non-equilibrium branches under the assumption .
For , equilibria are and . Dividing by is legal only away from those values. The separated family may approach either equilibrium without including the constant curves automatically. Adding the equilibrium solutions completes the solution set. This habit prevents a subtle loss caused by otherwise valid algebra.
Separate variables as a structured transformation
A separable equation can be written . For non-equilibrium branches with , rearrange to . The notation groups all state dependence with and all independent-variable dependence with . Integration follows on both sides. The manipulation is justified through the chain rule and antiderivatives.
Write the integrated form . One combined constant is enough because two arbitrary additive constants can be subtracted into one. Evaluate both antiderivatives carefully. Then solve explicitly for when possible. An implicit relation can still be a valid solution.
Every transformation has conditions. Division requires nonzero . Logarithmic antiderivatives create absolute values. Exponentiation may introduce a nonzero multiplicative constant and branch constraints. Verification against the original equation checks the result more reliably than trusting a familiar pattern.
Solve a basic exponential equation
Consider , where is constant. The equilibrium should be recorded first. For , separation gives . Integration yields . The natural logarithm appears because its derivative is .
Exponentiation gives . Absorb the positive factor and possible sign into one constant . The solution family becomes . Allowing includes the equilibrium. This final parameterization is simpler than carrying an absolute value.
If , then . The initial-value solution is . Parameter has units inverse time so exponent is dimensionless. Positive produces growth, while negative produces decay. Substitution gives , confirming the differential equation.
Solve a separable equation with time dependence
Consider . The equilibrium is visible from the right side. For nonzero solutions, write . Integration gives . Exponentiating produces .
The exponent must be dimensionless in an applied model. If has seconds, the numerical coefficient three cannot be unitless. It must supply units in the original rate coefficient . Then is dimensionless. Unit analysis clarifies what an abbreviated textbook number suppresses.
Differentiate the solution to verify it. The chain rule gives . This equals . Setting returns the equilibrium. The verification checks the exponent factor and the previously separated family simultaneously.
Use partial fractions for logistic growth
The logistic equation is . Population and carrying capacity share the same units. Therefore is dimensionless. Parameter has units inverse time. Equilibria occur at and .
For other solutions, separate as . Partial fractions decompose the state side. Integration produces logarithms of and on an interval where their signs are controlled. Algebra then yields . The constant is determined by initial population.
For with , substitution gives . This constant is positive. As , for positive , so . The explicit solution agrees with the phase-line prediction. The model assumes constant carrying capacity and a growth rate depending only on current population.
Write a linear equation in standard form
A first-order linear equation has standard form . The coefficient of must be one. If an equation begins as , divide by where . That division may restrict the interval. Record any excluded points.
Linearity means and appear only to the first power and are not multiplied together. Coefficients may depend on . Equation is linear. Equation is not. Equation is not linear in standard form.
The function is often called forcing. When , the equation is homogeneous in the first-order linear sense. The term does not mean the same thing as a homogeneous function in every area of mathematics. Context determines vocabulary. Standard form makes the coefficient and forcing roles explicit.
Derive the integrating factor
Start with . Seek a nonzero function that makes the left side a product derivative. Multiplying gives . The product rule says . Therefore require .
Solving gives . A multiplicative constant in is unnecessary because it cancels later. With this choice, the equation becomes . Integrate once to obtain . Divide by to find .
The method is an engineered product rule. It is not an unexplained formula. Checking validates the factor. Checking the expanded product derivative validates the transformed equation. These small checks prevent a sign error from propagating through the solution.
Solve a linear initial-value problem
Solve with . The equation is already in standard form with and . The integrating factor is . Multiplication gives . The left side is .
Integrating gives . Division yields . The initial condition gives , so . Therefore . This solution approaches equilibrium two from below.
Verification gives . Then . Also, . Both equation and data hold. Long-term behavior agrees with the sign rule .
Model Newton cooling as linear and separable
Newton’s cooling law is for positive . The environmental temperature is constant in the simplest model. The equation is autonomous and separable. Expanding gives , so it is also linear. Multiple structures provide multiple solution routes.
Let . Then because the environment is constant. The equation becomes . Thus . Returning to temperature gives .
Temperature difference and temperature share degree units, while has units inverse time. The exponential argument is dimensionless. If , the difference decays from positive values. If , it approaches zero from negative values. The environment is an attracting equilibrium under the model.
Analyze autonomous stability with a phase line
For , place equilibria where on a vertical or horizontal phase line. Determine the sign of between equilibria. Positive sign means increases with time. Negative sign means it decreases. Arrows summarize those directions.
For , signs are negative below zero, positive between zero and two, and negative above two. Arrows point away from zero on both sides. Thus zero is repelling. Arrows point toward two on both sides. Thus two is attracting.
Stability conclusions do not require an explicit formula. They also help validate one. A proposed solution starting between zero and two should increase without crossing the attracting equilibrium under uniqueness conditions. A numerical trajectory that leaves this band may reflect excessive step size. Qualitative structure supplies a strong diagnostic.
Apply existence and uniqueness correctly
For initial-value problem and , continuity of near the initial point supports local existence. Continuity of partial derivative near the point is a common sufficient condition for local uniqueness. The notation means the rate at which changes with its state argument while is held fixed. These conditions are sufficient rather than necessary. They provide a dependable test, but failing the test does not by itself prove that a solution is absent or nonunique.
Uniqueness explains why two solution curves cannot cross at an ordinary point in the region. A crossing would give one initial condition two distinct solutions. The conclusion is local and depends on the theorem’s conditions. Singularities or nonsmooth rate laws can permit nonunique behavior. A slope field alone does not prove the theorem.
Existence also does not guarantee a solution for all time. A solution can blow up at finite time or reach a domain boundary. Equation has solution on intervals excluding . The local theorem remains compatible with finite-time singularity. Always state the solution interval.
Preserve units throughout a model
In , the units of are reciprocal units of the independent variable. If time uses seconds, uses . Then has units of per second. The product is dimensionless. Exponential functions require dimensionless arguments.
In logistic growth, has inverse-time units and has population units. The factor is dimensionless. In cooling, has inverse-time units and temperature difference has temperature units. Every right-side term matches the derivative units. These checks reveal whether parameters have been interpreted correctly.
Integration constants also have units. In , has the same units as . In , taking a logarithm of a dimensional quantity is shorthand that should really use a reference scale. The final ratio or exponential form resolves that issue. Careful modeling keeps the dimensionless structure explicit.
Verify solutions in four stages
First differentiate the proposed function. Second substitute the function and derivative into the original equation. Third check the initial condition. Fourth state a valid interval. Each stage catches a different failure.
Do not verify only the rearranged equation. Separation may have divided by a zero factor. Logarithm and exponentiation may alter domain descriptions. Solving for a square root may choose a branch. Return to the original differential law.
Also compare qualitative behavior. Check signs near equilibria. Check long-term limits. Check units. Agreement among algebra, data, domain, and behavior makes the solution credible.
Diagnose recurring method errors
One error is attempting separation when the right side is a sum that cannot be factored into . Another is dividing away equilibrium solutions. A third is applying an integrating factor before standardizing the coefficient of . A fourth is forgetting the integration constant. Classification and a written workflow prevent these errors.
Absolute values are often dropped too early after integrating . Exponentiation should absorb sign into a constant only after branches are understood. Initial data then determine the constant. Domain restrictions remain. Symbolic neatness should not erase logical conditions.
Another error is treating model parameters as unitless. A number such as must often be . Writing units clarifies time scale. It also keeps exponents dimensionless. A correct-looking formula with a dimensional exponent is physically incomplete.
Practice a complete workflow
For , identify the equilibrium before separating. Solve the nonzero family. Include the equilibrium through the final constant. Differentiate and substitute. State the units needed for the coefficient when carries time units.
For , identify linear standard form. Construct the integrating factor and verify its derivative. Solve for the general family. Apply a chosen initial condition. Use the autonomous sign pattern to predict the limiting value.
For , find equilibria and create a phase line. Classify stability. Separate non-equilibrium branches if an explicit formula is requested. Preserve the two constant solutions. Compare the explicit behavior with the arrows.
Connect forward to slope fields and numerical methods
Exact methods apply to important structural families but not every first-order equation. Slope fields display geometrically. Euler’s method turns the local slope into small numerical steps. Higher-order solvers sample slope more intelligently. Classification still informs expected behavior.
Equilibria and uniqueness guide numerical validation. Units guide step-size interpretation. Exact solutions provide benchmark problems for testing algorithms. Domain singularities warn where step control matters. The habits developed here carry directly into computation.
You are ready to continue when you can classify an equation, preserve equilibria, execute separation or an integrating factor, and verify the result in the original problem. You should attach units and state intervals. You should also predict stability before solving. These skills turn first-order methods into a coherent workflow. Slope fields and Euler’s method can then extend the analysis beyond convenient exact forms.