Forgotten Password?

Or login with:

• http://facebook.com/
• https://www.google.com/accounts/o8/id
• https://me.yahoo.com

# First Order

First Order Differential Equations with worked examples

## Examples With Separable Variables Differential Equations

This article presents some working examples with separable differential equations.

Definition

Separable Differential Equations are differential equations which respect one of the following forms :
• $\inline&space;\displaystyle&space;\frac{dy}{dx}&space;=&space;F(x,y)$ where F is a two variable function,also continuous.
• $\inline&space;f(y)\;dy=g(x)\;dx$, where f and g are two real continuous functions.

### Rational Functions

A rational function $\inline&space;f&space;:\mathbb{R}\to\mathbb{R}$ is a real function respecting $\inline&space;f(x)=\frac{P(x)}{Q(x)}$ where $\inline&space;P,Q$ are polynomials.
Example:
##### Example - Simple Differential Equation
Problem
Solve:
$\frac{d^2y}{dx^2}&space;=&space;2&space;+&space;\frac{1}{x}$

Workings
As the equation is of first order, integrate the function twice, i.e.
$\frac{dy}{dx}&space;=&space;2x&space;+&space;ln\,x&space;+&space;C$
and
$y&space;=&space;x^2&space;+&space;x\,ln\,x&space;+&space;Cx&space;+&space;K$
Solution
$y&space;=&space;x^2&space;+&space;x\,ln\,x&space;+&space;Cx&space;+&space;K$

### Trigonometric Functions

A trigonometric function is a real function $\inline&space;f:\mathbb{R}&space;\to\mathbb{R}$ where $\inline&space;f(x)$ contains one or more of the trigonometric functions :
• $\inline&space;Sin(x),Cos(x),Tan(x),Cotan(x)$
• $\inline&space;Arcsine(x),Arccos(x),Arctan(x),Arccotan(x)$
Example:
##### Example - Simple Cosine
Problem
$\frac{dy}{dx}=\frac{1}{cos^2&space;\tfrac{1}{2}x}$

Workings
This is the same as
$y=\int&space;\frac{1}{\cos^2&space;\tfrac{1}{2}x}dx$

which we integrate in the normal way to yield
$y=2\tan&space;\tfrac{1}{2}&space;x&space;+&space;C$
Solution
$y=2\tan&space;\tfrac{1}{2}&space;x&space;+&space;C$

### Physics Examples

Example:
##### Example - Potential example
Problem
If a and b are the radii of concentric spherical conductors at potentials of $\inline&space;V_1$ respectively, then V is the potential at a distance r from the centre. Find the value of V if:
$\frac{d}{dr}\left(r^2&space;\frac{dV}{dr}&space;\right)=0}$
and $\inline&space;V=V_1$ at r=a and $\inline&space;V=0$ at r=b

Workings
$\frac{d}{dr}\left(r^2\frac{dV}{dr}&space;\right)=0$

$\therefore\;\;\;\;\;\;r^2\frac{dV}{dr}&space;\right)=A$

$\frac{dV}{A}=\frac{dr}{r^2}$

$\therefore\;\;\;\;\;\;\frac{V}{A}=-\frac{1}{r}\;+\;B$

Substituting in the given values for V and r
$\frac{V_1}{A}=-\frac{1}{a}+B$
and
$\frac{0}{A}=-\frac{1}{b}+B$
$\therefore\;\;\;\;\;\;B=\frac{1}{b}$
$\therefore\;\;\;\;\;\;\frac{V_1}{A}=-\frac{1}{a}+\frac{1}{b}=-\frac{b-a}{ab}$
Thus
$A=-\frac{abV_1}{b-a}$
Solution
$V=\left(\frac{1}{r}-\frac{1}{b}&space;\right)\left(\frac{abV_1}{b-a}&space;\right)$

## Linear Type Of Differential Equation

