Differential Equations Plotting scalar functions of complex

Differential Equations

Plotting scalar functions of complex variables Given the function f(z) = 1/z^2 + 1 with complex variable input z = x + jy, create a contour plot in Matlab/Octave that has Re(z) as the x-axis, Im(z) as the y-axis, and |f(z)| as the z-axis. Plot it for the range - 1

Solution

1.(D+1)X=sint given intial values x(0)=-1

f(d)x=0, then the auxilary equation is f(m)=0

i.e m+1=0 , then m=-1

the complementary function is x=c1e-t

the complementary function is given by

xp=1/f(d) *Q(t)

= 1/(D+1)sint.

rationalise the denometor , we get

=(D-1)/D^2-1.sint

put D^2=-1^2, then

xp=(-1/2)sint

the general solution is given by

x=xc+xp

x=c1e-t+(-1/2)sint where c1 is a arbitary constant

at t=0 and x=-1 , then c1=-1/2

x=-(1/2)e-t+(-1/2)sint

(2) 1/3Dx+x=0, then (D+3)X=0,

the auxilary equation is f(m)=0,

m+3=0, then m=-3,then xc=c1e-3t

given initial values t=0 and x=1/3, c1=1/3

the general solution is x=1/3e1/3t

(6).given differential equation

(D2+2D+1)x=e-2t

the auxilary equation is given by f(m)=0

m2+2m+1=0, then m=-1,-1

xc=(c1+c2t)e-t, then xp=1/(D2+2D+1).e-2t

put D=-2, then xp=1/(D2+2D+1),

xp=e-2t,

the general solution is given by

x=(c1+c2t)e-t+e-2t -------------(1)

given initial values x(0)=1 and x1(0)=1

put t=0 and x=1 in equation , we get c1=0 and differencating equation (1) w.r.t t and substituting t=0 and x=1 , we get c2=3,

the general solution is given by

x=3te-t+e-2t

(7) Given differential equation is

(D2+4D)=17cost

the auxilary equation is f(m)=0

m2+4m=0, then m=0 ,and m=-4

xc=c1+c2e-4t, the xp=1/(D2+4D).17cost,

put D2=-12

XP=-1/17[-68sint+17cost]

the general solution is given by

x=c1+c2e-4t+1/17[-68sint+17cost]

Differential Equations Plotting scalar functions of complex variables Given the function f(z) = 1/z^2 + 1 with complex variable input z = x + jy, create a conto
Differential Equations Plotting scalar functions of complex variables Given the function f(z) = 1/z^2 + 1 with complex variable input z = x + jy, create a conto

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site