Differential Equation - Fanyu Zhao

Key Facts

1. Properties

Shorts:

1.1 Order

The Order of derivatives is as n below.

y(n)=dn yd xn

1.2 Degree

The Power of the derivative is called Degree.

(y(n))r=(dn yd xn)r

Note that: y(0)zeroth derivative of y is y itself.

1.3 Linear - ODE

ODE is considered to be a differential equation with a degree of one. The power of any y Is one, or says r=1.

1.4 IVP & BVP

By solving the D.E., we normally get the general solution, G.S, the general solution is with constant term,C. To specify the solution, we need to plug in specific value into D.E., and calculate "C".

Initial Value Problems

In this case, the specific values are given at a certain point of "x". For example,

y(x0)=1,y(x0)=2,y(n)=10

We got value for different order of derivatives of y, at x=x0.

Boundary Value Problems

In this case, values are given at different points of "x". For example,

y(0)=1,y(1)=3,y(10)=4

2. First Order Ordinary Differential Equations ODE

General form:

y=f(x,y)
2.1 Missing One Variable
Case 1. y is missing
y=f(x)dydx=f(x)dy=f(x) dxdy=f(x)dxso,  y=f(x)dx+C
Case 2. x is missing
y=f(y)dydx=f(y)1f(y)dy=dx1f(y)dy=dxso,  x=1f(y)dy+c
2.2 Variable Separable
y=g(x)h(y)

"x" and "y" are separable, we can follow the same steps .

dydx=g(x)h(y)1h(y)dy=g(x) dx1h(y)dy=g(x) dx1h(y)dy=g(x) dx+C

 

Rationale: If "x" and "y" are separable, we move all "y" and "dy" into one side, and all "x" and "dx" into the other side.

2.3 Linear Equations
y+P(x)y=Q(x)

How to solve it? We left multiply an Integrating Factor, R(x).

R(x)[ y+P(x)y ]=ddx(R(x)y)=R(x)Q(x)

To find the I.F., R(x) needs to satisfy,

ddx(R(x)y)=R(x)y+R(x)y=R(x)P(x)y+R(x)y

So, we need

R(x)=R(x)P(x)

Therefore, our problem becomes,

ddx(R(x)y)=R(x)Q(x)ddx(R(x)y) dx=R(x)Q(x) dxR(x)y=R(x)Q(x) dx+C

The satisfied I.F., is,

R(x)=eP(x) dx=exp(P(x) dx)

The takeaway is, by left multiplying R(x)=exp(P(x) dx) From both side of the equation, we could then easily solve the D.E., and the answer is the following,

R(x)y=R(x)Q(x) dx+Cy=R(x)Q(x) dxR(x)+CR(x)

3 Second Order ODE

General form:

y=f(x,y,y)

P.S. we may find later that the number of arbitrary constant "C" in the solution is equal to the highest order of derivatives.

3.1 Simplest Cases
Case 1. y,y are missing
y=f(x)

Easiest one, integrate it twice.

Case 2. Only "y" is missing
y=f(x,y)

All "y"s in this equation are in derivatives of none zero.

We try to reduce the order of derivatives by letting P=y, so dPdx=y.

P=f(x,P)

, then the problem would become the first order one. Integrate P later to get the G.S. for this D.E.

Case 3. y and x are missing
y=f(y)

Similarly, we try to reduce the order of derivatives, by assume p=y.

y=d2ydx2=dpdx=dpdydydx=dpdyp=f(y)
Case 4. "x" is missing
y=f(y,y)

We do the same, by replacing p=y,

d2ydx2=PdPdy=f(P,y)

The problem would then become the first order O.D.E.

4. Linear ODE

General form,

an(x)y(n)+an1(x)y(n1)+...+a1(x)y+a0(x)y=g(x)

We then transform the equation,

L - Linear Differential Operator of Order "n"

We apply the notation:

Dddx,Drdrdxr,so Drydrydxr
L=anDn+an1Dn1+...+a1D+a0L y=g

