Docsity

Quiz 6 Solution: Differential Equations, Exercises of Calculus

Toggle sidebar
bg1
Answer Key for Quiz 6 (section A)
1. If y=A+B
x+C
x2=A+Bxโˆ’1+C xโˆ’2, then
dy
dx = 0 + B(โˆ’1)xโˆ’2+C(โˆ’2)xโˆ’3=โˆ’B
x2โˆ’2C
x3.
Substituting these expressions for yand dy
dx into the differential equation we get
1 = x4dy
dx +x2y
=x4ยตโˆ’B
x2โˆ’2C
x3ยถ+x2ยตA+B
x+C
x2ยถ
=โˆ’Bx2โˆ’2C x +Ax2+Bx +C
= (Aโˆ’B)x2+ (Bโˆ’2C)x+C.
If this expression equals 1 for all x, then Cmust be 1 and the xand x2terms must cancel. Since C= 1 and
Bโˆ’2C= 0 we have B= 2, and since Aโˆ’B= 0 we also have A= 2. Therefore y= 2 + 1
x+1
x2is the only
solution of x4dy
dx +x2y= 1 of the desired form.
In fact, every solution of the equation has the form
y= 2 + 1
x+1
x2+Ce 1
x
for some constant C. It is possible to show this by rewriting the equation as
dy
dx +y
x2=1
x4,
then multiplying both sides by eโˆ’1
xand integrating.
2. Separate variables to get dy
yโˆ’2= (2xโˆ’1)dx, and then integrate both sides:
Zdy
yโˆ’2=Z(2xโˆ’1)dx =โ‡’ln |yโˆ’2|=x2โˆ’x+C.
To finish the problem we need to find C, get rid of the absolute values, and solve for y, not necessarily in
that order.
Method 1: plug in x= 1 and y= 5 to get
ln |5โˆ’2|= 12โˆ’1 + C=Cwhich implies C= ln 3.
Also, since yโˆ’2 is positive when x= 1 it must stay positiveโ€”it could not switch from positive to negative
without ln |yโˆ’2|becoming infinite. Therefore we can take the absolute values off, and we now have
ln(yโˆ’2) = x2โˆ’x+ ln 3.
Exponentiating both sides we get
eln(yโˆ’2) =ex2โˆ’x+ln 3 =ex2โˆ’xeln 3 which implies yโˆ’2 = 3ex2โˆ’x.
So we finally have y= 2 + 3ex2โˆ’x.
pf2

Partial preview of the text

Download Quiz 6 Solution: Differential Equations and more Exercises Calculus in PDF only on Docsity!

Answer Key for Quiz 6 (section A)

  1. If y = A + B x

+ C

x^2 = A + Bxโˆ’^1 + Cxโˆ’^2 , then

dy dx = 0 + B(โˆ’1)xโˆ’^2 + C(โˆ’2)xโˆ’^3 = โˆ’ B x^2

โˆ’ 2 C

x^3

Substituting these expressions for y and dydx into the differential equation we get

1 = x^4 dy dx

  • x^2 y

= x^4

B

x^2

2 C

x^3

  • x^2

A +

B

x

C

x^2

= โˆ’Bx^2 โˆ’ 2 Cx + Ax^2 + Bx + C = (A โˆ’ B)x^2 + (B โˆ’ 2 C)x + C.

If this expression equals 1 for all x, then C must be 1 and the x and x^2 terms must cancel. Since C = 1 and

B โˆ’ 2 C = 0 we have B = 2, and since A โˆ’ B = 0 we also have A = 2. Therefore y = 2 +^1 x

+^1

x^2 is the only

solution of x^4 dy dx

  • x^2 y = 1 of the desired form.

In fact, every solution of the equation has the form

y = 2 +

x

x^2

  • Ce x^1

for some constant C. It is possible to show this by rewriting the equation as

dy dx

y x^2

x^4

then multiplying both sides by eโˆ’^1 x^ and integrating.

  1. Separate variables to get dy y โˆ’ 2 = (2x โˆ’ 1)dx, and then integrate both sides: โˆซ dy y โˆ’ 2

(2x โˆ’ 1)dx =โ‡’ ln |y โˆ’ 2 | = x^2 โˆ’ x + C.

To finish the problem we need to find C, get rid of the absolute values, and solve for y, not necessarily in that order.

Method 1: plug in x = 1 and y = 5 to get

ln | 5 โˆ’ 2 | = 1^2 โˆ’ 1 + C = C which implies C = ln 3.

Also, since y โˆ’ 2 is positive when x = 1 it must stay positiveโ€”it could not switch from positive to negative without ln |y โˆ’ 2 | becoming infinite. Therefore we can take the absolute values off, and we now have

ln(y โˆ’ 2) = x^2 โˆ’ x + ln 3.

Exponentiating both sides we get

eln(yโˆ’2)^ = ex (^2) โˆ’x+ln 3 = ex (^2) โˆ’x eln 3^ which implies y โˆ’ 2 = 3ex (^2) โˆ’x .

So we finally have y = 2 + 3ex (^2) โˆ’x .

Method 2: Exponentiate right away and plug in later. We have

eln^ |yโˆ’^2 |^ = ex (^2) โˆ’x+C = ex (^2) โˆ’x eC^ which implies |y โˆ’ 2 | = Kex (^2) โˆ’x

where K = eC^ is a positive arbitrary constant. Plugging in x = 1 and y = 5 we get ln 3 = Ke^0 = K, so we have |y โˆ’ 2 | = 3ex (^2) โˆ’x , which means that either y โˆ’ 2 = 3ex (^2) โˆ’x or y โˆ’ 2 = โˆ’ 3 ex (^2) โˆ’x .

But the second one canโ€™t be right, because then y wouldnโ€™t be 5 when x = 1. So we conclude again that y โˆ’ 2 = 3ex (^2) โˆ’x .

Method 3: Continue with method 2 up to the point of renaming eC^ as K, but allow K to be completely arbitrary (not necessarily positive), and use that flexibility to take the absolute values off of y โˆ’ 2. This gives y โˆ’ 2 = Kex (^2) โˆ’x , and plugging in as before we get that K = 3.