Docsity

Notes on First-Order Differential Equations: Separable Equations and Linear Equations, Study notes of Systems Engineering

Toggle sidebar
bg1
SYST 500/CSI 600 Lecture 6- Partial Notes
Ariela Sofer
Differential Equations
1. First-Order Separable Differential Equations
•A first-order differential equation is said to be separable if it has the form
dy
dx =g(x)h(y).
•If h(y)6= 0 and p(y) = 1/h(y), the equation can be written in the form
p(y)dy
dx =g(x).
Solution method employs the equation
Zp(y)dy =Zg(x)dx.
In the above we assumed that h(y)6= 0. But it is possible that constant function ydefined
by h(y) = 0 is also a solution, that was “lost” in the process above. This needs to be
checked separately
•Example: Consider the equation y0= 0.2xy. If y6= 0 the equation can be written in the
form y0/y = 0.2x. Thus
Zdy
y=Z0.2xdx ⇒log(|y|) = 0.1x2+c⇒ |y|=e0.1x2+c⇒y=Ce0.1x2
The constant function y= 0 (for every x) is also a solution since it satisfied the differential
equation. It is not a special case of the general solution for any value of c- it was lost by
the general solution process.
•Example: Consider the equation y0=y2/x. If y6= 0 the equation can be written in the
form y0/y2= (1/x). Thus
Zdy
y2=Zdx
x⇒ −1
y=lg(|x|) + C= lg(|cx|)⇒y=−(log(|cx|))−1
The constant function y= 0 (for every x) is also a solution since it satisfied the differential
equation. It is not a special case of the general solution for any value of c- it was lost by
the general solution process.
•Example: The equation y0=e2x+4ycan be written in the form e−4yy0=e2x.
Ze−4ydy =Ze2xdx ⇒ −1
4e−4y=1
2e2x+C⇒ −4y=−(log(| − 2e2x+c|))
⇒y=−1
4(log(| − 2e2x+c|)).
Given the initial value y(0) = 0, we get 0 = −1
4log | − 2 + c|, which implies that log | −
2 + c|= 0, hence −2 + c= 1, or c= 3.
1
pf3
pf4

Partial preview of the text

Download Notes on First-Order Differential Equations: Separable Equations and Linear Equations and more Study notes Systems Engineering in PDF only on Docsity!

SYST 500/CSI 600 Lecture 6- Partial Notes

Ariela Sofer

Differential Equations

  1. First-Order Separable Differential Equations
    • A first-order differential equation is said to be separable if it has the form dy dx

= g(x)h(y).

  • If h(y) 6 = 0 and p(y) = 1/h(y), the equation can be written in the form

p(y)

dy dx

= g(x).

Solution method employs the equation ∫ p(y)dy =

∫ g(x)dx.

In the above we assumed that h(y) 6 = 0. But it is possible that constant function y defined by h(y) = 0 is also a solution, that was “lost” in the process above. This needs to be checked separately

  • Example: Consider the equation y′^ = 0. 2 xy. If y 6 = 0 the equation can be written in the form y′/y = 0. 2 x. Thus ∫ (^) dy

y

∫

  1. 2 xdx ⇒ log(|y|) = 0. 1 x^2 + c ⇒ |y| = e^0.^1 x (^2) +c ⇒ y = Ce^0.^1 x 2

The constant function y = 0 (for every x) is also a solution since it satisfied the differential equation. It is not a special case of the general solution for any value of c - it was lost by the general solution process.

  • Example: Consider the equation y′^ = y^2 /x. If y 6 = 0 the equation can be written in the form y′/y^2 = (1/x). Thus ∫ (^) dy

y^2

∫ (^) dx

x

y

= lg(|x|) + C = lg(|cx|) ⇒ y = −(log(|cx|))−^1

The constant function y = 0 (for every x) is also a solution since it satisfied the differential equation. It is not a special case of the general solution for any value of c - it was lost by the general solution process.

  • Example: The equation y′^ = e^2 x+4y^ can be written in the form e−^4 yy′^ = e^2 x. ∫ e−^4 ydy =

∫ e^2 xdx ⇒ −^14 e−^4 y^ = 12 e^2 x^ + C ⇒ − 4 y = −(log(| − 2 e^2 x^ + c|))

⇒ y = −^14 (log(| − 2 e^2 x^ + c|)). Given the initial value y(0) = 0, we get 0 = −^14 log | − 2 + c|, which implies that log | − 2 + c| = 0, hence −2 + c = 1, or c = 3.

  1. First-Order Linear Equations
    • A first-order differential equation of the form

a 1 (x)

dy dx

  • a 0 (x)y = g(x).

If g(x) = 0 the equation is homogeneous, otherwise it is nonhomogeneous. Dividing this equation by a 0 (x) gives the standard form of the equation:

dy dx

  • P (x)y = f (x).

2.1. The Homogeneous Equation

  • The homogeneous equation can be written as

dy y

= −P (x)dx = 0.

Integrating gives log |y| = −

∫ P (x)dx + C

so that |y| = e−^

∫ P (x)dx+C (^) = C 1 e −

∫ P (x)dx. (^) Thus the general solution to the homogeneous equation is yc = ce−^

∫ P (x)dx.

This is a family of solutions, with different curves corresponding to different values of c.

  • Example. Consider the equation y′^ + sin(x)y = 0. Here P (x) = sin(x) and

∫ ∫ (P^ (x)dx^ = sin(x)dx = − cos(x) (the constant has already been figured into the solution expression, hence can be ignored).Then

yc = ce−^

∫ P (x)dx. (^) = cecos(x)

  • Example. Consider the equation 2xy′^ + y = 0. Dividing by 2x gives y′^ + y/ 2 x = 0. Therefore P (x) = 1/ 2 x and

∫ (P (x)dx =

∫ dx/ 2 x = log |x|/2 = log |x|^1 /^2. Then

yc = ce−^

∫ P (x)dx (^) = ce− log |x|^1 /^2 = celog |x|−^1 /^2 = c|x|− 1 / 2

note that this means that for x > 0, y = c/

x), while for x < 0, y = c/

√ (−x) (check the solution!). At x = 0 y′^ is not defined and the differential equation is not defined.

2.2. The Nonhomogeneous Equation

  • In analyzing the equation it is convenient to define the operater L(y) as follows: L(y) = y′^ + P (x)y. The homogeneous equation becomes L(y) = 0, and the nonhomogeneous becomes L(y) = f (x).
  • Example: Consider the equation x^2 y′^ + x(x + 2)y = ex. For x 6 = 0 then this is equivalent y′^ + (1 + 2x−^1 )y = x−^2 ex. to since P (x) = 1 + 2x−^1 ,we get

q(x) = e−^

∫ P (x)dx (^) = e−x−2 log(|x|) (^) = e−xx− (^2) ,

and y = e−xx−^2

( c +

∫ exx^2 x−^2 exdx

) = e−xx−^2

( c +

e^2 x 2

)

c x^2

e−x^ +

ex 2 x^2

The solution is define on x 6 = 0.