1. Home
  2. Explore
  3. Mathematics
  4. Ordinary Differential Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Ordinary Differential Equations

Ordinary Differential Equations

1. Meaning of a Differential Equation

A differential equation is an equation involving:

  • An unknown function, such as f(x)f(x)f(x)

  • One or more derivatives of that function, such as f′(x)f'(x)f′(x), f′′(x)f''(x)f′′(x), and higher derivatives

  • Other known functions of the independent variable, such as p(x)p(x)p(x), q(x)q(x)q(x), or sin⁡x\sin xsinx

A differential equation must be satisfied for all applicable values of the independent variable, except possibly values where the equation is undefined.

For example,

f′(x)=4f'(x)=4f′(x)=4

is a differential equation because it contains the first derivative of the unknown function f(x)f(x)f(x).

Another example is

f′(x)+f(x)=2.f'(x)+f(x)=2.f′(x)+f(x)=2.

This is also a differential equation because it contains both the function and its first derivative.


2. Order of a Differential Equation

The order of a differential equation is determined by the highest derivative appearing in the equation.

First-order differential equation

A differential equation is first order if the highest derivative is the first derivative.

Examples:

f′(x)=4f'(x)=4f′(x)=4

and

f′(x)+f(x)=2.f'(x)+f(x)=2.f′(x)+f(x)=2.

The derivative f′(x)f'(x)f′(x) is the highest derivative in each equation, so both are first-order differential equations.

Second-order differential equation

A differential equation is second order if the highest derivative is the second derivative.

For example,

f′′(x)+f′(x)+f(x)+sin⁡x=0f''(x)+f'(x)+f(x)+\sin x=0f′′(x)+f′(x)+f(x)+sinx=0

is a second-order differential equation because f′′(x)f''(x)f′′(x) is the highest derivative present.

The order is not determined by the arrangement or sequence of terms. It is determined only by the highest derivative.

The order of a differential equation is the order of its highest derivative.


3. Ordinary Differential Equations

An ordinary differential equation, or ODE, is a differential equation involving derivatives with respect to only one independent variable.

For example:

  • f′(x)f'(x)f′(x) and f′′(x)f''(x)f′′(x) involve derivatives with respect to xxx

  • v′(t)v'(t)v′(t) and v′′(t)v''(t)v′′(t) involve derivatives with respect to time ttt

The course focuses mainly on:

  1. First-order linear ordinary differential equations

  2. Second-order homogeneous linear ordinary differential equations with constant coefficients

Higher-order differential equations are also important, but they are studied in later courses.


Applications of Differential Equations

Differential equations are used to model relationships between physical quantities and their rates of change. They appear in mechanics, electrical circuits, control systems, and many other areas of engineering.


4. Falling Object with Air Resistance

Consider an object falling downward under the influence of gravity and air resistance.

Let:

  • x(t)x(t)x(t) be the position of the object at time ttt

  • v(t)v(t)v(t)) be its velocity at time ttt

  • mmm be its mass

  • ggg be the acceleration due to gravity

  • kkk be the air-resistance constant

The relationships between position, velocity, and acceleration are

v(t)=dxdt=x′(t)v(t)=\frac{dx}{dt}=x'(t)v(t)=dtdx​=x′(t)

and

a(t)=dvdt=v′(t).a(t)=\frac{dv}{dt}=v'(t).a(t)=dtdv​=v′(t).

The air resistance is assumed to be proportional to velocity. Its magnitude is therefore

kv(t).kv(t).kv(t).

4.1 Object moving downward

When the object moves downward:

  • The gravitational force mgmgmg acts downward

  • The air-resistance force kv(t)kv(t)kv(t) acts upward, opposite to the direction of motion

Taking downward as the positive direction, Newton’s second law gives

mv′(t)=mg−kv(t).m v'(t)=mg-kv(t).mv′(t)=mg−kv(t).

Dividing through by mmm and rearranging:

v′(t)+kmv(t)=g.v'(t)+\frac{k}{m}v(t)=g.v′(t)+mk​v(t)=g.

This is a first-order linear ordinary differential equation for the velocity v(t)v(t)v(t).

If the object is initially at rest, then the initial condition is

v(0)=0.v(0)=0.v(0)=0.

An initial condition describes the value of the unknown function before the process begins.

4.2 Object moving upward

If the object is thrown upward, both gravity and air resistance act downward. Since both forces oppose the upward motion, the equation changes according to the chosen sign convention.

