Chapter 2 Generation of Some Differential Equations
2.1 Single Independent Variables
Elimate the arbitrary constants, examples
-
y=Acosx+Bsinx
| |
|
=y''=-Acosx-Bsinx=-(Acosx+Bsinx) |
This is a second order differential (linear) as the highest derivative is of second order.
We can say that y=Acosx+Bsinx is the general solution of d2y/dx2+y=0 . It contains two arbitary constants. The general solution has two linearly independent functions.
- y=Aex , here A is our constant
This is a first order differential equation as it only has one arbitary constant. The general solution is y=Aex .
- y3=3A(x+A)
This equation is first order as its in dy/dx is the highest derivative. However its said to be of second degree as the dy/dx is squared.
2.2 Several Independent Variables
u(x,y) or u(x,y,z,t)
This will lead to partial derivatives. Again we elimate the arbitrary constants, examples
-
u(x,y)=ax+by
This is a first order linear equation.
- u=f(y/x)
- u=f(x-ct)+g(x+ct)
2.3 General Solution of Linear Partial Differential Equations that Contain Two Arbitary Independent Constants
An example:
This becomes an integral with y
Then we integrate again:
Þ u(x,y)=yf(x)+g(x)
We now apply boundrary conditions to fix f(x) and g(x) to solve ¶2u/¶ y2=0 . This will be subjected to the boundaries y=0 , u=sinx to y=1 , u=1 .
u=yf(x)+g(x)
at y=0 ® u(x,0)=0f(x)+g(x)=sinx
at y=1 ® u(x,1)=1f(x)+sinx=1
f(x)=1-sinx
u(x,y)=y(1-sinx)+sinx=y+(1-y)sinx
2.4 Testng For Linear Independence
If the functions f1(x) , f2(x) , etc are linearly independent then it is possible to form a linear combination of
a1f1(x)+a2f2(x)+a3f3(x)+... =0
where an are constants for all values of x
We differentiate the above equation several times (we differentiate it the same amount there are different functions). Therefore:
a1f1(x)+a2f2(x)+a3f3(x)+... =0
Þ a1f1'(x)+a2f2'(x)+a3f3'(x)+... =0
Þ a1f1''(x)+a2f2''(x)+a3f3''(x)+... =0
etc ... etc ... , for the number of functions present.
For this set of simultaneous equations to have non-trivial solutions (simultaneous equations in a1 , a2 , a3 , ... )
|
|
½ ½ ½ ½ ½ ½ ½ ½ |
|
| f1(x) |
f2(x) |
f3(x) |
... |
| f1'(x) |
f2'(x) |
f3'(x) |
... |
| f1''(x) |
f2''(x) |
f3''(x) |
... |
· · · |
· · · |
· · · |
· · · |
| |
|
|
½ ½ ½ ½ ½ ½ ½ ½ |
This determinant is known as the Wronskian Determinant
reminder why ||=0
a(aX+bY)=0
b(cX+aY)=0
Þ (ad-bc)X=0
ad-bc=0 (or X=0 (not interesting))
For linear independence the Wronskian Determinant is not equal to zero.
2.4.1 an example
f1(x)=sinx
f2(x)=cosx
therefore
|
|
½ ½ ½ ½ |
|
| f1(x) |
f2(x) |
| f1'(x) |
f2'(x) |
| |
|
|
½ ½ ½ ½ |
=
|
½ ½ ½ ½ |
|
|
|
½ ½ ½ ½ |
<determinant>=-sin2x-cos2x=-1¹ 0
Therefore we can say that sinx and cosx are linearly independent.
2.4.2 another example
f1(x)=cos22x
f2(x)=sin22x
f3(x)=4
Check that the Wronskian Determinant equals zero, by inspection:
4f1(x)+4f2(x)-1× 4=0
2.5 Notation
-
ordinary differential equations are in the general form (when y=y(x) ):
| F |
æ ç ç è |
x,y, |
|
, |
|
,... |
ö ÷ ÷ ø |
=0 |
- partial differential equations
u=u(x,y) (could be u(x,y,z,t))
general form:
| F |
æ ç ç è |
u, |
|
, |
|
, |
|
, |
|
,... ,x,y |
ö ÷ ÷ ø |
=0 |
The order of a partial (and ordinary) differential equations is the order of the highest derivatives it contains:
The degree is the power to which the highest derivative is raised
| |
é ê ê ë |
|
ù ú ú û |
|
+ |
|
=0® second order, third degree |
2.5.1 Linear Equations
u and its derivatives occur only to the first degree, its not linear if you get u2 or u¶ u/¶ x , etc.
2.5.2 Homogeneous Equations
Every term in the equation contains u or its derivatives. In non-homegeonous there are terms containing only independent variables, for example x2y .
There are some very important properties of linear equations (this will be demostrated with ordinary differential equations), for example if y1(x) and y2(x) are solutions of homogenous equations then y=c1y1(x)+c2y2(x) is also a solution
Also there are more solutions of the linear homogenous differential equation:
a2(x)y1''+a1(x)y1'+a0(x)y1=0
a2(x)y2''+a1(x)y2'+a0(x)y2=0
c1(equation 1)+c2(equation 2)
| Þ a2(x) |
|
(c1y1+c2y2)+a1(x) |
|
(c1y1+c2y2)+a0(x)(c1y1+cy2)=0 |
y(x)=c1y1(x)+c2y2(x)
2.6 Solutions of Second Order Linear Homogenous Equations with Constant Coeficients
where a , b and c are constants.
For a second order lineat equation we expect to find two linearly independent solutions. By looking at the above equation we recognise the solution is o the form
y=emx
where m is a constant yet to be determined.
We substitute the above into the differential equation
am2emx+bmemx+cemx=0
(am2+bm+c)emx=0
This must hold for all x
am2+bm+c=0
this is the characterstic equation which we now solve for m
Note we have three cases here for a solution (how we obtained the general solutions can be reviewed in the subsections of this section)
-
b2>4ac :
- we have two real values for m and so our general solution is
- b2<4ac :
- the solutions are complex conjugates and so our general solution is
| y=e |
|
(C1cos(b x)+C2sin(b x)) |
- b2=4ac :
- we have only one solution
y=Aemx+Bxemx
However just having the general solution is solving only half the problem, for the complete specification of a problem we need boundary conditions placed upon the differential equation. These are know as boundary value problems.
We need the boundary conditions to fix the arbitrary constants, in this case we have two arbitrary constants as we are dealing with second order linear constant coefficients. We can specify y(x1) and y(x2) , what y is at x1 and x2 .
We could specify y(x1), dy/dx|x2 , and in this case we could then have x1=x2 .
We could also specify
For example:
y=emx® m2+4m+3=0
m1=-3, m2=-1
so our general solution is
y=C1e-3x+C2e-x
now if we use our boundary conditions
therefore
y(0)=C1+C2=4
| |
|
=-3C1e-3x-C2e-xÞ |
|
|0=-3C1-C2=-2 |
we now have the two simulateous equations
C1+C2=4
-3C1-C2=-2
C1=-1, C2=5
so the specific solution is
y(x)=-e-3x+5e-x
2.6.1 Two Real Solutions
First we check for linear independence by using the Wronskian Determinant
|
|
½ ½ ½ ½ |
|
|
|
½ ½ ½ ½ |
=
|
½ ½ ½ ½ ½ ½ |
|
|
|
½ ½ ½ ½ ½ ½ |
| ||=e |
|
m2e |
|
-e |
|
m1e |
|
=(m2-m1)e |
|
e |
|
¹ 0 |
this is true as long as m1¹ m2 .
If m1 and m2 are real the general solution is
y=c1y1+c2y2
where c1 and c2 are any arbitray constants.
2.6.2 Complex Conjugate Solutions
m1=a +b , m2=a -b
we can construct the solution
| y=c1e |
|
+c2e |
|
=e |
|
é ë |
c1e |
|
+c2e |
|
ù û |
however as
we get the solution
| y=e |
|
(c1cos(b x)+ c1sin(b x)+c2cos(b x)- c2sin(b x)) |
| y=e |
|
((c1+c2)cos(b x)+ (c1-c2)sin(b x)) |
if we group together the constants we get
| y=e |
|
(C1cos(b x)+C2sin(b x)) |
2.6.3 Single Solution
m1=m2 [=m]
we know that the following is a solution
we now assume the second solution is of the form of the first solution multiplied by a function yet to be determined, for example
y=f(x)emx
then
| |
|
=f''emx+f'memx+f'memx+m2emx=(f''+2f'm+fm2)emx |
now this is substituted into the differential equation
(af''+2af'm+am2f+bf'+bmf+cf)emx=0
[af''+(2am+b)f'+(am2+bm+c)f]emx=0
however we know that (2am+b)=0 and that (am2+bm+c)=0 from the characterestic equation.
Þ af''emx=0
if this answer is to be true for all x it required f''(x)=0
f'=A
f(x)=(Ax+B)
where A and B are constants
for example
we can take y1=emx and y2=xemx as y1 is already present in y2 .
we now check the Wronskian Determinant for linear indepenence
||=(emx(xmemx+emx))-(xemxmemx)=emx¹ 0
so our general solution is
y=Aemx+Bxemx