4.10

First-order differential equations

Linear first-order equations: the integrating factor 4.10

First order: the integrating factor (Differential equations)
Definitions
  • Linear first-order equation: one that can be written .
  • Integrating factor: , chosen so that .
  • General solution: the family of all solutions, containing an arbitrary constant. A particular solution is the member fixed by a boundary condition.
Key results
  • Multiplying by gives , so .
  • This works because I'=PI, so the product rule gives (Iy)'=Iy'+PIy exactly.
Method
  1. Divide through so the coefficient of is 1, and read off .
  2. Find and simplify it: , .
  3. Write , integrate, and include the constant before dividing by .
  4. Apply the boundary condition last, to the whole solution.

In practiceSolve for , given when .

  1. divide by , so
  2. add the constant before dividing
  3. check: xy'+2y=x^2
Notes
  • No constant is needed in : it would only multiply by a constant that cancels.
  • The constant of integration must be added before dividing by . Writing and adding at the end loses the term , which is the whole family of curves on the sheet.
  • If the equation is also separable, either method works. If it is neither, the question will give a substitution that turns it into one of the two.

Choosing a method and using substitutions 4.10

Key results
  • Separable: gives .
  • Linear: , solved with an integrating factor.
  • A given substitution, such as or , changes the dependent variable so that the new equation is separable or linear.
Method
  1. For a substitution : differentiate with the product rule, , then replace both and so that only and remain.
  2. Solve for , then substitute back to give in terms of .

In practiceUse to solve for .

  1. product rule
  2. replace and
  3. now separable
  4. substitute back
Notes
  • When separating, dividing by can lose a constant solution with . Check whether it is needed.
  • Always state the final answer in the requested form: explicit if asked for, not an implicit relation.

Worked examples

Worked example

Solve:

for , given that when .

Show worked solution

Divide by :

so:

and .

Then:

so:

At :

Hence:

Worked example

Solve:

given that when .

Show worked solution

, so:

and:

giving:

From ,

4.10

Second-order linear differential equations

Homogeneous second-order equations 4.10

Second order: three kinds of solution (Differential equations)
Definitions
  • Homogeneous: , with constants , , .
  • Auxiliary equation: , found by trying .
Key results
  • Distinct real roots , : .
  • Repeated root : .
  • Complex roots : .
  • Purely imaginary roots : , the special case .
Method
  1. Write down the auxiliary equation and compute to identify the case.
  2. Write the general solution with two arbitrary constants.
  3. Use two conditions, usually and at , to find and .

In practiceSolve y''+4y'+13y=0 with and y'(0)=0.

  1. : complex roots
  2. \displaystyle y'(0)=-2A+3B=0\implies B=\tfrac43differentiate with the product rule, then put
Notes
  • A second-order equation needs exactly two arbitrary constants. A repeated-root answer alone is incomplete.
  • The complex case follows from ; real combinations of the two give the cosine and sine terms.
  • In the sheet's example the sign of decides the behaviour: oscillates, is critical, creeps back.

Non-homogeneous equations: complementary function and particular integral 4.10

Definitions
  • Complementary function (CF): the general solution of the related homogeneous equation.
  • Particular integral (PI): any one solution of the full equation ay''+by'+cy=f(x).
Key results
  • General solution = CF + PI. The CF carries both arbitrary constants; the PI has none.
  • Standard trial functions: for a polynomial of degree , a general polynomial of degree ; for , ; for or , .
Method
  1. Find the CF first, because it decides the trial function.
  2. If the trial function, or part of it, already appears in the CF, multiply it by . If that also appears (a repeated root), multiply by .
  3. Substitute the trial function into the full equation and compare coefficients.
  4. Add CF and PI, then apply the initial conditions to the complete solution.

In practiceFind the general solution of y''-3y'+2y=4e^{2x}.

  1. CF first
  2. is already in the CF, so multiply by
  3. \displaystyle y'=\lambda e^{2x}(1+2x),\qquad y''=\lambda e^{2x}(4+4x)
  4. the terms cancel, as they must
  5. CF + PI
