Introduction to Differential Equations: Complete Guide

Master the fundamentals of differential equations: definitions, classifications, solutions, and applications with step-by-step examples for differential equations students.

Solution: Exercises 1 to 3
1 Classifying differential equations
Exercise 1
Classify the following differential equations by order and type: (a) dy/dx = 3x² + 2y, (b) d²y/dx² + 4(dy/dx) + 3y = sin(x), (c) ∂²u/∂x² + ∂²u/∂y² = 0.
Definition:

Differential equation: An equation that relates a function with its derivatives. The order is determined by the highest derivative present.

Classification method:
  1. Identify the highest derivative to determine the order
  2. Determine if it's ordinary (one independent variable) or partial (multiple independent variables)
  3. Classify as linear or nonlinear
Equation (a)
\(\frac{dy}{dx} = 3x^2 + 2y\)
Classification
First-order, ODE, Linear
Step 1: Analyze equation (a) dy/dx = 3x² + 2y

Highest derivative: dy/dx (first derivative)

Order: 1

Independent variable: x only

Type: Ordinary differential equation (ODE)

Linearity: Linear (y appears only to the first power)

Step 2: Analyze equation (b) d²y/dx² + 4(dy/dx) + 3y = sin(x)

Highest derivative: d²y/dx² (second derivative)

Order: 2

Independent variable: x only

Type: Ordinary differential equation (ODE)

Linearity: Linear (y and its derivatives appear only to the first power)

Step 3: Analyze equation (c) ∂²u/∂x² + ∂²u/∂y² = 0

Highest derivatives: ∂²u/∂x² and ∂²u/∂y² (both second derivatives)

Order: 2

Independent variables: x and y

Type: Partial differential equation (PDE)

Linearity: Linear (u and its partial derivatives appear only to the first power)

Step 4: Summarize classifications

(a) First-order linear ODE

(b) Second-order linear ODE

(c) Second-order linear PDE

Step 5: Identify key characteristics

Linear equations: Dependent variable and its derivatives appear only to the first power

Nonlinear equations: Contain products of the dependent variable and its derivatives

(a) First-order linear ODE
(b) Second-order linear ODE
(c) Second-order linear PDE
Final answer:

(a) First-order linear ordinary differential equation

(b) Second-order linear ordinary differential equation

(c) Second-order linear partial differential equation

Applied rules:

• Order: Highest derivative determines the order

• Ordinary vs. Partial: One vs. multiple independent variables

• Linearity: Linear if dependent variable and derivatives are first power only

2 Verifying solutions
Exercise 2
Verify that y = Ce^(2x) is a solution to the differential equation dy/dx = 2y, where C is an arbitrary constant.
Definition:

Solution to a differential equation: A function that, when substituted into the differential equation along with its derivatives, makes the equation identically true.

Proposed solution
\(y = Ce^{2x}\)
Derivative
\(\frac{dy}{dx} = 2Ce^{2x}\)
Verification
\(2Ce^{2x} = 2(Ce^{2x})\)
Step 1: Compute the derivative of the proposed solution

Given: y = Ce^(2x)

dy/dx = d/dx(Ce^(2x)) = C · d/dx(e^(2x)) = C · e^(2x) · 2 = 2Ce^(2x)

Step 2: Substitute into the left side of the differential equation

Left side: dy/dx = 2Ce^(2x)

Step 3: Substitute into the right side of the differential equation

Right side: 2y = 2(Ce^(2x)) = 2Ce^(2x)

Step 4: Compare both sides

Left side: 2Ce^(2x)

Right side: 2Ce^(2x)

Since both sides are equal, the proposed solution is valid

Step 5: Interpret the result

y = Ce^(2x) is indeed a solution to dy/dx = 2y

The constant C represents the family of solutions

Step 6: Verify with specific value

Let C = 1: y = e^(2x), dy/dx = 2e^(2x)

Check: 2e^(2x) = 2(e^(2x)) ✓

y = Ce^(2x) is a solution to dy/dx = 2y
Final answer:

y = Ce^(2x) is a solution to dy/dx = 2y for any constant C

Applied rules:

• Verification: Substitute solution and its derivatives into original equation

• Chain rule: d/dx(e^(ax)) = ae^(ax)

• Constant multiple rule: d/dx(cf(x)) = c·d/dx(f(x))

3 Initial value problem
Exercise 3
Solve the initial value problem: dy/dx = 3x², y(0) = 2.
Definition:

Initial value problem (IVP): A differential equation along with one or more initial conditions that specify the value of the unknown function and possibly its derivatives at a particular point.

Differential equation
\(\frac{dy}{dx} = 3x^2\)
Integration
\(y = x^3 + C\)
Apply IC
\(y = x^3 + 2\)
Step 1: Identify the type of differential equation

dy/dx = 3x² is a first-order ordinary differential equation

This is a separable equation that can be solved by direct integration

Step 2: Integrate both sides

∫dy = ∫3x² dx

y = x³ + C

Step 3: Apply the initial condition

Given: y(0) = 2

Substitute x = 0 and y = 2: 2 = (0)³ + C

Therefore: C = 2

Step 4: Write the particular solution

y = x³ + 2

Step 5: Verify the solution

dy/dx = d/dx(x³ + 2) = 3x² ✓

y(0) = (0)³ + 2 = 2 ✓

Step 6: Interpret the solution

The general solution y = x³ + C represents a family of curves

The particular solution y = x³ + 2 passes through the point (0, 2)

y = x³ + 2
Final answer:

y = x³ + 2

Applied rules:

• Direct integration: For equations of the form dy/dx = f(x)

• Initial conditions: Determine the value of the arbitrary constant

• Particular solution: Specific solution satisfying initial conditions

Differential Equations: Rules and Methods
\(\frac{dy}{dx} = f(x,y)\)
General First-Order ODE
Type 1
\(a_n(x)y^{(n)} + \cdots + a_1(x)y' + a_0(x)y = g(x)\)
Linear ODE
Type 2
\(M(x,y)dx + N(x,y)dy = 0\)
Exact Equation
Type 3
\(\frac{dy}{dx} = f(x)g(y)\)
Separable Equation
Key definitions:

Differential equation: An equation involving derivatives of an unknown function

Order: The highest derivative present in the equation

Ordinary differential equation (ODE): Contains only ordinary derivatives with respect to one independent variable

Partial differential equation (PDE): Contains partial derivatives with respect to multiple independent variables

Linear differential equation: The dependent variable and its derivatives appear only to the first power and are not multiplied together

Nonlinear differential equation: Contains products of the dependent variable and its derivatives, or powers higher than one

General solution: Contains arbitrary constants equal to the order of the equation

Particular solution: Obtained from the general solution by assigning specific values to arbitrary constants

Initial value problem (IVP): A differential equation with specified initial conditions

Boundary value problem (BVP): A differential equation with specified conditions at different points

Solution methods:
  1. Direct integration: For equations of the form dy/dx = f(x)
  2. Separation of variables: For equations of the form dy/dx = f(x)g(y)
  3. Integrating factor: For linear first-order equations
  4. Exact equations: When M(x,y)dx + N(x,y)dy = 0 satisfies ∂M/∂y = ∂N/∂x
  5. Verification: Always substitute solution back into original equation
Tip 1: Always identify the order and type of differential equation first.
Tip 2: Check if the equation is linear before attempting advanced methods.
Tip 3: Verify your solution by substituting back into the original equation.
Tip 4: Count the number of arbitrary constants to verify the order matches.
Common errors: Misidentifying order, confusing ODEs with PDEs, not checking linearity, forgetting to apply initial conditions, not verifying solutions.
Memory aids: "Order = highest derivative", "ODE = one variable", "PDE = multiple variables", "Linear = first power only".
Essential properties:

• Linearity test: An equation is linear if it can be written as L[y] = g(x) where L is a linear operator

• Superposition principle: For homogeneous linear equations, linear combinations of solutions are also solutions

• Existence and uniqueness: Under certain conditions, IVPs have unique solutions

• Arbitrary constants: The number of arbitrary constants equals the order of the equation

Solution: Exercises 4 to 5
4 Modeling with differential equations
Exercise 4
A population P(t) grows at a rate proportional to its current size. Write the differential equation that models this situation and find its general solution.
Definition:

Mathematical modeling: The process of translating real-world situations into mathematical equations, particularly differential equations, to analyze and predict behavior.

Rate description
"\(\frac{dP}{dt} \propto P\)"
Differential equation
\(\frac{dP}{dt} = kP\)
General solution
\(P(t) = Ce^{kt}\)
Step 1: Translate the verbal description into mathematical terms

"Rate of growth is proportional to current size" means:

dP/dt = kP, where k is the proportionality constant

Step 2: Identify the type of differential equation

dP/dt = kP is a first-order linear ordinary differential equation

It is also separable since it can be written as dP/P = k dt

Step 3: Solve by separation of variables

Separate variables: dP/P = k dt

Integrate both sides: ∫dP/P = ∫k dt

ln|P| = kt + C₁

Step 4: Solve for P

Take exponential of both sides: |P| = e^(kt + C₁) = e^(C₁)e^(kt)

Let C = ±e^(C₁), then P = Ce^(kt)

Step 5: Interpret the solution

P(t) = Ce^(kt) represents exponential growth

If k > 0, the population grows exponentially

If k < 0, the population decays exponentially

Step 6: Verify the solution

P(t) = Ce^(kt), so dP/dt = Cke^(kt) = k(Ce^(kt)) = kP ✓

Differential equation: dP/dt = kP
General solution: P(t) = Ce^(kt)
Final answer:

Differential equation: dP/dt = kP

General solution: P(t) = Ce^(kt)

Applied rules:

• Proportional relationships: "A is proportional to B" means A = kB

• Separation of variables: Move all P terms to one side, t terms to other

• Integration: ∫dx/x = ln|x| + C

5 Higher-order equation
Exercise 5
Show that y = e^(3x) is a solution to the second-order differential equation y'' - 6y' + 9y = 0.
Definition:

Second-order differential equation: An equation involving the second derivative of the unknown function, typically of the form F(x, y, y', y'') = 0.

Function
\(y = e^{3x}\)
First derivative
\(y' = 3e^{3x}\)
Second derivative
\(y'' = 9e^{3x}\)
Step 1: Compute the first derivative

Given: y = e^(3x)

y' = d/dx(e^(3x)) = e^(3x) · 3 = 3e^(3x)

Step 2: Compute the second derivative

y'' = d/dx(3e^(3x)) = 3 · d/dx(e^(3x)) = 3 · e^(3x) · 3 = 9e^(3x)

Step 3: Substitute into the differential equation

y'' - 6y' + 9y = 0

Substitute: 9e^(3x) - 6(3e^(3x)) + 9(e^(3x)) = 0

Step 4: Simplify the expression

9e^(3x) - 18e^(3x) + 9e^(3x) = (9 - 18 + 9)e^(3x) = 0e^(3x) = 0

Step 5: Verify the result

Since the left side equals 0, which equals the right side, y = e^(3x) is indeed a solution

Step 6: Note about the equation

This is a linear homogeneous second-order equation with constant coefficients

The characteristic equation is r² - 6r + 9 = 0, which factors as (r - 3)² = 0

This gives a repeated root r = 3, confirming that e^(3x) is a solution

y = e^(3x) satisfies y'' - 6y' + 9y = 0
Final answer:

y = e^(3x) is a solution to y'' - 6y' + 9y = 0

Applied rules:

• Chain rule: d/dx(e^(ax)) = ae^(ax)

• Verification: Substitute function and all derivatives into original equation

• Homogeneous equations: Right side equals zero

Comprehensive Summary: Introduction to Differential Equations
\(\frac{dy}{dx} = f(x,y)\)
General First-Order ODE
Complete definitions:

Differential equation: An equation that relates an unknown function to its derivatives. It expresses how a quantity changes in relation to other quantities.

Order of a differential equation: The order is determined by the highest derivative present in the equation. A first-order equation contains only first derivatives, a second-order contains up to second derivatives, etc.

Ordinary differential equation (ODE): Contains ordinary derivatives of one or more dependent variables with respect to a single independent variable.

Partial differential equation (PDE): Contains partial derivatives of one or more dependent variables with respect to two or more independent variables.

Linear differential equation: A differential equation that can be written in the form where the dependent variable and all its derivatives appear to the first power and are not multiplied together.

Nonlinear differential equation: Any differential equation that is not linear, containing products of the dependent variable and its derivatives, or powers higher than one.

General solution: The complete family of solutions containing arbitrary constants equal in number to the order of the equation.

Particular solution: A specific member of the general solution family obtained by assigning particular values to the arbitrary constants, often using initial or boundary conditions.

Initial value problem (IVP): A differential equation together with one or more initial conditions that specify the value of the unknown function and possibly its derivatives at a particular point.

Explicit solution: A solution where the dependent variable is expressed directly in terms of the independent variable(s).

Implicit solution: A solution where the relationship between dependent and independent variables is expressed implicitly.

Complete solution methodology:
  1. Classification: Identify order, type (ODE/PDE), and linearity
  2. Method selection: Choose appropriate solution technique based on classification
  3. Solution process: Apply the chosen method systematically
  4. Verification: Substitute solution back into original equation
  5. Application of conditions: Use initial/boundary conditions if present
  6. Interpretation: Understand the physical or mathematical meaning
Tip 1: Always identify the order first by finding the highest derivative.
Tip 2: Count independent variables to distinguish ODEs from PDEs.
Tip 3: Check linearity by ensuring dependent variable and derivatives are first power only.
Tip 4: Verify solutions by substitution - this catches most errors.
Tip 5: The number of arbitrary constants should equal the order of the equation.
Tip 6: Practice identifying the correct solution method for different equation types.
Common errors: Miscounting order, confusing ODEs with PDEs, incorrectly identifying linearity, not applying initial conditions properly, failing to verify solutions, mixing up dependent and independent variables.
Memory aids: "Order = highest derivative", "ODE = one variable", "PDE = multiple variables", "Linear = first power only", "Verify by substitution".
Essential formulas and principles:

• General linear ODE: aₙ(x)y^(n) + aₙ₋₁(x)y^(n-1) + ... + a₁(x)y' + a₀(x)y = g(x)

• Separable equation: dy/dx = f(x)g(y) → ∫dy/g(y) = ∫f(x)dx

• Linear first-order: y' + P(x)y = Q(x) → μ(x) = e^(∫P(x)dx)

• Exact equation: M(x,y)dx + N(x,y)dy = 0 if ∂M/∂y = ∂N/∂x

• Chain rule: d/dx[f(g(x))] = f'(g(x)) · g'(x)

• Product rule: d/dx[u(x)v(x)] = u'(x)v(x) + u(x)v'(x)

• Verification: Substitute solution and derivatives into original equation

Visualizing Differential Equation Solutions
Exercise 6: Solution Families
Consider the following differential equation solutions:
\(y_1(x) = Ce^{2x}\) (Solution to dy/dx = 2y)
\(y_2(x) = x^3 + C\) (Solution to dy/dx = 3x²)
\(y_3(x) = Ae^{3x} + Bxe^{3x}\) (Solution to y'' - 6y' + 9y = 0)

Analysis: The chart shows different families of solutions to differential equations.

  • \(y_1(x):\)
    • Exponential solution family
    • Represents growth/decay processes
    • Parameter C determines initial value
  • \(y_2(x):\)
    • Polynomial solution family
    • Result of direct integration
    • Parameter C shifts vertically
  • \(y_3(x):\)
    • Solution with repeated root
    • Contains both e^(3x) and xe^(3x)
    • Parameters A and B determined by initial conditions

Questions & Answers

Question: I'm confused about the difference between ordinary and partial differential equations. Can you explain?

Answer: The key difference lies in the number of independent variables:

Ordinary Differential Equations (ODEs):

  • Involve derivatives with respect to only ONE independent variable
  • Example: dy/dx = 3x + 2y (derivative with respect to x only)
  • Example: d²y/dt² + ω²y = 0 (derivative with respect to t only)
  • Usually easier to solve than PDEs

Partial Differential Equations (PDEs):

  • Involve partial derivatives with respect to TWO OR MORE independent variables
  • Example: ∂u/∂t = α²(∂²u/∂x²) (derivatives with respect to both t and x)
  • Example: ∂²u/∂x² + ∂²u/∂y² = 0 (derivatives with respect to both x and y)
  • Generally more complex to solve

Think of it this way: ODEs describe how a quantity changes along a single path, while PDEs describe how a quantity varies across multiple dimensions.

Question: How do I determine if a differential equation is linear or nonlinear?

Answer: A differential equation is linear if it can be written in the form:

aₙ(x)y^(n) + aₙ₋₁(x)y^(n-1) + ... + a₁(x)y' + a₀(x)y = g(x)

Linear criteria:

  • The dependent variable y and all its derivatives appear to the FIRST POWER only
  • No products of y and its derivatives (like yy', y², etc.)
  • No transcendental functions of y (like sin(y), e^y, ln(y), etc.)
  • The coefficients can depend on the independent variable x

Linear examples:

  • dy/dx + 2y = x (linear)
  • y'' + 3y' + 2y = sin(x) (linear)

Nonlinear examples:

  • dy/dx + y² = x (nonlinear - y² term)
  • y'' + y·y' = 0 (nonlinear - y·y' product)
  • dy/dx + sin(y) = x (nonlinear - sin(y) term)

Remember: Linearity refers to the dependent variable and its derivatives, not necessarily the independent variable.

Question: Why is it important to verify solutions to differential equations?

Answer: Verification is crucial for several reasons:

1. Catching computational errors:

  • Integration mistakes
  • Algebraic errors
  • Incorrect differentiation

2. Ensuring mathematical validity:

  • Checking that the solution satisfies the original equation
  • Confirming that all operations were valid
  • Validating domain restrictions

3. Understanding the solution:

  • Reinforces the relationship between function and derivative
  • Builds intuition about solution behavior
  • Confirms that the solution makes mathematical sense

Verification process:

Substitute the proposed solution and all its required derivatives back into the original differential equation. If both sides are equal, the solution is correct.

Example: For y = e^(2x) and dy/dx = 2y, verify: d/dx(e^(2x)) = 2e^(2x) and 2y = 2e^(2x) ✓

Question: What's the difference between a general solution and a particular solution?

Answer: The distinction is important for understanding the solution space:

General Solution:

  • Contains arbitrary constants equal to the order of the differential equation
  • Represents the entire family of solutions
  • For an nth-order equation, contains n arbitrary constants
  • Example: y = C₁e^(2x) + C₂e^(-x) (general solution to y'' - y' - 2y = 0)

Particular Solution:

  • A specific member of the general solution family
  • Obtained by applying initial or boundary conditions
  • Constants have specific numerical values
  • Example: If y(0) = 1 and y'(0) = 0, then y = (2/3)e^(2x) + (1/3)e^(-x)

Analogy: The general solution is like having the equation of all circles with center at origin (x² + y² = r²), while a particular solution is like specifying a particular circle (x² + y² = 9).

The general solution represents infinite possibilities, while the particular solution represents the specific case that satisfies given conditions.

Question: What's the best approach to solving differential equations systematically?

Answer: Here's a systematic approach to solving differential equations:

Step 1: Classification

  • Determine the order (highest derivative)
  • Identify as ODE or PDE
  • Determine if linear or nonlinear
  • Check if it's separable, exact, linear, etc.

Step 2: Method Selection

  • First-order linear: Integrating factor method
  • Separable: Separation of variables
  • Exact: Find potential function
  • Homogeneous: Substitution methods

Step 3: Solution Process

  • Apply the chosen method systematically
  • Perform all algebraic manipulations carefully
  • Integrate when necessary

Step 4: Verification

  • Substitute solution and derivatives into original equation
  • Check that both sides are equal
  • Verify initial/boundary conditions if given

Step 5: Interpretation

Understand the physical or mathematical significance of your solution.