The important modeling principle is:

  • A force acting in the direction chosen as positive is given a positive sign

  • A force acting opposite to the positive direction is given a negative sign

The differential equation must therefore be constructed by carefully considering the directions of all forces.


5. RC Circuit with a Constant Voltage Source

Consider a series circuit containing:

  • A resistor with resistance RRR

  • A capacitor with capacitance CCC

  • A constant voltage source of 555 volts

  • A current i(t)i(t)i(t) flowing through the circuit

Kirchhoff’s voltage law states that the total applied voltage equals the sum of the voltage drops across the resistor and capacitor:

vR(t)+vC(t)=5.v_R(t)+v_C(t)=5.vR​(t)+vC​(t)=5.

The voltage across the resistor is

vR(t)=Ri(t).v_R(t)=Ri(t).vR​(t)=Ri(t).

For the capacitor, the current-voltage relationship is

i(t)=CdvCdt,i(t)=C\frac{dv_C}{dt},i(t)=CdtdvC​​,

so

vC′(t)=1Ci(t).v_C'(t)=\frac{1}{C}i(t).vC′​(t)=C1​i(t).

Differentiate Kirchhoff’s voltage equation with respect to time:

vR′(t)+vC′(t)=0.v_R'(t)+v_C'(t)=0.vR′​(t)+vC′​(t)=0.

Using the component relationships:

Ri′(t)+1Ci(t)=0.R i'(t)+\frac{1}{C}i(t)=0.Ri′(t)+C1​i(t)=0.

Dividing by RRR gives

i′(t)+1RCi(t)=0.i'(t)+\frac{1}{RC}i(t)=0.i′(t)+RC1​i(t)=0.

This is a first-order linear ordinary differential equation for the circuit current.

Initial current

Immediately after the circuit is switched on, the capacitor initially behaves as though it has zero voltage across it. Therefore, the initial current flows through the resistor, giving

i(0)=5R.i(0)=\frac{5}{R}.i(0)=R5​.

The solution of the differential equation gives the current as a function of time.


First-Order Linear Ordinary Differential Equations

6. General Form

The standard form of a first-order linear ODE is

f′(x)+p(x)f(x)=q(x),f'(x)+p(x)f(x)=q(x),f′(x)+p(x)f(x)=q(x),

where:

  • f(x)f(x)f(x) is the unknown function

  • p(x)p(x)p(x) is a known function

  • q(x)q(x)q(x) is a known function

  • f′(x)f'(x)f′(x) is the first derivative of the unknown function

The equation is linear because:

  • f(x)f(x)f(x) appears only to the first power

  • f′(x)f'(x)f′(x) appears only to the first power

  • The unknown function and its derivative are not multiplied together

For example,

v′(t)+kmv(t)=gv'(t)+\frac{k}{m}v(t)=gv′(t)+mk​v(t)=g

has

p(t)=km,q(t)=g.p(t)=\frac{k}{m}, \qquad q(t)=g.p(t)=mk​,q(t)=g.

Similarly,

i′(t)+1RCi(t)=0i'(t)+\frac{1}{RC}i(t)=0i′(t)+RC1​i(t)=0

has

p(t)=1RC,q(t)=0.p(t)=\frac{1}{RC}, \qquad q(t)=0.p(t)=RC1​,q(t)=0.

7. Linear and Nonlinear Differential Equations

A first-order equation is linear when the unknown function and its derivatives occur with power 111 only.

Linear examples

f′(x)+p(x)f(x)=q(x)f'(x)+p(x)f(x)=q(x)f′(x)+p(x)f(x)=q(x)
f′(t)+1RCf(t)=0f'(t)+\frac{1}{RC}f(t)=0f′(t)+RC1​f(t)=0

Nonlinear examples

The following equations are nonlinear:

f′(x)+[f(x)]2=q(x)f'(x)+[f(x)]^2=q(x)f′(x)+[f(x)]2=q(x)
[f′(x)]2+f(x)=0[f'(x)]^2+f(x)=0[f′(x)]2+f(x)=0
f(x)f′(x)=q(x).f(x)f'(x)=q(x).f(x)f′(x)=q(x).

They are nonlinear because the unknown function or its derivative is squared, raised to another power, or multiplied by another occurrence of the unknown function.

A first-order ODE is linear only when the unknown function and its derivatives appear to the first power and are not multiplied by one another.


Solving First-Order Linear ODEs

8. Case 1: The Coefficient p(x)p(x)p(x) Is Zero

If p(x)=0p(x)=0p(x)=0, the general equation becomes

f′(x)=q(x).f'(x)=q(x).f′(x)=q(x).

The solution is obtained by integrating both sides:

f(x)=∫q(x) dx+C,f(x)=\int q(x)\,dx+C,f(x)=∫q(x)dx+C,

where CCC is an arbitrary constant.

The constant appears because differentiation removes constant terms.

Example

Suppose

f′(t)=sin⁡(ω0t).f'(t)=\sin(\omega_0 t).f′(t)=sin(ω0​t).

Integrating:

f(t)=∫sin⁡(ω0t) dt.f(t)=\int \sin(\omega_0 t)\,dt.f(t)=∫sin(ω0​t)dt.

Therefore,

f(t)=−1ω0cos⁡(ω0t)+C.f(t)=-\frac{1}{\omega_0}\cos(\omega_0 t)+C.f(t)=−ω0​1​cos(ω0​t)+C.

An initial condition is used to determine CCC and obtain a unique solution.

For example, if f(0)f(0)f(0) is known, substituting t=0t=0t=0 into the general solution gives an equation for CCC.


9. Case 2: p(x)p(x)p(x) Is a Constant

Suppose p(x)=pp(x)=pp(x)=p, where ppp is a constant. The equation becomes

f′(x)+pf(x)=q(x).f'(x)+pf(x)=q(x).f′(x)+pf(x)=q(x).

The goal is to convert the left-hand side into the derivative of a product.

9.1 Multiplication by an exponential factor

Multiply the entire equation by

epx.e^{px}.epx.

This gives

epxf′(x)+pepxf(x)=epxq(x).e^{px}f'(x)+pe^{px}f(x)=e^{px}q(x).epxf′(x)+pepxf(x)=epxq(x).

The left side is the derivative of the product epxf(x)e^{px}f(x)epxf(x) because of the product rule:

ddx(epxf(x))=epxf′(x)+pepxf(x).\frac{d}{dx}\left(e^{px}f(x)\right) = e^{px}f'(x)+pe^{px}f(x).dxd​(epxf(x))=epxf′(x)+pepxf(x).

Thus,

ddx(epxf(x))=epxq(x).\frac{d}{dx}\left(e^{px}f(x)\right)=e^{px}q(x).dxd​(epxf(x))=epxq(x).

Integrating both sides:

epxf(x)=∫epxq(x) dx+C.e^{px}f(x)=\int e^{px}q(x)\,dx+C.epxf(x)=∫epxq(x)dx+C.

Finally, divide by epxe^{px}epx:

f(x)=e−px[∫epxq(x) dx+C].f(x)=e^{-px}\left[\int e^{px}q(x)\,dx+C\right].f(x)=e−px[∫epxq(x)dx+C].

Equivalently,

f(x)=e−px∫epxq(x) dx+Ce−px.f(x)=e^{-px}\int e^{px}q(x)\,dx+Ce^{-px}.f(x)=e−px∫epxq(x)dx+Ce−px.

The exponential factor epxe^{px}epx is called the integrating factor for this constant-coefficient case.

General integrating factor

For the more general equation

f′(x)+p(x)f(x)=q(x),f'(x)+p(x)f(x)=q(x),f′(x)+p(x)f(x)=q(x),

the integrating factor is

μ(x)=e∫p(x) dx.\mu(x)=e^{\int p(x)\,dx}.μ(x)=e∫p(x)dx.

The constant-coefficient formula is obtained when p(x)=pp(x)=pp(x)=p is constant.


Example: Falling Object with Air Resistance

10. Solving the Velocity Equation

The equation for a falling object is

v′(t)+kmv(t)=g,v'(t)+\frac{k}{m}v(t)=g,v′(t)+mk​v(t)=g,

with initial condition

v(0)=0.v(0)=0.v(0)=0.

Compare this equation with

f′(x)+pf(x)=q(x).f'(x)+pf(x)=q(x).f′(x)+pf(x)=q(x).

Here,

p=km,q(t)=g.p=\frac{k}{m}, \qquad q(t)=g.p=mk​,q(t)=g.

The integrating factor is

ekmt.e^{\frac{k}{m}t}.emk​t.

Multiplying the equation by this factor:

ekmtv′(t)+kmekmtv(t)=gekmt.e^{\frac{k}{m}t}v'(t) + \frac{k}{m}e^{\frac{k}{m}t}v(t) = g e^{\frac{k}{m}t}.emk​tv′(t)+mk​emk​tv(t)=gemk​t.

The left side becomes

ddt(ekmtv(t)).\frac{d}{dt} \left( e^{\frac{k}{m}t}v(t) \right).dtd​(emk​tv(t)).

Therefore,

ddt(ekmtv(t))=gekmt.\frac{d}{dt} \left( e^{\frac{k}{m}t}v(t) \right) = g e^{\frac{k}{m}t}.dtd​(emk​tv(t))=gemk​t.

Integrating:

ekmtv(t)=mgkekmt+C.e^{\frac{k}{m}t}v(t) = \frac{mg}{k}e^{\frac{k}{m}t}+C.emk​tv(t)=kmg​emk​t+C.

Multiplying by e−kmte^{-\frac{k}{m}t}e−mk​t:

v(t)=mgk+Ce−kmt.v(t)=\frac{mg}{k}+Ce^{-\frac{k}{m}t}.v(t)=kmg​+Ce−mk​t.

Use the initial condition v(0)=0v(0)=0v(0)=0:

0=mgk+C.0=\frac{mg}{k}+C.0=kmg​+C.

Thus,

C=−mgk.C=-\frac{mg}{k}.C=−kmg​.

The velocity is therefore

v(t)=mgk(1−e−kmt).\boxed{ v(t)=\frac{mg}{k} \left( 1-e^{-\frac{k}{m}t} \right) }.v(t)=kmg​(1−e−mk​t)​.

11. Interpretation of the Falling-Object Solution

The solution

v(t)=mgk(1−e−kmt)v(t)=\frac{mg}{k} \left( 1-e^{-\frac{k}{m}t} \right)v(t)=kmg​(1−e−mk​t)

describes the following behavior:

  • At t=0t=0t=0, the object is initially at rest:

    v(0)=0.v(0)=0.v(0)=0.
  • As time increases, the velocity increases.

  • The velocity does not increase without limit.

  • Since

    e−kmt→0ast→∞,e^{-\frac{k}{m}t}\to 0 \quad\text{as}\quad t\to\infty,e−mk​t→0ast→∞,

    the velocity approaches

    lim⁡t→∞v(t)=mgk.\lim_{t\to\infty}v(t)=\frac{mg}{k}.limt→∞​v(t)=kmg​.

The limiting velocity

vterminal=mgkv_{\text{terminal}}=\frac{mg}{k}vterminal​=kmg​

is called the terminal velocity.

At terminal velocity, the gravitational force and air resistance balance:

mg−kvterminal=0.mg-kv_{\text{terminal}}=0.mg−kvterminal​=0.

Time constant

The quantity

τ=mk\tau=\frac{m}{k}τ=km​

is the time constant of the system.

At one time constant, t=mkt=\frac{m}{k}t=km​:

v(mk)=mgk(1−e−1)≈0.63mgk.v\left(\frac{m}{k}\right) = \frac{mg}{k}(1-e^{-1}) \approx 0.63\frac{mg}{k}.v(km​)=kmg​(1−e−1)≈0.63kmg​.

Thus, after one time constant, the velocity reaches approximately 63%63\%63% of its terminal value.

Additional approximations are:

  • After 2τ2\tau2τ, the velocity reaches approximately 86%86\%86% of its final value

  • After 3τ3\tau3τ, the velocity reaches approximately 95%95\%95% of its final value

The velocity rises rapidly at first and then gradually approaches terminal velocity.


Example: RC Circuit Response

12. Solving the RC Current Equation

The RC circuit equation is

i′(t)+1RCi(t)=0.i'(t)+\frac{1}{RC}i(t)=0.i′(t)+RC1​i(t)=0.

The initial condition is

i(0)=5R.i(0)=\frac{5}{R}.i(0)=R5​.

Here,

p=1RC,q(t)=0.p=\frac{1}{RC}, \qquad q(t)=0.p=RC1​,q(t)=0.

Using the general solution for a first-order linear equation:

i(t)=e−tRC[∫etRC⋅0 dt+C].i(t)=e^{-\frac{t}{RC}} \left[ \int e^{\frac{t}{RC}}\cdot 0\,dt+C \right].i(t)=e−RCt​[∫eRCt​⋅0dt+C].

Because the integral of zero is zero:

i(t)=Ce−tRC.i(t)=Ce^{-\frac{t}{RC}}.i(t)=Ce−RCt​.

Apply the initial condition:

i(0)=C=5R.i(0)=C=\frac{5}{R}.i(0)=C=R5​.

Therefore,

i(t)=5Re−tRC.\boxed{ i(t)=\frac{5}{R}e^{-\frac{t}{RC}} }.i(t)=R5​e−RCt​​.

13. Interpretation of the RC Solution

The current is initially

i(0)=5R.i(0)=\frac{5}{R}.i(0)=R5​.

As time increases, the exponential factor decreases, so the current decays toward zero:

lim⁡t→∞i(t)=0.\lim_{t\to\infty}i(t)=0.limt→∞​i(t)=0.

The quantity

τ=RC\tau=RCτ=RC

is the RC time constant.

At one time constant:

i(RC)=5Re−1≈0.375R.i(RC)=\frac{5}{R}e^{-1} \approx 0.37\frac{5}{R}.i(RC)=R5​e−1≈0.37R5​.

Thus, after one time constant, the current has dropped to approximately 37%37\%37% of its initial value, meaning it has decreased by approximately 63%63\%63%.

After three time constants, the current is approximately 5%5\%5% of its initial value.

The current response is an exponential decay:

  • Initially, the current decreases quickly

  • Later, the rate of decrease becomes smaller

  • Eventually, the current approaches zero


Second-Order Linear ODEs with Constant Coefficients

14. RLC Circuit Model

Consider a series circuit containing:

  • A resistor with resistance RRR

  • An inductor with inductance LLL

  • A capacitor with capacitance CCC

  • A voltage source vs(t)v_s(t)vs​(t)

  • A current i(t)i(t)i(t)

Kirchhoff’s voltage law gives

vR(t)+vL(t)+vC(t)=vs(t).v_R(t)+v_L(t)+v_C(t)=v_s(t).vR​(t)+vL​(t)+vC​(t)=vs​(t).

The component relationships are:

Resistor

vR(t)=Ri(t).v_R(t)=Ri(t).vR​(t)=Ri(t).

Inductor

vL(t)=Li′(t).v_L(t)=Li'(t).vL​(t)=Li′(t).

Capacitor

The capacitor relationship is

i(t)=CvC′(t),i(t)=C v_C'(t),i(t)=CvC′​(t),

so

vC′(t)=1Ci(t).v_C'(t)=\frac{1}{C}i(t).vC′​(t)=C1​i(t).

Differentiate Kirchhoff’s voltage equation:

vR′(t)+vL′(t)+vC′(t)=vs′(t).v_R'(t)+v_L'(t)+v_C'(t)=v_s'(t).vR′​(t)+vL′​(t)+vC′​(t)=vs′​(t).

Using the component relationships:

vR′(t)=Ri′(t),v_R'(t)=Ri'(t),vR′​(t)=Ri′(t),
vL′(t)=Li′′(t),v_L'(t)=Li''(t),vL′​(t)=Li′′(t),

and

vC′(t)=1Ci(t).v_C'(t)=\frac{1}{C}i(t).vC′​(t)=C1​i(t).

Substitution gives

Li′′(t)+Ri′(t)+1Ci(t)=vs′(t).Li''(t)+Ri'(t)+\frac{1}{C}i(t)=v_s'(t).Li′′(t)+Ri′(t)+C1​i(t)=vs′​(t).

This is a second-order linear ODE with constant coefficients.

The coefficients LLL, RRR, and 1C\frac{1}{C}C1​ are constants. The right-hand side may be zero, a constant, or another function of time.


15. General Second-Order Linear Equation

The general second-order linear ODE with constant coefficients has the form

Af′′(x)+Bf′(x)+Cf(x)=q(x),Af''(x)+Bf'(x)+Cf(x)=q(x),Af′′(x)+Bf′(x)+Cf(x)=q(x),

where:

  • AAA, BBB, and CCC are constants

  • f(x)f(x)f(x) is the unknown function

  • q(x)q(x)q(x) is a known function

For the RLC circuit:

A=L,B=R,C=1C.A=L, \qquad B=R, \qquad C=\frac{1}{C}.A=L,B=R,C=C1​.

The notation uses different symbols for the circuit capacitance and the coefficient in the general differential equation; the meaning is determined by context.


Homogeneous Second-Order Equations

16. Homogeneous Case

The equation is homogeneous when the right-hand side is zero:

Af′′(x)+Bf′(x)+Cf(x)=0.Af''(x)+Bf'(x)+Cf(x)=0.Af′′(x)+Bf′(x)+Cf(x)=0.

For the RLC circuit, the homogeneous equation is

Li′′(t)+Ri′(t)+1Ci(t)=0.Li''(t)+Ri'(t)+\frac{1}{C}i(t)=0.Li′′(t)+Ri′(t)+C1​i(t)=0.

Homogeneous equations describe the natural response of a system without an external driving input on the right-hand side.


17. Exponential Trial Solution

To solve the homogeneous equation, assume an exponential form:

f(x)=esx,f(x)=e^{sx},f(x)=esx,

where sss is an unknown constant.

The derivatives are

f′(x)=sesxf'(x)=se^{sx}f′(x)=sesx

and

f′′(x)=s2esx.f''(x)=s^2e^{sx}.f′′(x)=s2esx.

Substitute these into

Af′′(x)+Bf′(x)+Cf(x)=0.Af''(x)+Bf'(x)+Cf(x)=0.Af′′(x)+Bf′(x)+Cf(x)=0.

This gives

As2esx+Bsesx+Cesx=0.As^2e^{sx}+Bse^{sx}+Ce^{sx}=0.As2esx+Bsesx+Cesx=0.

Factor out esxe^{sx}esx:

esx(As2+Bs+C)=0.e^{sx}(As^2+Bs+C)=0.esx(As2+Bs+C)=0.

Since an exponential function is never zero,

esx≠0,e^{sx}\neq 0,esx=0,

the expression in parentheses must equal zero:

As2+Bs+C=0.\boxed{ As^2+Bs+C=0 }.As2+Bs+C=0​.

This equation is called the auxiliary equation, or characteristic equation.

The auxiliary equation converts the second-order differential equation into a quadratic equation in sss.


Distinct Real Roots

18. General Solution for Distinct Roots

Suppose the auxiliary equation has two distinct real roots:

s1≠s2.s_1\neq s_2.s1​=s2​.

Then the two independent solutions are

es1xandes2x.e^{s_1x} \qquad\text{and}\qquad e^{s_2x}.es1​xandes2​x.

Any linear combination of these solutions is also a solution. Therefore, the general solution is

f(x)=C1es1x+C2es2x,\boxed{ f(x)=C_1e^{s_1x}+C_2e^{s_2x} },f(x)=C1​es1​x+C2​es2​x​,

where C1C_1C1​ and C2C_2C2​ are arbitrary constants.

The two constants are determined using two initial conditions, typically values involving:

  • f(0)f(0)f(0)

  • f′(0)f'(0)f′(0)

A second-order differential equation generally requires two independent initial conditions to determine a unique solution.


19. Example with Distinct Real Roots

Consider

f′′(x)−6f′(x)+8f(x)=0,f''(x)-6f'(x)+8f(x)=0,f′′(x)−6f′(x)+8f(x)=0,

with initial conditions

f(0)=1,f′(0)=1.f(0)=1, \qquad f'(0)=1.f(0)=1,f′(0)=1.

Step 1: Form the auxiliary equation

Replace:

  • f′′(x)f''(x)f′′(x) with s2s^2s2

  • f′(x)f'(x)f′(x) with sss

  • f(x)f(x)f(x) with 111

This gives

s2−6s+8=0.s^2-6s+8=0.s2−6s+8=0.

Factor:

(s−2)(s−4)=0.(s-2)(s-4)=0.(s−2)(s−4)=0.

Therefore, the roots are

s1=2,s2=4.s_1=2, \qquad s_2=4.s1​=2,s2​=4.

They are distinct real roots.

Step 2: Write the general solution

f(x)=C1e2x+C2e4x.f(x)=C_1e^{2x}+C_2e^{4x}.f(x)=C1​e2x+C2​e4x.

Step 3: Apply the first initial condition

Substitute x=0x=0x=0:

f(0)=C1+C2.f(0)=C_1+C_2.f(0)=C1​+C2​.

Since f(0)=1f(0)=1f(0)=1:

C1+C2=1.C_1+C_2=1.C1​+C2​=1.

Step 4: Differentiate the general solution

f′(x)=2C1e2x+4C2e4x.f'(x)=2C_1e^{2x}+4C_2e^{4x}.f′(x)=2C1​e2x+4C2​e4x.

Substitute x=0x=0x=0:

f′(0)=2C1+4C2.f'(0)=2C_1+4C_2.f′(0)=2C1​+4C2​.

Since f′(0)=1f'(0)=1f′(0)=1:

2C1+4C2=1.2C_1+4C_2=1.2C1​+4C2​=1.

The constants satisfy the system

C1+C2=1,C_1+C_2=1,C1​+C2​=1,
2C1+4C2=1.2C_1+4C_2=1.2C1​+4C2​=1.

Solving gives

C1=32,C2=−12.C_1=\frac{3}{2}, \qquad C_2=-\frac{1}{2}.C1​=23​,C2​=−21​.

Final solution

Substitute these constants:

f(x)=32e2x−12e4x.\boxed{ f(x)=\frac{3}{2}e^{2x}-\frac{1}{2}e^{4x} }.f(x)=23​e2x−21​e4x​.

20. Verifying a Solution

A solution can be checked by substitution.

For the example,

f(x)=32e2x−12e4x.f(x)=\frac{3}{2}e^{2x}-\frac{1}{2}e^{4x}.f(x)=23​e2x−21​e4x.

The derivatives are

f′(x)=3e2x−2e4xf'(x)=3e^{2x}-2e^{4x}f′(x)=3e2x−2e4x

and

f′′(x)=6e2x−8e4x.f''(x)=6e^{2x}-8e^{4x}.f′′(x)=6e2x−8e4x.

Substituting into the differential equation:

f′′(x)−6f′(x)+8f(x)f''(x)-6f'(x)+8f(x)f′′(x)−6f′(x)+8f(x)

gives

(6e2x−8e4x)−6(3e2x−2e4x)+8(32e2x−12e4x)=0.\left(6e^{2x}-8e^{4x}\right) -6\left(3e^{2x}-2e^{4x}\right) +8\left(\frac{3}{2}e^{2x}-\frac{1}{2}e^{4x}\right)=0.(6e2x−8e4x)−6(3e2x−2e4x)+8(23​e2x−21​e4x)=0.

Thus, the differential equation is satisfied.

Verification is useful because errors can occur when:

  • Solving the auxiliary equation

  • Applying initial conditions

  • Solving the resulting system of equations

  • Differentiating the general solution


Other Root Cases

The quadratic auxiliary equation

As2+Bs+C=0As^2+Bs+C=0As2+Bs+C=0

can produce three types of root behavior:

  1. Two distinct real roots

  2. One repeated real root

  3. Two complex conjugate roots

The distinct-real-root case has the solution

f(x)=C1es1x+C2es2x.f(x)=C_1e^{s_1x}+C_2e^{s_2x}.f(x)=C1​es1​x+C2​es2​x.

For repeated real roots and complex roots, the form of the general solution changes and requires separate treatment. Nonhomogeneous second-order equations also require additional methods; the main focus in this material is the homogeneous case.


Key Study Summary

  • A differential equation contains an unknown function and one or more of its derivatives.

  • The order is the highest derivative appearing in the equation.

  • A first-order linear ODE has the form

    f′(x)+p(x)f(x)=q(x).f'(x)+p(x)f(x)=q(x).f′(x)+p(x)f(x)=q(x).
  • If p(x)=0p(x)=0p(x)=0, integration directly gives the solution.

  • If p(x)p(x)p(x) is constant, multiplication by epxe^{px}epx converts the left side into a product derivative.

  • The falling-object model produces a terminal velocity of

    mgk.\frac{mg}{k}.kmg​.
  • The RC circuit current decays according to

    i(t)=5Re−tRC.i(t)=\frac{5}{R}e^{-\frac{t}{RC}}.i(t)=R5​e−RCt​.
  • A second-order homogeneous linear ODE with constant coefficients has the form

    Af′′(x)+Bf′(x)+Cf(x)=0.Af''(x)+Bf'(x)+Cf(x)=0.Af′′(x)+Bf′(x)+Cf(x)=0.
  • Assuming f(x)=esxf(x)=e^{sx}f(x)=esx produces the auxiliary equation

    As2+Bs+C=0.As^2+Bs+C=0.As2+Bs+C=0.
  • For distinct real roots s1s_1s1​ and s2s_2s2​, the general solution is

    f(x)=C1es1x+C2es2x.f(x)=C_1e^{s_1x}+C_2e^{s_2x}.f(x)=C1​es1​x+C2​es2​x.
  • Two initial conditions are required to determine the two arbitrary constants in a second-order problem.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent