Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture...

32
First Order Linear Differential Equations Examples First Order Linear Differential Equations A First Order Linear Differential Equation is a first order differential equation which can be put in the form dy dx + P (x )y = Q(x ) where P (x ), Q(x ) are continuous functions of x on a given interval. The above form of the equation is called the Standard Form of the equation. Example Put the following equation in standard form: x dy dx = x 2 +3y . Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Transcript of Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture...

Page 1: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Differential Equations

A First Order Linear Differential Equation is a first order differential equationwhich can be put in the form

dy

dx+ P(x)y = Q(x)

where P(x), Q(x) are continuous functions of x on a given interval.

The above form of the equation is called the Standard Form of the equation.

Example Put the following equation in standard form:

xdy

dx= x2 + 3y .

I dydx

= x + 3xy

I dydx− 3

xy = x

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 2: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Differential Equations

A First Order Linear Differential Equation is a first order differential equationwhich can be put in the form

dy

dx+ P(x)y = Q(x)

where P(x), Q(x) are continuous functions of x on a given interval.

The above form of the equation is called the Standard Form of the equation.

Example Put the following equation in standard form:

xdy

dx= x2 + 3y .

I dydx

= x + 3xy

I dydx− 3

xy = x

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 3: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Differential Equations

A First Order Linear Differential Equation is a first order differential equationwhich can be put in the form

dy

dx+ P(x)y = Q(x)

where P(x), Q(x) are continuous functions of x on a given interval.

The above form of the equation is called the Standard Form of the equation.

Example Put the following equation in standard form:

xdy

dx= x2 + 3y .

I dydx

= x + 3xy

I dydx− 3

xy = x

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 4: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations

To solve an equation of the form

dy

dx+ P(x)y = Q(x)

I We multiply the equation by a function of x called an Integrating

Factor. I (x) = eR

P(x)dx .

I I (x) has the property thatdI (x)

dx= P(x)I (x)

I Multiplying across by I (x), we get an equation of the formI (x)y ′ + I (x)P(x)y = I (x)Q(x).

I The left hand side of the above equation is the derivative of the productI (x)y . Therefore we can rewrite our equation as d [I (x)y ]

dx= I (x)Q(x).

I Integrating both sides with respect to x , we getR d [I (x)y ]dx

dx =R

I (x)Q(x)dx or I (x)y =R

I (x)Q(x)dx + C giving us asolution of the form

y =

RI (x)Q(x)dx + C

I (x)

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 5: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations

To solve an equation of the form

dy

dx+ P(x)y = Q(x)

I We multiply the equation by a function of x called an Integrating

Factor. I (x) = eR

P(x)dx .

I I (x) has the property thatdI (x)

dx= P(x)I (x)

I Multiplying across by I (x), we get an equation of the formI (x)y ′ + I (x)P(x)y = I (x)Q(x).

I The left hand side of the above equation is the derivative of the productI (x)y . Therefore we can rewrite our equation as d [I (x)y ]

dx= I (x)Q(x).

I Integrating both sides with respect to x , we getR d [I (x)y ]dx

dx =R

I (x)Q(x)dx or I (x)y =R

I (x)Q(x)dx + C giving us asolution of the form

y =

RI (x)Q(x)dx + C

I (x)

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 6: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations

To solve an equation of the form

dy

dx+ P(x)y = Q(x)

I We multiply the equation by a function of x called an Integrating

Factor. I (x) = eR

P(x)dx .

I I (x) has the property thatdI (x)

dx= P(x)I (x)

I Multiplying across by I (x), we get an equation of the formI (x)y ′ + I (x)P(x)y = I (x)Q(x).

I The left hand side of the above equation is the derivative of the productI (x)y . Therefore we can rewrite our equation as d [I (x)y ]

dx= I (x)Q(x).

I Integrating both sides with respect to x , we getR d [I (x)y ]dx

dx =R

I (x)Q(x)dx or I (x)y =R

I (x)Q(x)dx + C giving us asolution of the form

y =

RI (x)Q(x)dx + C

I (x)

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 7: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations

To solve an equation of the form

dy

dx+ P(x)y = Q(x)