Equations of the type
$\frac{dy}{dx}&space;+&space;Py&space;=&space;Q$

Where P and Q are function of x ( but not of y) are said to be linear of the first order
Example:
##### Example - Rational equation
Problem
$\frac{dy}{dx}&space;+&space;\frac{1}{x}\times&space;y&space;=&space;x^2$
Workings
If each side of te equation is multiplied by x the equation becomes:-

$x\frac{dy}{dx}&space;+&space;&space;y&space;=&space;x^3$
i.e
$\frac{d}{dx}(xy)&space;=&space;x^3$
Hence integrating
$\;x\,y&space;=&space;\frac{1}{4}x^4&space;+&space;c$

This equation has been solved by using the obvious integrating factor x. It is possible to find a more general solution by using R as and integrating factor.

Consider the following equation :
$R\frac{dy}{dx}&space;+&space;R\,P\,y&space;=&space;R\,Q$

By Inspection the left hand side of this equation must reduce to (Ry)
$\therefore\;\;\;\;\;\;R\frac{dy}{dx}&space;+&space;RP\,y&space;=&space;\frac{d}{dx}(Ry)&space;=&space;R\frac{dy}{dx}&space;+&space;y\frac{dR}{dx}$
This gives
$RPy&space;=&space;y\,\frac{dR}{dx}$

$\therefore\;\;\;\;\;\;P\,dx&space;=&space;\frac{dR}{R}$
Thus
$\int&space;P\,dx&space;=&space;\ln\,R$

$\therefore\;\;\;\;\;\;R&space;=&space;e^{\int&space;P\,dx}$

This gives the rule that to solve $\inline&space;\frac{dy}{dx}&space;+&space;Py&space;=&space;Q$ multiply both sides by an integrating factor of:-

$e^{\int&space;P\,dx}$
Solution
Hence the Method of solving this type of equation is :

• Reduce the equation into the form
$\mathbf{\frac{dy}{dx}&space;+&space;Py&space;=&space;Q}$
• Multiply through by the Integrating Factor:-
$\mathbf{e^{\int&space;P\,dx}}$
• The equation becomes :-
$\mathbf{\frac{d}{dx}(Ry)&space;=&space;Q}$

## Equations That Can Be Reduced To The Linear Form

A linear form in 2 variables $\inline&space;x_1,x_2$ is given by $\inline&space;f(x_1,x_2)=a_1x_1+a_2x_2$ where $\inline&space;a_i\in\mathhf{R}$
Analogous for n variables .

Example:
##### Example - Simple equations
Problem
Consider the equation:

$x\;y\;-\frac{dy}{dx}&space;=&space;y^3\;e^{-\,x^2}$
Workings

Divide through by $\inline&space;&space;y^3$

$x\;\frac{1}{y^2}\;-\,\frac{1}{y^3}\frac{dy}{dx}&space;=&space;e^{-\,x^2}$

$x\;\frac{1}{y^2}\;-\,\frac{1}{2}\frac{d}{dx}\left(\frac{1}{y^2}&space;\right)&space;=&space;e^{-\,x^2}$

Putting $\inline&space;&space;\frac{1}{y}&space;=&space;z$

$2\,xz&space;+&space;\frac{dz}{dx}&space;=&space;2\,e^{-\,x^2}$

Solution

Hence
$z&space;=&space;(2x&space;+&space;c)\,e^{-x^2}$
Therefore
$\frac{1}{y^2}&space;=&space;(2x&space;+&space;C)\,e^{-x^2}$
Or
$y&space;=&space;\pm&space;\frac{e^{\frac{1}{2}x^2}}{\sqrt{(2x&space;+&space;C)}}$

This example is a particular case of The Bernoulli Equation

## General Solution Of The Bernoulli Equation

Bernoulli equations have an important property :
• they are nonlinear differential equations with known exact solutions.
This section is presenting the Bernoulli Equation.

