Find the particular solution of the following differential equations.
Question 793 marksMedium
Find the particular solution of the following differential equations.
(i)dxdy=xy2 with y(0)=1
(ii)cosydy+cosxsinydx=0, y(2π)=2π
(iii)(1−x2)dxdy−xy=x; given y=1 when x=0.
(iv)(x2−yx2)dy+(y2+x2y2)dx=0, given that y=1, when x=1.
(v)dxdy=1+x2+y2+x2y2, given that y=1 when x=0.
(vi)(1+e2x)dy+(1+y2)exdx=0, given that y=1, when x=0
(vii)dxdy=1+x+y+xy, given that y=0 when x=1.
(viii)dxdy=siny+ycosyx(2log∣x∣+1), given that y=2π, when x=1.
Solution:
Concept: For each part we separate the variables, integrate to get the general solution with one arbitrary constant, and then substitute the given point to find that constant. The result is the particular solution.
Step 1 — Part (i): separate and integrate.
We divide by y2 (with y=0) and multiply by dx. We use ∫y−2dy=−y1.
y2dy=xdx
−y1=2x2+c
Step 2 — Part (i): use y(0)=1.
We put x=0 and y=1 to find c.
−1=0+c
c=−1
Step 3 — Part (i): solve for y.
We put c=−1 back and take reciprocals.
y1=1−2x2
y1=22−x2
y=2−x22
Step 4 — Part (ii): separate and integrate.
We move the dx term to the right and divide by siny. The integral of coty is log∣siny∣.
sinycosydy=−cosxdx
log∣siny∣=−sinx+c
Step 5 — Part (ii): use y(2π)=2π.
We put x=2π and y=2π, and we use sin2π=1 and log1=0 to get c directly.
0=−1+c
c=1
log∣siny∣+sinx=1
Step 6 — Part (iii): separate.
We write the equation as (1−x2)dxdy=x(1+y), then divide by (1+y)(1−x2). Near x=0 we have ∣x∣<1, so 1−x2>0.
1+ydy=1−x2xdx
Step 7 — Part (iii): integrate.
On the right the derivative of 1−x2 is −2x, so the integral is −21log(1−x2). We write the constant as logk.
log∣1+y∣=−21log(1−x2)+logk
(1+y)1−x2=k
Step 8 — Part (iii): use x=0, y=1.
We substitute to find k.
(1+1)1−0=k
k=2
(y+1)1−x2=2
Step 9 — Part (iv): separate.
We take x2 common from the dy term and y2 from the dx term, then divide by x2y2.
x2(1−y)dy=−y2(1+x2)dx
y2y−1dy=x21+x2dx
(y1−y21)dy=(x21+1)dx
Step 10 — Part (iv): integrate.
We integrate term by term and add one arbitrary constant c.
log∣y∣+y1=−x1+x+c
Step 11 — Part (iv): use x=1, y=1.
We substitute x=1 and y=1, and we use log1=0 to find c.
0+1=−1+1+c
c=1
log∣y∣+y1=x−x1+1
Step 12 — Part (v): factorise and separate.
We group the right side as (1+x2)+y2(1+x2), which factorises, and divide by 1+y2.
dxdy=(1+x2)(1+y2)
1+y2dy=(1+x2)dx
Step 13 — Part (v): integrate and use x=0, y=1.
The left side integrates to tan−1y. Putting x=0, y=1, we get c=tan−11.
tan−1y=x+3x3+c
c=4π
y=tan(x+3x3+4π)
Step 14 — Part (vi): separate.
We divide the equation by (1+y2)(1+e2x), which is never zero.
1+y2dy=−1+e2xexdx
Step 15 — Part (vi): integrate.
On the right we put ex=t, so exdx=dt and e2x=t2; the integral becomes ∫1+t2dt. Its value is the standard result tan−1t.
tan−1y=−tan−1ex+c
Step 16 — Part (vi): use x=0, y=1.
We substitute. Since e0=1 and tan−11=4π, we find c.
4π=−4π+c
c=2π
Step 17 — Part (vi): simplify.
We take tan of both sides and use tan(2π−θ)=cotθ; if θ=tan−1ex, then tanθ=ex, so cotθ is its reciprocal.
y=tan(2π−tan−1ex)
y=cot(tan−1ex)
y=ex1
Step 18 — Part (vii): factorise and separate.
We group the right side as (1+x)+y(1+x). Taking (1+x) common gives (1+x)(1+y), and we divide by 1+y.
1+ydy=(1+x)dx
log∣1+y∣=x+2x2+c
Step 19 — Part (vii): use x=1, y=0.
We substitute. Since log1=0, we find c.
0=1+21+c
c=−23
log∣1+y∣=x+2x2−23
Step 20 — Part (viii): separate.
We multiply both sides by (siny+ycosy)dx.
(siny+ycosy)dy=(2xlog∣x∣+x)dx
Step 21 — Part (viii): integrate by spotting derivatives.
By the product rule, the left integrand is the derivative of ysiny, and the right integrand is the derivative of x2log∣x∣.
dyd(ysiny)=siny+ycosy
dxd(x2log∣x∣)=2xlog∣x∣+x
ysiny=x2log∣x∣+c
Step 22 — Part (viii): use x=1, y=2π.
We substitute. Since sin2π=1 and log1=0, we find c.