I We multiply the equation by a function of x called an Integrating

Factor. I (x) = eR

P(x)dx .

I I (x) has the property thatdI (x)

dx= P(x)I (x)

I Multiplying across by I (x), we get an equation of the formI (x)y ′ + I (x)P(x)y = I (x)Q(x).

I The left hand side of the above equation is the derivative of the productI (x)y . Therefore we can rewrite our equation as d [I (x)y ]

dx= I (x)Q(x).

I Integrating both sides with respect to x , we getR d [I (x)y ]dx

dx =R

I (x)Q(x)dx or I (x)y =R

I (x)Q(x)dx + C giving us asolution of the form

y =

RI (x)Q(x)dx + C

I (x)

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 8: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations

To solve an equation of the form

dy

dx+ P(x)y = Q(x)

I We multiply the equation by a function of x called an Integrating

Factor. I (x) = eR

P(x)dx .

I I (x) has the property thatdI (x)

dx= P(x)I (x)

I Multiplying across by I (x), we get an equation of the formI (x)y ′ + I (x)P(x)y = I (x)Q(x).

I The left hand side of the above equation is the derivative of the productI (x)y . Therefore we can rewrite our equation as d [I (x)y ]

dx= I (x)Q(x).

I Integrating both sides with respect to x , we getR d [I (x)y ]dx

dx =R

I (x)Q(x)dx or I (x)y =R

I (x)Q(x)dx + C giving us asolution of the form

y =

RI (x)Q(x)dx + C

I (x)

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 9: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations

To solve an equation of the form

dy

dx+ P(x)y = Q(x)

I We multiply the equation by a function of x called an Integrating

Factor. I (x) = eR

P(x)dx .

I I (x) has the property thatdI (x)

dx= P(x)I (x)

I Multiplying across by I (x), we get an equation of the formI (x)y ′ + I (x)P(x)y = I (x)Q(x).

I The left hand side of the above equation is the derivative of the productI (x)y . Therefore we can rewrite our equation as d [I (x)y ]

dx= I (x)Q(x).

I Integrating both sides with respect to x , we getR d [I (x)y ]dx

dx =R

I (x)Q(x)dx or I (x)y =R

I (x)Q(x)dx + C giving us asolution of the form

y =

RI (x)Q(x)dx + C

I (x)

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 10: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 1

Example Solve the differential equation

xdy

dx= x2 + 3y .

I We put the equation in standard form: dydx− 3

xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term : I (x) = eR −3

xdx = e−3 ln x = (e ln x)−3 = x−3.

I Multiply the standard equation by I (x) = x−3 to get

x−3 dy

dx− 3

x4y = x−2 → d [x−3y ]

dx= x−2.

I Integrating both sides with respect to x , we getZd [x−3y ]

dxdx =

Zx−2dx → x−3y = −x−1 + C .

I Hence our solution isy = −x2 + Cx3

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 11: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 1

Example Solve the differential equation

xdy

dx= x2 + 3y .

I We put the equation in standard form: dydx− 3

xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term : I (x) = eR −3

xdx = e−3 ln x = (e ln x)−3 = x−3.

I Multiply the standard equation by I (x) = x−3 to get

x−3 dy

dx− 3

x4y = x−2 → d [x−3y ]

dx= x−2.

I Integrating both sides with respect to x , we getZd [x−3y ]

dxdx =

Zx−2dx → x−3y = −x−1 + C .

I Hence our solution isy = −x2 + Cx3

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 12: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 1

Example Solve the differential equation

xdy

dx= x2 + 3y .

I We put the equation in standard form: dydx− 3

xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term : I (x) = eR −3

xdx = e−3 ln x = (e ln x)−3 = x−3.

I Multiply the standard equation by I (x) = x−3 to get

x−3 dy

dx− 3

x4y = x−2 → d [x−3y ]

dx= x−2.

I Integrating both sides with respect to x , we getZd [x−3y ]

dxdx =

Zx−2dx → x−3y = −x−1 + C .

I Hence our solution isy = −x2 + Cx3

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 13: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 1

Example Solve the differential equation

xdy

dx= x2 + 3y .

I We put the equation in standard form: dydx− 3

xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term : I (x) = eR −3

xdx = e−3 ln x = (e ln x)−3 = x−3.

I Multiply the standard equation by I (x) = x−3 to get

x−3 dy

dx− 3

x4y = x−2 → d [x−3y ]

dx= x−2.

I Integrating both sides with respect to x , we getZd [x−3y ]

dxdx =

Zx−2dx → x−3y = −x−1 + C .

I Hence our solution isy = −x2 + Cx3

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 14: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 1

Example Solve the differential equation

xdy

dx= x2 + 3y .

I We put the equation in standard form: dydx− 3

xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term : I (x) = eR −3

xdx = e−3 ln x = (e ln x)−3 = x−3.

I Multiply the standard equation by I (x) = x−3 to get

x−3 dy

dx− 3

x4y = x−2 → d [x−3y ]

dx= x−2.

I Integrating both sides with respect to x , we getZd [x−3y ]

dxdx =

Zx−2dx → x−3y = −x−1 + C .

I Hence our solution isy = −x2 + Cx3

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 15: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 1

Example Solve the differential equation

xdy

dx= x2 + 3y .

I We put the equation in standard form: dydx− 3

xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term : I (x) = eR −3

xdx = e−3 ln x = (e ln x)−3 = x−3.

I Multiply the standard equation by I (x) = x−3 to get

x−3 dy

dx− 3

x4y = x−2 → d [x−3y ]

dx= x−2.

I Integrating both sides with respect to x , we getZd [x−3y ]

dxdx =

Zx−2dx → x−3y = −x−1 + C .

I Hence our solution isy = −x2 + Cx3

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 16: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 17: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 18: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 19: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 20: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 21: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 22: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 23: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

First Order Linear Equations: Example 2

Example Solve the initial value problem y ′ + xy = x , y(0) = −6.

I The equation is already in in standard form: dydx

+ xy = x .

I The integrating factor is given by I (x) = eR

P(x)dx , where P(x) is the

coefficient of the y term :I (x) = eR

xdx = ex2/2.

I Multiply the standard equation by I (x) = ex2/2 to get

ex2/2 dy

dx+ ex2/2xy = xex2/2 → d [ex2/2y ]

dx= xex2/2.

I Integrating both sides with respect to x , we getZd [ex2/2y ]

dxdx =

Zxex2/2dx → ex2/2y =

Zxex2/2dx + C .

I For the integral on the right, let u = x2/2, du = xdx andRxex2/2dx =

Reudu = eu = ex2/2

I We get ex2/2y = ex2/2 + C → y = 1 + Ce−x2/2.

I y(0) = −6 → 1 + C = −6 → C = −7 → y = 1− 7e−x2/2 .

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 24: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 25: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 26: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 27: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 28: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 29: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 30: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 31: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations

Page 32: Lecture 20/21 : First and second order Linear Differential ...apilking/Math10560/Lectures/Lecture 20.pdf · Annette Pilkington Lecture 20/21 : First and second order Linear Di erential

First Order Linear Differential Equations Examples

Old Exam Question: Q 13 Exam 2 Spring 2008

Solve the initial value problem y ′ = 2x−y1+x

, y(1) = 2.

I We first rewrite the equation as: y ′ = 2x1+x− y

1+x

I which allows us to rewrite it in standard form as y ′ + yx+1

= 2xx+1

.

I P(x) = 1x+1

and Q(x) = 2xx+1

.

I The integrating factor is given by

I (x) = eR

P(x)dx = e(ln |x+1|) = |x + 1| =

»x + 1 if x + 1 > 0−(x + 1) if x + 1 < 0

.

I Multiply the standard equation by I (x) = ±(x + 1) to get

(x + 1) dydx

+ y = 2x or d(x+1)ydx

= 2x .

I Integrating both sides with respect to x , we getR d [(x+1)y ]dx

dx =R

2xdx → (x + 1)y = x2 + C .

I Dividing across by (x + 1) we get y = x2+Cx+1

I y(1) = 2 → 1+C2

= 2 → C = 3 → y =x2 + 3

x + 1.

Annette Pilkington Lecture 20/21 : First and second order Linear Differential Equations