$\inline&space;\mathbf{\frac{dy}{dx}&space;+&space;Py&space;=&space;Q\;y^n}$ $\inline&space;P$ and $\inline&space;Q$ are functions of x

This can be reduced to a linear form by putting $\inline&space;\displaystyle&space;z&space;=&space;\frac{1}{y^{(n&space;-&space;1)}}$ Therefore
$\frac{dz}{dx}\;=&space;-&space;\frac{(n&space;-&space;1)}{y^n}\;\frac{dy}{dx}$

The original equation can be re-written as:

$\frac{1}{y^n}\;\frac{dy}{dx}&space;+&space;P\;\frac{1}{y^{(n&space;-&space;1)}}&space;=&space;Q$

$\frac{1}{(n&space;-&space;1)}\;\frac{dz}{dx}&space;+&space;Pz&space;=&space;Q$

## Homogeneous Equations

Any equation which can be put into the form:
A homogeneous polynomial is a polynomial whose monomials with nonzero coefficients all have the same total degree. For example : $\inline&space;x^7+x^4y^3+x^3y^4+y^7$ is homogenous.
$\mathbf{\frac{dy}{dx}&space;=&space;f\left(\frac{y}{x}&space;\right)}$
is said to be Homogeneous. To test whether a function of x and y can be written in the form of the right hand side, substitute for $\inline&space;y=vx$ . If the result is in the form $\inline&space;f(v)$, i.e. all the x's cancel, then the test is satisfied and the equation is homogeneous.

Example:
##### Example - Testing a function is homogeneous
Problem
Is the follow function homogeneous:
$\frac{dy}{dx}&space;=&space;\frac{x^2&space;+&space;y^2}{2x^2}$
Workings
Substitute for y=vx,
$\frac{dy}{dx}&space;=&space;\frac{x^2&space;+&space;(vx)^2}{2x^2}$
or
$\frac{dy}{dx}&space;=&space;\frac{x^2&space;+&space;v^2&space;x^2}{2x^2}$
or
$\frac{dy}{dx}&space;=&space;\frac{1&space;+&space;v^2}{2}$

As all the x have cancelled out, the test is satisfied.
Solution
Function is homogeous

## The Method Of Solution For Homogeneous Equations

Substitute $\inline&space;y&space;=&space;vx$ in both sides of the equation

$\frac{dy}{dx}\;\;becomes\;\;\;\left(v&space;+&space;x\;\frac{dv}{dx}&space;\right)$

Note. If y is a function of x then so is v

Thus the equatican be re-written as:

$v&space;+&space;x\;\frac{dv}{dx}&space;=&space;\frac{1&space;+&space;v^2}{2}$

Re-writing and Separating the variables:

$\frac{2\;dv}{(v&space;-&space;1)^2}&space;=&space;\frac{dx}{x}$

Integrating
$\frac{-&space;2}{(v&space;-&space;1)}&space;=&space;ln\,x&space;+&space;C$

But
$\frac{-&space;2}{(v&space;-&space;1)}&space;=&space;&space;\frac{2x}{x&space;-&space;y}\;\;\;\;\;\left(since&space;\;\;v&space;=&space;\frac{y}{x}&space;\right)$
$\therefore\;\;\;\;\;\;2x&space;=&space;(x&space;-&space;y)\;(ln\,x&space;+&space;C)$

Example:
##### Example - Homogenous
Problem
$(x&space;+&space;y)dy&space;+&space;(x&space;-&space;y)dx&space;=&space;0$
Workings
Rearranging
$\frac{dy}{dx}&space;=&space;\frac{y&space;-&space;x}{y&space;+&space;x}$

Putting y = vx

$v&space;+&space;x\;\frac{dv}{dx}&space;=&space;\frac{v&space;-&space;1}{v&space;+&space;1}$
i.e.
$\frac{dv}{dx}&space;=&space;\frac{v&space;-&space;1}{v&space;+&space;1}&space;-&space;v\;=&space;-&space;\frac{v^2&space;+&space;1}{v&space;+&space;1}$

