GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Algebra
  • Applied Mathematics
  • Calculus and Analysis
  • Discrete Mathematics
  • Foundations of Mathematics
  • Geometry
  • History and Terminology
  • Number Theory
  • Probability and Statistics
  • Recreational Mathematics
  • Topology
  • Alphabetical Index
  • Random Entry
  • New in MathWorld

This view

  • Original page
  • New address

GeezerVison is showing mathworld.wolfram.com — First-Order Ordinary Differential Equation -- from Wolfram MathWorld

Search

First-Order Ordinary Differential Equation


DOWNLOAD Mathematica NotebookDownload Wolfram Notebook

A first-order ordinary differential equation relates an unknown function to its first derivative. For an equation of the form

 (dy)/(dx)=F(x,y),
(1)

if F(x,y) can be expressed using separation of variables as

 F(x,y)=X(x)Y(y),
(2)

then the equation can be expressed as

 (dy)/(Y(y))=X(x)dx
(3)

where Y(y)!=0. Integrating both sides gives

 int(dy)/(Y(y))=intX(x)dx.
(4)

Each zero y_* of Y(y) also gives the constant function solution y(x)=y_*.

For a first-order linear ordinary differential equation

 (dy)/(dx)+p(x)y=q(x),
(5)

assume p(x) and q(x) are continuous functions on an interval containing x_0. Multiplication by an integrating factor mu(x) satisfying mu^'(x)=p(x)mu(x) turns the left-hand side into (mu(x)y(x))^' by the product rule. The choice

 mu(x)=exp(int_(x_0)^xp(t)dt)
(6)

is nonzero and satisfies mu(x_0)=1. Integrating (mu(x)y(x))^'=mu(x)q(x) gives the solution with initial conditions specified by y(x_0)=y_0,

 y(x)=1/(mu(x))[y_0+int_(x_0)^xmu(t)q(t)dt].
(7)

Varying y_0 gives the general solution.

Given an nth-order linear ODE with constant coefficients

 (d^ny)/(dx^n)+a_(n-1)(d^(n-1)y)/(dx^(n-1))+...+a_1(dy)/(dx)+a_0y=Q(x),
(8)

first solve the characteristic equation obtained by writing

 y=e^(rx)
(9)

and setting Q(x)=0 to obtain the n complex roots.

 r^ne^(rx)+a_(n-1)r^(n-1)e^(rx)+...+a_1re^(rx)+a_0e^(rx)=0
(10)
 r^n+a_(n-1)r^(n-1)+...+a_1r+a_0=0.
(11)

Factoring gives the roots r_i,

 (r-r_1)(r-r_2)...(r-r_n)=0.
(12)

For a nonrepeated real root r, the corresponding solution is

 y=e^(rx).
(13)

If a real root r is repeated k times, the solutions are degenerate and the linearly independent solutions are

 y=e^(rx),y=xe^(rx),...,y=x^(k-1)e^(rx).
(14)

Complex roots always come in complex conjugate pairs, r_+/-=a+/-ib. For nonrepeated complex roots, the solutions are

 y=e^(ax)cos(bx),y=e^(ax)sin(bx).
(15)

If the complex roots are repeated k times, the linearly independent solutions are

 y=e^(ax)cos(bx),y=e^(ax)sin(bx),...,y=x^(k-1)e^(ax)cos(bx),y=x^(k-1)e^(ax)sin(bx).
(16)

Linearly combining solutions of the appropriate types with arbitrary multiplicative constants then gives the complete solution. If initial conditions are specified, the constants can be explicitly determined. For example, consider the sixth-order linear ODE

 (D^~-1)(D^~-2)^3(D^~^2+D^~+1)y=0,
(17)

which has the characteristic equation

 (r-1)(r-2)^3(r^2+r+1)=0.
(18)

The roots are 1, 2 (three times), and (-1+/-sqrt(3)i)/2, so the solution is

 y=Ae^x+Be^(2x)+Cxe^(2x)+Dx^2e^(2x)+Ee^(-x/2)cos(1/2sqrt(3)x)+Fe^(-x/2)sin(1/2sqrt(3)x).
(19)

If the original equation is nonhomogeneous (Q(x)!=0), now find the particular solution y^* by the method of variation of parameters. The general solution is then

 y(x)=sum_(i=1)^nc_iy_i(x)+y^*(x),
(20)

where the solutions to the linear equations are y_1(x), y_2(x), ..., y_n(x), and y^*(x) is the particular solution.


See also

Exact First-Order Ordinary Differential Equation, Integrating Factor, Ordinary Differential Equation, Second-Order Ordinary Differential Equation, Separation of Variables, Variation of Parameters

Explore with Wolfram|Alpha

WolframAlpha

More things to try:

  • adjoint
  • y' = y
  • y' + 2 y = x

References

Arfken, G. Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, pp. 440-445, 1985.

Referenced on Wolfram|Alpha

First-Order Ordinary Differential Equation

Cite this as:

Weisstein, Eric W. "First-Order Ordinary Differential Equation." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/First-OrderOrdinaryDifferentialEquation.html

Subject classifications

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.