MATH 308 Lecture 3

From Notes
Jump to navigation Jump to search

« previous | Friday, January 18, 2013 | next »

Lecture Notes


First Order ODE

Linear

Exercise 1

y′(x)=ex−sin⁡xy(x)=ex+cosx+C

"easy case" differential equation: solve for derivative and calculate the antiderivative.


Exercise 2.2

x2y′(x)+2xy(x)=ex−sin⁡x

Let g(x)=x2, then we have g(x)y′(x)+g′(x)y(x)=ex−sin⁡x

Note the product rule on the LHS: now we have

ddx(x2y)=ex−sin⁡xx2y=ex+cos⁡x+Cy=exx2+cos⁡xx2+Cx2

Exercise 2.2

Note: ddx(exy(x))=ex(y′(x)+y(x))

y′(x)+y(x)=1+exexy′(x)+exy(x)=ex+e2xy(x)=1+ex2+Cex

Exercise 3

y′(x)−y(x)tan⁡x=sin⁡xcos⁡xμ(x)=exp⁡((∫−sin⁡xcos⁡xdx)=cos⁡xcos⁡xy′(x)−sin⁡xy(x)=cos2xsin⁡xddx(cos⁡xy(x))=cos2xsin⁡xcos⁡xy(x)=13cos3x+Cy(x)=13cos2x+Csec⁡x

Integrating Factor

For an ODE of the form

y′(x)+P(x)y(x)=g(x)

The integrating factor is defined as

μ(x)=exp⁡(∫P(x)dx)

such that the following ODE is solvable by the product rule:

μ(x)(y′(x)+P(x)y(x))=μ(x)g(x)ddx(μ(x)y(x))=μ(x)g(x)μ(x)y(x)=∫μ(x)g(x)dxy(x)=1μ(x)∫μ(x)g(x)dx

In Maple, type

> intfactor(ODE);

Exercise 4

Solve the ODE xy′−2y=x given the initial condition y(1)=0

Rewrite in form y′−2xy=1x to find the integrating factor μ(x)=x−2.

ddx(yx2)=x−52yx2=23x−32+C

At this point, we plug in our initial conditions to solve for C before finding y.

01=−23+CC=23

Now we can solve the ODE for y.

y=23x+23x2

Exercise 5

y′+t+1ty=1μ(t)=exp⁡(∫1+t−1dx)=et+ln⁡tddt(et+ln⁡ty(t))=et+ln⁡t=tettety(t)=tet−et+Cy(t)=1−t−1+Ctet

Given the inital condition y(ln⁡2)=1 (assuming t>0), the particular solution is

y(t)=1−t−1+2tet