Differential Equations/First Order Linear 1

From testwiki
Revision as of 03:36, 27 July 2007 by 70.233.139.119 (talk) (Existance of Solutions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
From Differential Equations
First Order Differential Equations

What is a linear first order equation?

A linear first order equation is an equation in the form

dydx+P(x)y=Q(x).

Linear first order equations are important because they show up frequently in nature and physics, and can be solved by a fairly straight forward method.

Solving First Order Linear Equations

First order linear equation can be solved by making them into exact DEs, as seen here.

Step-by-Step Solution

It is not necessary to derive the method of obtaining the integrating factor every time, as it is always the same. Following the steps below is much easier and less prone to error.

To solve the equation

dydx+P(x)y=Q(x),
  1. Calculate the integrating factor, eP(x)dx. Drop the constant of integration.
  2. Multiply the differential equation by the integrating factor.
  3. Due to the manipulation leading to (3) on the page Exact DEs, the LHS multiplied by the integrating factor is equivalent to
    ddxeP(x)dxy.
  4. Integrate both sides with respect to x to get
    yeP(x)dx=QeP(x)dxdx+C
  5. Solve for y by dividing out the x factors.

Example 1: P and Q are Constant

Let's say we have the equation
dydx+my=n
where n and m are constants. Solve this for y.
Step 1: Find the integrating factor, eP(x)dx
mdx=mx+C
eP(x)dx=Cemx
Letting C=1, we get emx.
Step 2: Multiply through by integrating factor.
emxdydx+emxmy=nemx
Step 3: Recognize that the left hand is ddxeP(x)dxy, giving
ddxemxy=nemx
Step 4: Integrate both sides w.r.t.x.
(ddxemxy)dx=nemxdx
emxy=nmemx+C
Step 5: Solve for y
y=nm+Cemx

Example 2: P and Q are x

Take the equation
dydx+xy=x
Solve for y.
Step 1: Find eP(x)dx
x=12x2+C
eP(x)dx=Ce12x2
Letting C=1, we get e12x2
Step 2: Multiply through
e12x2dydx+e12x2xy=e12x2x
Step 3: Recognize that the left hand is ddxeP(x)dxy, giving
ddxe12x2y=e12x2x
Step 4: Integrate
(ddxe12x2y)dx=xe12x2dx
e12x2y=e12x2+C
Step 5: Solve for y
y=1+Ce12x2

Example 3: P and Q are Unrelated

Take the equation
dydx+1xy=x
Solve for y.
Step 1: Find eP(x)dx
1x=ln(x)+C
eP(x)dx=Celn(x)=Cx
Letting C=1, we get x.
Step 2: Multiply through
xdydx+y=x2
Step 3: Recognize that the left hand is ddxeP(x)dxy
ddxxy=x2
Step 4: Integrate both sides w.r.t.x.
(ddxxy)dx=x2dx
xy=13x3+C
Step 5: Solve for y
y=13x2+Cx

Making Linear Equations from Non-Linear Equations

Sometimes a non-linear equation, which is not solvable like this, can be made linear, and more easily solvable, by applying a substitution.

Example

ydydx+xy2=5x
Let's make the following substitution:
v=y2
dvdx=2ydydx
Plugging in, we get
12dvdx+xv=5x
dvdx+2xv=10x
We can then solve as a linear equation in v, using the step-by-step method above:
Step 1: Find the integrating factor:
eP(x)dx
e2xdx=ex2+C
eP(x)dx=Cex2
Letting C=1 for convenience, we get ex2 as our integrating factor.
Step 2: Multiply through
ex2dvdx+ex2xv=10ex2x
Step 3: Recognize that the left hand is ddxeP(x)dxv
ddxex2v=10ex2x
Step 4: Integrate both sides w.r.t.x.
(ddxex2v)dx=10ex2xdx
ex2v=5ex2+C
Step 5: Solve for v.
v=5+Cex2
Now that we have v, solve for y.
v=y2
y2=5+Cex2

Existence of Solutions

Just like with separable equations, not all initial value problems for linear equations have a solution.

Theorem 1: If P(x) and Q(x) are continuous on an interval I containing the point x0, then the initial value problem has a single unique solution.

This is different from separable equations where the conditions for uniqueness and existance are different - with linear equations, if it exists, it will be unique.