How to Solve First Order Differential Equations

First order differential equations are fundamental in understanding various physical phenomena, engineering systems, and mathematical models. They involve derivatives of a function with respect to a single variable and are typically encountered in fields such as physics, biology, economics, and more. Solving these equations allows us to predict behaviors, analyze systems, and find explicit functions that describe real-world situations. This guide will introduce you to effective methods and techniques to solve first order differential equations with clarity and confidence.

How to Solve First Order Differential Equations


Understanding First Order Differential Equations

First order differential equations are equations that involve the first derivative of an unknown function y(x) with respect to an independent variable x. They can be generally written as:

\[ \frac{dy}{dx} = f(x, y) \]

Depending on the form of \(f(x, y)\), these equations can be classified into different types, such as linear, separable, exact, and homogeneous equations. Recognizing the type of differential equation at hand is crucial in choosing the most suitable solving method.


Methods to Solve First Order Differential Equations

There are several techniques to solve first order differential equations. The most common methods include:

  • Separable Equations
  • Linear Equations
  • Exact Equations
  • Integrating Factor Method
  • Homogeneous Equations
  • Substitution Methods

Let's explore each method with explanations and examples.


1. Separable Differential Equations

Separable equations are those where the differential equation can be written as a product of a function of x and a function of y:

\[ \frac{dy}{dx} = g(x)h(y) \]

To solve, you separate the variables y and x on different sides:

\[ \frac{1}{h(y)} dy = g(x) dx \]

Then, integrate both sides:

\[ \int \frac{1}{h(y)} dy = \int g(x) dx + C \]

**Example:**

Solve \( \frac{dy}{dx} = xy \).

Solution:

  • Rewrite as \( \frac{dy}{y} = x dx \)
  • Integrate both sides: \( \int \frac{1}{y} dy = \int x dx \)
  • Results in \( \ln |y| = \frac{x^2}{2} + C \)
  • Exponentiate to find \( y = \pm e^{C} e^{x^2/2} \), or simply \( y = K e^{x^2/2} \)

2. Linear Differential Equations

Linear equations of the form:

\[ \frac{dy}{dx} + P(x) y = Q(x) \]

are solved using the integrating factor method. The integrating factor \( \mu(x) \) is given by:

\[ \mu(x) = e^{\int P(x) dx} \]

Multiplying the entire differential equation by \( \mu(x) \) turns it into an exact derivative, which can then be integrated directly.

**Example:**

Solve \( \frac{dy}{dx} + 2 y = e^{x} \).

Solution:

  • Identify \( P(x) = 2 \), \( Q(x) = e^{x} \)
  • Calculate the integrating factor: \( \mu(x) = e^{\int 2 dx} = e^{2x} \)
  • Multiply the entire equation by \( e^{2x} \): \[ e^{2x} \frac{dy}{dx} + 2 e^{2x} y = e^{3x} \]
  • The left side becomes \( \frac{d}{dx} (e^{2x} y) \): \[ \frac{d}{dx} (e^{2x} y) = e^{3x} \]
  • Integrate both sides: \[ e^{2x} y = \int e^{3x} dx = \frac{1}{3} e^{3x} + C \]
  • Finally, solve for y: \[ y = e^{-2x} \left( \frac{1}{3} e^{3x} + C \right) = \frac{1}{3} e^{x} + C e^{-2x} \]

3. Exact Differential Equations

An equation \( M(x, y) dx + N(x, y) dy = 0 \) is called exact if:

\[ \frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} \]

To solve, find a potential function \( \Psi(x, y) \) such that:

\[ \frac{\partial \Psi}{\partial x} = M(x, y), \quad \frac{\partial \Psi}{\partial y} = N(x, y) \]

**Example:**

Solve \( (2xy + y^2) dx + (x^2 + 2xy) dy = 0 \).

Solution:

  • Check if the equation is exact: - \( M = 2xy + y^2 \), \( N = x^2 + 2xy \) - \( \frac{\partial M}{\partial y} = 2x + 2y \) - \( \frac{\partial N}{\partial x} = 2x + 2y \) - Since they are equal, the equation is exact.
  • Find \( \Psi(x, y) \) by integrating \( M \) with respect to x: \[ \Psi(x, y) = \int (2xy + y^2) dx = x^2 y + y^2 x + h(y) \]
  • Differentiate \( \Psi \) with respect to y: \[ \frac{\partial \Psi}{\partial y} = x^2 + 2 y x + h'(y) \]
  • Set equal to \( N \): \[ x^2 + 2 xy = x^2 + 2 xy + h'(y) \Rightarrow h'(y) = 0 \]
  • Integrate to find \( h(y) = \text{constant} \)
  • Solution: \[ \Psi(x, y) = x^2 y + y^2 x = C \]

4. Homogeneous Equations

Homogeneous equations are those where \( f(x, y) \) is a homogeneous function of degree zero. They often can be solved by substitution \( y = vx \), where \( v \) is a new variable:

\[ y = v x \Rightarrow \frac{dy}{dx} = v + x \frac{dv}{dx} \]

This substitution simplifies the equation to a separable form in terms of \( v \) and \( x \).

**Example:**

Solve \( \frac{dy}{dx} = \frac{y}{x} + x \).

Solution:

  • Substitute \( y = vx \), so \( \frac{dy}{dx} = v + x \frac{dv}{dx} \)
  • Rewrite the differential equation: \[ v + x \frac{dv}{dx} = v + x \]
  • Simplify: \[ x \frac{dv}{dx} = x \]
  • Divide both sides by \( x \): \[ \frac{dv}{dx} = 1 \] \li>
  • Integrate: \[ v = x + C \]
  • Recall \( y = vx = (x + C) x = x^2 + Cx \)

5. Substitution Techniques

Sometimes, a differential equation can be simplified through substitution, such as \( u = y - g(x) \) or other variable changes, to reduce it to a solvable form. These are useful when the standard methods don't directly apply.

**Example:**

Solve \( \frac{dy}{dx} = \frac{y + x}{x} \).

Solution:

  • Rewrite as: \[ \frac{dy}{dx} = \frac{y}{x} + 1 \]
  • Let \( u = y/x \Rightarrow y = ux \)
  • Differentiate: \[ \frac{dy}{dx} = u + x \frac{du}{dx} \]
  • Substitute into the original: \[ u + x \frac{du}{dx} = u + 1 \]
  • Simplify: \[ x \frac{du}{dx} = 1 \]
  • Integrate: \[ u = \ln |x| + K \]
  • Recall \( y = ux = x (\ln |x| + K) \)

Key Tips for Solving First Order Differential Equations

  • Always identify the type of differential equation before choosing the method.
  • Check if the equation is separable; if yes, separate variables and integrate.
  • For linear equations, find the integrating factor to facilitate integration.
  • Verify if the equation is exact; if so, find a potential function.
  • Use substitution techniques for homogeneous or complicated equations.
  • Always include the constant of integration to represent the general solution.
  • Practice with diverse examples to familiarize yourself with different methods.

Summary of Key Points

Solving first order differential equations is a vital skill in mathematical analysis and applied sciences. The primary methods—separable, linear, exact, homogeneous, and substitution techniques—cover a broad spectrum of equations you are likely to encounter. Recognizing the structure of the differential equation guides you to the most effective solution strategy. Remember to verify conditions such as exactness or homogeneity, and always include the constant of integration to capture the complete family of solutions. With consistent practice and understanding of these methods, solving first order differential equations becomes an approachable and rewarding task, opening doors to modeling and analyzing complex systems across various disciplines.

Back to blog

Leave a comment