Notes
  • Applying initial conditions to the CF before adding the PI is a common and costly error.
  • For a trigonometric include both and in the trial, even if has only one. The y' term mixes them.

Worked examples

Worked example

Find the general solution of:

Show worked solution

CF: gives , so:

PI: try ; then:

so and , .

General solution:

Worked example

Find the general solution of:

Show worked solution

CF:

so:

The trial is in the CF, so try :

y'=\lambda e^{2x}(1+2x)
y''=\lambda e^{2x}(4+4x)

Substituting,

so .

General solution:

4.10

Simple harmonic motion and damping

Simple harmonic motion 4.10

Simple harmonic motion (Differential equations)
Definitions
  • Simple harmonic motion (SHM): motion in which the acceleration is proportional to the displacement from a fixed point and directed towards it, .
Key results
  • General solution: , equivalently with amplitude .
  • Period , independent of the amplitude.
  • Speed: , so the maximum speed is at .
  • Maximum acceleration , at .
Method
  1. Show a motion is SHM by deriving an equation of the form from Newton's second law, measuring from the equilibrium position.
  2. Use for speed questions and the explicit solution for timing questions.

In practiceA particle of mass kg on a spring of stiffness N m is released from rest m from equilibrium. Find the period and the greatest speed.

  1. Newton's second law, measured from equilibrium
  2. the form : SHM
  3. at the equilibrium position
Notes
  • follows from writing and integrating, a useful derivation to know.
  • Set the calculator to radians for any question involving .

Damped and forced oscillations 4.10

Forced oscillations (Differential equations)
Definitions
  • Damping: a resistance proportional to velocity, giving with .
  • Forcing: an external driving term on the right, .
Key results
  • Heavy damping (): distinct real negative roots; no oscillation.
  • Critical damping (): a repeated root; the fastest return without overshoot.
  • Light damping (): complex roots; oscillation inside a decaying exponential envelope.
  • With damping, the CF decays to zero, so in the long term the motion is the PI: the steady state.
Method
  1. Form the equation from Newton's second law, with resistance and restoring forces opposite to velocity and displacement.
  2. Divide by the mass, classify with the discriminant, then solve as for any second-order equation.

In practiceClassify the motion when , and .

  1. auxiliary equation
  2. heavy damping:
  3. critical damping:
  4. light damping:
Notes
  • With and every CF term decays, whichever case applies; a growing solution signals a sign error in the model.
  • When asked about long-term behaviour, say which terms vanish and why, then describe the PI.
  • Resonance: with no damping, forcing at the natural frequency, , makes the usual trial fail because it is already in the CF. The trial gives the PI : an oscillation whose amplitude grows without bound.

Worked examples

Worked example

A system satisfies:

starting at rest with .

Find in terms of and describe the long-term motion.

Show worked solution

CF: gives , so:

PI: .

So:

gives .

gives:

Hence:

As , , so the oscillation dies away and , as on the sheet.

Worked example

A particle moves with SHM of amplitude 0.5 m and period s.

Find its greatest speed and its speed when 0.3 m from the centre.

Show worked solution

Greatest speed:

At :

so .

4.10

Systems of first-order equations

Coupled first-order systems 4.10

Definitions
  • Coupled system: two first-order equations in which the rate of change of each variable depends on both, such as , .
Method
  1. Rearrange one equation for the variable to be eliminated, here .
  2. Differentiate the first equation: from , .
  3. Substitute for and then to obtain a second-order equation in alone, and solve it.
  4. Find from the rearranged equation, not by solving a second differential equation, so no extra constants appear.

In practiceSolve , .

  1. rearrange the first equation
  2. differentiate, then substitute
  3. no new constants; check:
Notes
  • Coupled systems model predator and prey, competing species, mixing tanks and connected circuits.
  • The final answer has exactly two arbitrary constants, shared between and .

Worked example

Worked example

Solve , , given that and when .

Show worked solution

From the first equation .

Differentiating it:

so:

and:

Then:

From : and:

so , .

Hence , .