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)=exsinxy(x)=ex+cosx+C

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


Exercise 2.2

x2y(x)+2xy(x)=exsinx

Let g(x)=x2, then we have g(x)y(x)+g(x)y(x)=exsinx

Note the product rule on the LHS: now we have

ddx(x2y)=exsinxx2y=ex+cosx+Cy=exx2+cosxx2+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)tanx=sinxcosxμ(x)=exp((sinxcosxdx)=cosxcosxy(x)sinxy(x)=cos2xsinxddx(cosxy(x))=cos2xsinxcosxy(x)=13cos3x+Cy(x)=13cos2x+Csecx

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 xy2y=x given the initial condition y(1)=0

Rewrite in form y2xy=1x to find the integrating factor μ(x)=x2.

ddx(yx2)=x52yx2=23x32+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+t1dx)=et+lntddt(et+lnty(t))=et+lnt=tettety(t)=tetet+Cy(t)=1t1+Ctet

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

y(t)=1t1+2tet