$\frac{-&space;v}{v^2&space;+&space;1}dv&space;-&space;\frac{dv}{v^2&space;+&space;1}&space;=&space;\frac{dx}{x}$

Integrating

$-&space;\frac{1}{2}\;ln(v^2&space;+&space;1)&space;-&space;tan^{-1}v&space;=&space;ln\,x&space;+&space;C$
Therefore
$2\,ln\,x&space;+&space;ln\,(v^2&space;+&space;1)&space;+&space;2\;tan^{-1}v&space;+&space;2C&space;=&space;0$
Therefore
$ln\,x^2(v^2&space;+&space;1)&space;+&space;2\;tan^{-1}v&space;+&space;2C&space;=&space;0$
Solution
Substituting for v Therefore
$ln\,(y^2&space;+&space;x^2)&space;+&space;2\;tan^{-1}\frac{y}{x}&space;+&space;2C&space;=&space;0$

## The Exceptional Case Of Homogeneous Equations

If the straight lines are parallel there is no finite point of intersection and the method of solving such equations is illustrated by the following example.
$\frac{dy}{dx}&space;=&space;\frac{3y&space;-&space;4x&space;-&space;2}{3y&space;-&space;4x&space;-&space;3}$

Put Z = 3y - 4x and thus $\inline&space;\displaystyle&space;\frac{dZ}{dx}&space;=&space;3\frac{dy}{dx}&space;-&space;4$

The equation can now be written as:
$\frac{1}{3}\left(\frac{dZ}{dx}&space;+&space;4&space;\right)&space;=&space;\frac{Z&space;-&space;2}{Z&space;-&space;3}$
$\therefore\;\;\;\;\;\frac{dZ}{dx}&space;=&space;\frac{3Z&space;-&space;6}{Z&space;-&space;3}&space;-&space;4&space;=&space;\frac{-&space;Z&space;+&space;6}{Z&space;-&space;3}$
$\therefore\;\;\;\;\;\;dx&space;=&space;-\left(\frac{Z&space;-&space;3}{Z&space;-&space;6}&space;\right)dZ&space;=&space;\frac{-Z&space;-&space;6&space;+&space;3}{Z&space;-&space;6}\;dZ&space;=&space;\left(-1\;-\frac{3}{Z&space;-&space;6}&space;\right)dZ$

Integrating
$X&space;=&space;-Z\;-3\,ln\,(Z&space;-&space;6)&space;+&space;K$

Replacing Z the solution to the differential equation is :
$3\,ln(3y&space;-&space;4x&space;-&space;6)&space;=&space;(3x&space;-&space;3y)&space;+&space;K$

## Exact Equations

A form $\inline&space;u$ is said to be exact in a region $\inline&space;R$ if there is a function $\inline&space;f$ such as $\inline&space;df=u$.
The expression
$y\,dx&space;+&space;x\,dy$
is an exact differential.
Thus the equation $\inline&space;y\,dx&space;+&space;x\,dy&space;=&space;0$ giving that $\inline&space;d(yx)&space;=&space;0$ i.e. $\inline&space;(yx)=C$ is called an exact Equation.

Example:
##### Example - Exact differential
Problem
Solve
$\tan&space;y\;dx&space;+&space;\tan&space;x\;dy&space;=&space;0$

Workings
This equation is not exact as it stands but if it is multiplied through by $\inline&space;\cos&space;x&space;\cos&space;y$ it becomes:
$\sin&space;y&space;\cos&space;x\;dx&space;+&space;\sin&space;x&space;\cos&space;y\;dy&space;=&space;0$
Solution
The solution $\inline&space;\displaystyle&space;sin\,y\;sin\,x&space;=&space;Constant$

Last Modified: 31 Dec 11 @ 00:40     Page Rendered: 2022-03-14 15:51:46