G.S. of Ly=g is given by

y=yc+yp

, where yc - Complimentary Function; & yp - Particular Integral (or Particular Solution).

yc  Ly=0yp  Ly=g}G.S.y=yc+yp
4.1 Homogenous - Auxiliary Equation A.E.
L y=0=g

g(x)=0,x,L y=0 is said to be homogeneous.

Homogeneity:{L(y1+y2)=L(y1)+L(y2)ypL(cy)=cL(y)

For example, for a second order D.E.

Ly=ad2ydx2+bdydx+cy=0

We assume the solution is in the form of y=eλx, and plug it back to our D.E.

Leλx=(aD2+bD+c)eλx

Hence,

λ:aλ2+bλ+c=0

λs would be the solution of D.E. λ=b±b24ac2a

Clearly, b24ac would affects the form of solutions.

Therefore, in a "n" order case, we would apply the similar reasoning.

y=eλx(a1+a2x+a3x2+...+arxr1)

For example,

λ65λ4=0λ4(λ25)=0

So, roots are: 0, 0, 0, 0, (for the quadratic lambda), ±5 For the second part. The G.S. is then,

y=Ae5x+Be5x+(C+Dx+Ex2+Fx3)e0x
4.2 Non-homogeneous Case

G.S. is

y=yc+yp

The first term of the RHS is the G.E. in homogeneous case while denote g(x)=0,so Ly=0.

The second term of RHS is the specific solution of our D.E. The way of calculating it is called "Guesswork".

There are three cases we may encounter:

  1. Polynomial in x, g(x)=p0+p1x+...+pmxm
  2. Exponential, g(x)=Cekx. P.S. "k" is not a root of A.E., otherwise g(x)=Cxekx.
  3. Trigonometric terms, g(x) Has a form sin ax, or cos ax.

For example, g(x)=e^x

y+3+2y=3e5xyc=Aex+Be2x.

We guess the solution Ly=g is yp=Ce5x and solve for the unknown "C". (Why we assume in this form is that e5x in the original D.E. is super difficult to get, so we assume it here.) We plug yp back to our D.E. and find "C".

C(52+15+2)e5x=3e5xC=114

Our G.E. of this problem would be,

y=yc+yp=Aex+Be2x+114e5x

For example, g(x)=x^2

y+3y+2y=x2

G.S., yc=Aex+Be2x

Assume yp=p0+p1x+p2x2, substitute into D.E. could solve that p0=7/4,p1=3/2,p2=1/2

So our G.S. would be,

y=Aex+Be2x+7432x+12x2

Failure Case Example,

y5y+6y=e2x

yc=Ae2x+Be3x, and then we are trying to find yp by assuming yp=Ce2x Would be impossible, because answers are folded. Let's see,

Ce2x(410+6)=e2x

Impossible to get a solution. We need to assume yp=Cxekx Instead.

5. Linear ODE with Variable Coefficients - Euler Equation

Cauchy-Euler Equation form:

Ly=ax2d2ydx2+βxdydx+cy=g(x)

Each derivative terms is consisted with the derivatives multiplied by the same power "x", where the order of derivatives is same as the power of "x".

G.S. is y=yc+yp as well.

5.1 Homogeneous Part

yc:

Denote g(x)=0 firstly, and assume y=xλ. Plug it back to the homogeneous D.E.

ax2λλ(λ1)xλ2+βλxλ+cxλ=0(aλ2+(βa)λ+c)xλ=0

Since xλ0, we need aλ2+(βa)λ+c=0, to be the root.

5.2 Reduce to Constant Coefficient

Simplify the problem,

x2yxy+y=ln x

Let x=et, so t=ln x, by the chain rule,

dydx=dydtdtdx=1xdydtd2dx2=ddx(dydx)=ddx(1xdydt)=1xddxdydt1x2dydt=1x2d2ydt21x2dydt

The Euler Equation would then become,

y2y+y=t

By Fanyu Zhao