2.1 HW 1

  2.1.1 Problems listing
  2.1.2 Problem 1
  2.1.3 Problem 2
  2.1.4 Problem 3
  2.1.5 Problem 4
  2.1.6 Problem 5
  2.1.7 Problem 6
  2.1.8 Problem 7
  2.1.9 Problem 8
  2.1.10 Problem 9
  2.1.11 Problem 10
  2.1.12 Problem 11
  2.1.13 Problem 12
  2.1.14 Problem 13
  2.1.15 Problem 14
  2.1.16 Marks per problem

2.1.1 Problems listing

PDF

PDF (letter size)

PDF (legal size)

2.1.2 Problem 1

Determine the order of the differential equation a) (dydx)3+y2=sinx, b) t2d2ydt2+tdydt+2y=sin(t)

Solution

For (a), the order is one. Since highest derivative dydx is of order one. For (b) the order is second. Since highest derivative d2ydt2 is of order two.

2.1.3 Problem 2

Verify for t>0,y(t)=lnt is a solution to 2(dydt)3=d3ydt3

Solution

The verification is done by substituting the solution into the ODE, if the result is an identity (both sides of the equation are the same), then it is verified, otherwise it is not.  Since solution is y(t)=lnt then dydt=1t and d2ydt2=1t2 and d3ydt3=2t3. Substituting these into the ODE gives2(1t)3=2t32t3=2t3

Which is an identity. Hence y(t)=lnt is a solution to the ODE.

2.1.4 Problem 3

Determine whether the differential equation is linear or nonlinear a) y+4y+sinxy=xy2+tanx, b) t2y+ty+2y=sint

Solution

ODE (a) is not linear, due to presence of the term y2 while ODE (b) is linear, since all derivative terms of the dependent variable and the dependent variable are linear.

2.1.5 Problem 4

Prove (show) that the initial-value problem y=xsin(x+y), y(0)=1 has a unique solution using the existence and uniqueness theorem

Solution

Writing the ODE asy=xsin(x+y)=f(x,y)

Shows that f(x,y) is continuous everywhere, since x and sin function are continuous everywhere. Andfy=xcos(x+y) Which is also continuous everywhere. This shows there exists an interval I which must contain x0=0 where the initial value ODE given above has a solution and the solution is unique for all x in I.

2.1.6 Problem 5

   2.1.6.1 Part a
   2.1.6.2 Part b

Let y=(y2)(y+1). a) Determine all equilibrium solutions. b) Determine the region in the xy-plane where the solutions are increasing, and where the solutions are decreasing.

Solution

2.1.6.1 Part a

The equilibrium solutions are given by solution to y=0 which gives y=2,y=1.

2.1.6.2 Part b

The equilibrium solutions divide the solution domain into three regions. One is y>2 and one is where 1<y<2 and one where y<1.

When y>2, we see that (y2)(y+1) is always positive. Hence y is positive, which means the solution is increasing.

When y<1, then (y2)<0 and also (y+1)<0. Hence the product is positive, This means for y<1, the slope is positive and the solution is increasing.  

For 1<y<2, the term (y2) is negative and the term (y+1) is positive. Hence the product is negative. This means the slope is negative and the solution is decreasing. Therefore

{y>2increasing1<y<2decreasingy<1increasing

To verify this, the following is a plot of the solution curves. It shows the 3 regions which agrees with the above result.


pict
Figure 2.1:Solution curves

2.1.7 Problem 6

   2.1.7.1 Part a
   2.1.7.2 Part b

Solve the following differential equations a) dydx=yxlnx. b) (x2+1)y+y2=1,y(0)=1

Solution

2.1.7.1 Part a

This is separable ODE, it can be written asdyy=dxxlnx Integrating givesln|y|=dxxlnx+C1 To find dxxlnx, we notice that, by definition ddxln(lnx)=ddxlnxlnx=1xlnx. This shows that ln(lnx) is the antiderivative. Hence the above becomesln|y|=ln(ln|x|)+C1 Taking the exponential of both sides givesy=Celn(ln|x|) Where the sign is absorbed by the constant C. Hencey=Clnx

2.1.7.2 Part b

The ODE isy=1(x2+1)y2(x2+1)=(1y2)(x2+1)=1(x2+1)(1+y2)

This is now separable. dy(1+y2)=dx(x2+1) Integrating givesarctan(y)=arctan(x)+C or(1)y=tan(arctan(x)+C) Applying initial conditions y(0)=1 to the above gives1=tan(arctan(0)+C)=tan(C)

Hence C=π4. Therefore the general solution (1) becomesy=tan(arctan(x)π4)=tan(π4arctan(x))

2.1.8 Problem 7

   2.1.8.1 Part a
   2.1.8.2 Part b

Solve the following differential equations a) dydx+2xy=5x2,x>0, b) tdxdt+2x=4et,t>0

Solution

2.1.8.1 Part a

This is a linear ODE in y. It is of the form y+p(x)y=q(x), where p(x)=2x,q(x)=5x2. Hence the integrating factor is I=ep(x)dx=e2xdx=e2lnx or I=x2. Multiplying both sides by this integrating factor make the LHS complete differential giving

ddx(Iy)=I(5x2)ddx(yx2)=5x4yx2=5x4dxyx2=5x55+Cyx2=x5+Cy=x3+Cx2x0

The above is the general solution.

2.1.8.2 Part b

Writing the ODE as dxdt+2tx=4ettt0 Show this is a linear ODE in x. It is of the form x+p(t)x=q(t), where p(t)=2t,q(t)=4ett. Hence the integrating factor is I=ep(t)dt=e2tdt=e2lnt or I=t2. Multiplying both sides by this integrating factor make the LHS complete differential givingddt(xt2)=4tet Integrating gives(1)xt2=4tetdt Integration by parts. udv=uvvdu. Let u=t,dv=et,du=dt,v=et, thereforetetdt=tetetdt=tetet

Hence (1) becomesxt2=4(tetet)+C Where C is constant of integration.  Thereforex(t)=4(tetet)t2+Ct2=4et(t1)t2+Ct2t0

2.1.9 Problem 8

A container initially containing 10 L of water in which there is 20 g of salt dissolved. A solution containing 4 g/L of salt is pumped into the container at a rate of 2 L/min, and the well-stilled mixture runs out at a rate of 1 L/min. How much salt is in the tank after 40 min?

Solution

pict
Figure 2.2:Showing tank flow

Let x(t) be mass of salt (in grams) in tank at time t. Let V(t) be the volume of water (in litre) in the tank at time t. Using the equilibrium equation for change of mass of saltdxdt=rate of salt mass in  rate of salt mass out Which becomesdxdt=(2 Lmin)(4 gL)  (1 Lmin)(x(t)V(t) gL)(1)=8x(t)V(t)

But V(t)=V(0)+(rate of mixture volume in  rate of mixture volume out)t=V(0)+(21)t=V(0)+t

But we are given that V(0)=10 L. HenceV(t)=10+t Substituting the above in (1) givesdxdt=8x10+t The solution to above ODE gives the mass x of salt in tank at time t. dxdt+x10+t=8 This is linear ODE. The integrating factor is I=e110+tdt=eln(10+t)=10+t. Multiplying both sides of the above ODE by this integrating factor givesddt((10+t)x)=8(10+t) Integrating gives(10+t)x=8(10+t)dt=8(10t+t22)+C

Hencex=8t(10+t2)(10+t)+C(10+t)(1)=4t(20+t)(10+t)+C(10+t)

At t=0, we are given that x(0)=20 (g). Hence the above becomes20=C10C=200

Therefore (1) becomes(2)x=4t(20+t)(10+t)+200(10+t) At t=40, the above givesx(40)=440(20+40)(10+40)+200(10+40)=196 grams

2.1.10 Problem 9

Consider the RC circuit (See page 65 in the text) which has R=5Ω,C=150F and E(t)=100V. If the capacitor is uncharged initially, determine the current in the circuit for t0.

Solution

The equation for RC circuit is given by equation 1.7.16 in the text book as dqdt+1RCq=E(t)R Where q(t) is the charge on the plates of the capacitor We are told that at t=0,q=0. Using the numerical values given, the above ODE becomesdqdt+15(150)q=1005dqdt+10q=20

This is linear ODE in q. The integrating factor is I=e10dt=e10t. Multiplying both sides by this integrating factor givesddt(qe10t)=20e10t Integratingqe10t=20e10tdt=20e10t10+C

Henceq(t)=2+Ce10t Using initial conditions q(0)=0 shows that 0=2+C or C=2. Henceq(t)=22e10t=2(1e10t)

Hence the current in the circuit isi(t)=dqdt=2ddt(1e10t)=2(10e10t)=20e10t

2.1.11 Problem 10

Solve the initial-value problemdydx=2xyx+4yy(1)=1

Solution

Let us first check if a solution exists, and unique. f(x,y)=2xyx+4y. This is continuos for all x,y except when y=14x. And fy=9x(x+4y)2. This is also continuos for all x,y except when y=14x. Since initial conditions satisfies y14x, then there is an interval I that includes x0=0 where a solution exists and is unique for all x in this interval. Now we can solve the ODE.

Let v=yx. Hence y=xv. Therefore dydx=v+xdvdx. The given ODE can be written asdydx=2yx1+4yxx0 In terms of the new dependent variable v(x), the above becomesv+xdvdx=2v1+4vxdvdx=2v1+4vv=(2v)v(1+4v)1+4v=2vv4v21+4v=22v4v21+4v

The above ODE is separable. Therefore1+4v22v4v2dv=1xdx Integrating gives1+4v22v4v2dv=1xdx We notice that ddxln(22v4v2)=28v22v4v2. Therefore 12ddxln(22v4v2)=1+4v22v4v2 which is the integrand. This shows that 12ln(22v4v2) is the anti derivative of the integral of the LHS above. Therefore the above becomes12ln(22v4v2)=lnx+C1ln(22v4v2)=2lnx2C122v4v2=e2C11x2

Let c=e2C1 be new constant.  The above becomes22v4v2=cx24v2+2v2+cx2=0v2+12v12+c4x2=0

Solving for v givesv=b2a±12ab24ac=14±12144(12+c4x2)=14±1214+2cx2=14±1294cx2=14±129x24c4x2=14±14x9x24cx>0

Since v=yx, then there are two general solutionsy1(x)=14+14x9x24cy2(x)=1414x9x24c

Initial conditions are now used to find a particular soluton. For y1(x)1=14+1494c54=1494c5=94c25=94cc=4

Hence one solution is y1(x)=x4+149x2+16 And for y2(x)1=141494c54=1494c5=94c

There is no solution for c in this equation since sqrt of a real number must be positive (principal root). Hence the only particular solution is the first one which isy1(x)=x4+149x2+16 The above verifies the existence and uniqueness theorem, as only one solution is found which includes x0=1.

2.1.12 Problem 11

Solve the given differential equation

y+2yx=6y2x4 Solution

In canonical form the ODE isy=2xy+6x4y2 We see that this is Bernoulli ODE of the form y=p(x)y+q(x)yn where n=2. Dividing both sides by y2 givesyy2+2x1y=6x4 Let v=1y. Then dvdx=1y2dydx. Or dydx=y2dvdx. Substituting this in the above ODE givesy2dvdx1y2+2xv=6x4dvdx2xv=6x4

This is now linear in v. The integrating factor is I=e2xdx=e2lnx=1x2. Multiplying both sides by this integrating factor givesddx(vx2)=6x2 Integratingvx2=6x2dx+C=2x3+Cv=2x5+Cx2

But y=1v. Therefore the final solution isy(x)=12x5+Cx2

2.1.13 Problem 12

Determine whether the given differential equation is exact2xeydx+(3y2+x2ey)dy=0 Solution

Writing the ODE asM(x,y)dx+N(x,y)dy=0 WhereM=2xeyN=3y2+x2ey

ThereforeMy=2xeyNx=2xey

Since My=Nx then the ode is exact.

2.1.14 Problem 13

Solve the given differential equation

(1)(y2+cosx)dx+(2xy+siny)dy=0 Solution

The first step is to determine if the ODE is exact or not. Writing the ODE asM(x,y)dx+N(x,y)dy=0 ThereforeMy=2yNx=2y

Since My=Nx, then the ODE is exact. This implies there exists potential function ϕ(x,y) such that its differential is(2)dϕ=ϕxdx+ϕydy=0

This implies ϕ(x,y)=C1. Comparing (1,2) shows that(3)ϕx=M(4)ϕy=N

Integrating (3) w.r.t. x givesϕ=Mdx+f(y) Where f(y) acts as the integration constant, but since ϕ depends on both x,y, it becomes an arbitrary function of y instead. The above becomesϕ=(y2+cosx)dx+f(y)(5)=xy2+sinx+f(y)

Taking derivative w.r.t. y of the above gives(6)ϕy=2xy+f(y) Comparing (6) and (4) shows thatN=2xy+f(y)2xy+siny=2xy+f(y)siny=f(y)

Therefore f(y)=cosx+C2 where C2 is arbitrary constant. Substituting f(y) back in (5) givesϕ(x,y)=xy2+sinxcosx+C2 But since ϕ(x,y) is a constant function, say C1 then the above becomesxy2+sinxcosx=C Where the constants C1,C2 are combined to one constant C. The above is the solution to the ODE. It can be left in implicit form as the above, or we can solve for y explicitly. Solving for y givesy2=C+cosxsinxx Hencey(x)=±C+cosxsinxxx0

2.1.15 Problem 14

Determine an integrating factor for the given differential equation and hence find the general solution(1)(xy1)dx+x2dy=0 Solution

Writing the ODE asM(x,y)dx+N(x,y)dy=0 WhereM=xy1N=x2

ThereforeMy=xNx=2x

Since MyNx then the ode is not exact. Applying theorem 1.9.11 part(1). MyNxN=x2xx2=1x=f(x)

Since this depends on x only, then there exists an integrating factor that depends on x only which makes the ODE exact. The integrating factor is thereforeI=ef(x)dx=e1xdx=elnx=1x

Multiplying the given ODE (1) by this integrating factor gives1x(xy1)dx+1xx2dy=0(y1x)dx+xdy=0

Where now M=y1xN=x

Let us first verify the above is indeed exact.My=1Nx=1

This shows it is exact as expected. Hence now we need to find ϕ(x,y) by solving the following two equations (3)ϕx=M=y1x(4)ϕy=N=x

Integrating (3) w.r.t. x givesϕ=Mdx+f(y) Where f(y) acts as the integration constant, but since ϕ depends on both x,y, it becomes an arbitrary function of y instead. The above becomesϕ=(y1x)dx+f(y)(5)=xylnx+f(y)

Taking derivative w.r.t. y of the above gives(6)ϕy=x+f(y) Comparing (6) and (4) shows thatN=x+f(y)x=x+f(y)0=f(y)

Therefore f(y)=C2 where C2 is arbitrary constant. Substituting f(y) back in (5) givesϕ(x,y)=xylnx+C2 But since ϕ(x,y) is a constant function, say C1 then the above becomesxylnx=C Where the constants C1,C2 are combined to one constant C. Solving for y givesy=C+lnxx

Where x0

2.1.16 Marks per problem

pict
Figure 2.3:marks