Docsity

Ordinary Differential Equations (ODEs) – Complete Study Notes | Classification, First-Orde, Study notes of Mathematical Physics

Toggle sidebar
bg1
Page 1
Ordinary Differential Equations
Study Notes: Classification, First-Order Methods and Second-Order Equations
Part 1: Basic Concepts
Whenever an equation contains a derivative, it is a differential equation (DE). A differential
equation asks: which function y(x) satisfies this relation between y and its derivatives? For
example, in y′ = xy we are looking for the function whose derivative equals x·y.
Example:
Solution:
Separate the variables:
Integrate both sides:
where A = ±eC is an arbitrary constant.
Differential equation vs. normal (algebraic) equation
Differential equation Normal (algebraic)
equation
Solution is a function a value
Example y′ = xy x² − 2 = 0
Ordinary vs. partial differential equations
Ordinary (ODE) ✓ Partial (PDE)
• only one independent variable
• notation: dy/dx, y(x)
• more than one independent
variable
• notation: ∂f/∂x, ∂f/∂y, z(x, y)
✓ In these notes we study ordinary differential equations.
Classification of differential equations
To solve a differential equation we first classify it, because each type has its own solution
technique. We classify an equation by three properties:
1. Order 2. Degree 3. Linearity
1. Order
The order is the order of the highest derivative in the equation.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Ordinary Differential Equations (ODEs) – Complete Study Notes | Classification, First-Orde and more Study notes Mathematical Physics in PDF only on Docsity!

Ordinary Differential Equations

Study Notes: Classification, First-Order Methods and Second-Order Equations

Part 1: Basic Concepts

Whenever an equation contains a derivative , it is a differential equation (DE). A differential equation asks: which function y(x) satisfies this relation between y and its derivatives? For example, in y′ = xy we are looking for the function whose derivative equals x·y.

Example:

Solution: Separate the variables: Integrate both sides: where A = ±eC^ is an arbitrary constant.

Differential equation vs. normal (algebraic) equation

Differential equation Normal (algebraic) equation Solution is a function a value Example y′ = xy x² − 2 = 0

Ordinary vs. partial differential equations

Ordinary (ODE) ✓ Partial (PDE)

  • only one independent variable
  • notation: dy/dx, y(x)
    • more than one independent variable
    • notation: ∂f/∂x, ∂f/∂y, z(x, y) ✓ In these notes we study ordinary differential equations.

Classification of differential equations

To solve a differential equation we first classify it, because each type has its own solution technique. We classify an equation by three properties:

1. Order 2. Degree 3. Linearity

1. Order

The order is the order of the highest derivative in the equation.

The highest derivative is y″, so it is a second-order equation.

2. Degree

The degree is the power (exponent) of the highest-order derivative. y″ appears to the power 1, so the degree is 1. Order: second order. Degree: 2 (the highest power of the highest derivative y″).

3. Linearity

y is the dependent variable and x is the independent variable. For example, in y = x² the value of y depends on x, and the straight line y = mx + C is a linear relation. A differential equation is linear when:

  • y, y′, y″, … appear only to the first power (no powers on y or its derivatives).
  • y and its derivatives are not multiplied together (no y·y′, y·y″, …).
  • y is not inside another function such as √y, ey, ln y, sin y.
  • x can appear freely: the coefficients of y, y′, y″ may be constants or functions of x. If any of these conditions fails, the equation is non-linear.

Examples: classify each equation by order, degree and linearity

Order: 2 Degree: 1 Linearity: linear ✓ Order: 3 Degree: 1 Linearity: non-linear (√y = y1/2^ is a power of y) Order: 2 Degree: 1 Linearity: non-linear (y is multiplied by y″) Order: 3 Degree: 1 Linearity: non-linear ((y′)² is a power of a derivative) Note: the degree depends only on the highest-order derivative y‴, which has power 1. The power 2 on y′ makes the equation non-linear but does not change the degree. Order: 4 Degree: 3 Linearity: non-linear (powers of y and its derivatives) Expand first (product rule): Order: 2 Degree: 1 Linearity: linear (the coefficients depend on x only) Order: 3 Degree: 1 Linearity: non-linear (ey^ is a function of y) Part 2: First-Order Equations: Solution Methods

Let z = y1−n^ = y1−2^ = y−1, so z′ = −y−2y′. Substituting: This is linear in z. Integrating factor: Integration by parts with u = x, dv = e−2xdx, so du = dx, v = −e−2x/2: Return to y (z = 1/y): (y = 0 is also a solution; it is lost when dividing by y².)

Reminder: integration by parts

Example

Solution: Let u = x, dv = cos x dx, so du = dx, v = sin x. [6] Exact Equations Form: M is the part multiplied by dx, and N is the part multiplied by dy. Steps:

  1. Test whether the equation is exact.
  2. Differentiate M with respect to y , and N with respect to x.
  3. Compare the two results.
  4. If they are equal, ∂M/∂y = ∂N/∂x, then the equation is exact.
  5. Integrate M with respect to x (treat y as a constant): f ( x , y ) = ∫ M dx = [ … ] + g ( y ).
  6. Differentiate the result with respect to y.
  7. Set it equal to N.
  8. Solve for g′ ( y ).
  9. Integrate to get g ( y ) and substitute it back into step 5. The solution is f ( x , y ) = C.

Example 6:

Solution: (1) = (2), therefore the equation is exact. Solution: [7] Non-Exact Equations If M y ≠ N x (that is, ∂M/∂y ≠ ∂N/∂x), the equation is not exact. We make it exact with an integrating factor μ:

  1. Find μ (the integrating factor).
  2. Compute ( M y − N x)/ N. If the result is a function of x only: If it is not, compute ( N x − M y)/ M. If the result is a function of y only:
  3. Multiply the whole equation by μ.
  4. Solve the new equation as an exact equation.

Example 7:

Solution: The equation is not exact. Try (M y

− N

x

)/N:

This depends on both x and y, so it cannot be used. Try (N x

− M

y

)/M:

Multiply the equation by μ = y:

Substitute back u = y/x²: Solution: (y = 0 is also a solution; it is lost when dividing by u.) Part 3: Second-Order Ordinary Differential Equations [1] Homogeneous Equations Conditions for this method:

  • The right-hand side is zero.
  • p and q are constants (not functions of x).
  • The solution contains two arbitrary constants , C 1 and C 2. Let y = eλx. Then: Substituting (and dividing by eλx) gives the characteristic equation : Solve it for the roots λ 1 , λ 2 : There are four cases for the roots: Cas e Roots General solution 1 λ 1 ≠ λ 2 (real, distinct) 2 λ 1 = λ 2 = λ (repeated) 3 λ1,2 = a ± ib (complex) 4 λ 1 = −λ 2 (opposite roots) In case 4, an equivalent form is y = C 1 eλx^ + C 2 e−λx.

Example 9:

Solution: Real and distinct roots (case 1):

Example 10: Initial Value Problem (IVP)

In this kind of problem we are given y(0) and y′(0) , which let us find the values of the constants C 1 and C 2. Solution: Complex roots (case 3) with a = 2, b = √5: Apply y(0) = 0: Differentiate: Apply y′(0) = −8: Solution (C 1 = 0): [2] Non-Homogeneous Equations The general solution is the sum of two parts:

  1. yc (complementary solution): set the right-hand side to zero and solve the homogeneous equation as usual.
  2. yp (particular solution): guess yp according to the form of g(x) (table below).
  3. Substitute yp, yp′, yp″ into the equation and compare coefficients to find A, B, …
  4. Write y = y c + y p. Form of g(x) Guess for y_p

Substitute into the equation: Solution: