You are on page 1of 5

PRACTICAL : - 1

Out[7]= PRACTICAL : - 1

In[1]:= PDE = D[u[x, y], x] - D[u[x, y], y] ⩵ 1


Out[1]= - u0,1 [x, y] + u1,0 [x, y] ⩵ 1

In[3]:= sol = DSolve[{PDE, u[x, 0] ⩵ x ^ 2}, u[x, y], {x, y}]


Out[3]= u[x, y] → x2 - y + 2 x y + y2

In[75]:= pde1 = D[u[x, y], x] + x D[u[x, y], y] ⩵ 0


c1 = u[0, y] ⩵ Sin[y]
DSolve[{pde1, c1}, u[x, y], {x, y}]
Out[75]=

x u0,1 [x, y] + u1,0 [x, y] ⩵ 0


Out[76]=

u[0, y] ⩵ Sin[y]
Out[77]=

x2
u[x, y] → - Sin - y
2

In[84]:= pde2 = x D[u[x, y], x] + y D[u[x, y], y] ⩵ 2 x y


c2 = u[x, x ^ 2] ⩵ 2
DSolve[{pde2, c2}, u[x, y], {x, y}]
Out[84]=

y u0,1 [x, y] + x u1,0 [x, y] ⩵ 2 x y


Out[85]=

ux, x2 ⩵ 2
Out[86]=

2 x3 + x4 y - y3
u[x, y] → 
x3
2

In[4]:= Plot3Du[x, y] /. sol, {x, - 4, 4}, {y, - 5, 5},

PlotLabel → "Integral surface through initial curve"

Out[4]=
3

In[59]:= PDE = y D[u[x, y], x] - 2 x y D[u[x, y], y] ⩵ 2 x u[x, y]


sol = DSolve[{PDE, u[0, y] ⩵ y ^ 3}, u[x, y], {x, y}]
Plot3Du[x, y] /. sol, {x, - 4, 4}, {y, - 5, 5},

PlotLabel → "Integral surface through initial curve"


Out[59]=

- 2 x y u0,1 [x, y] + y u1,0 [x, y] ⩵ 2 x u[x, y]

Out[60]=

x2 + y
4

u[x, y] → 
y
Out[61]=
4

In[71]:= Eqn = D[u[x, y], x] + D[u[x, y], y] ⩵ u[x, y] * u[x, y]


DSolve[{Eqn, u[0, - x] ⩵ 1}, u[x, y], {x, y}]
Plot3Du[x, y] /. sol, {x, - 10, 10}, {y, - 10, 10},

PlotLabel → "Integral surface through initial curve"


Out[71]=

u0,1 [x, y] + u1,0 [x, y] ⩵ u[x, y]2

DSolve: The arguments should be ordered consistently.


Out[72]=

DSolveu0,1 [x, y] + u1,0 [x, y] ⩵ u[x, y]2, u[0, - x] ⩵ 1, u[x, y], {x, y}
Out[73]=

In[74]:= Plot3Du[x, y] /. sol, {x, - 12, 12}, {y, - 100, 100},

PlotLabel → "Integral surface through initial curve"


Out[74]=
5

Set: Tag Plus in u(0,1) [X, Y] + u(1,0) [X, Y] is Protected.


Out[50]=

u[X, Y]2

DSolve: Equation or list of equations expected instead of u[X, Y] 2 in the first argument u[X, Y]2 , True.
Out[51]=

DSolveu[X, Y]2, True, u[X, Y], {X, Y}

DSolve: -9.99857 cannot be used as a variable.

ReplaceAll: DSolveu[-9.99857, -9.99857]2 , True, u[-9.99857, -9.99857], {-9.99857, -9.99857} is neither a


list of replacement rules nor a valid dispatch table, and so cannot be used for replacing.

DSolve: -8.57 cannot be used as a variable.

ReplaceAll: DSolveu[-8.57, -9.99857]2 , True, u[-8.57, -9.99857], {-8.57, -9.99857} is neither a list of
replacement rules nor a valid dispatch table, and so cannot be used for replacing.

DSolve: -7.14143 cannot be used as a variable.

General: Further output of DSolve::dsvar will be suppressed during this calculation.

ReplaceAll: DSolveu[-7.14143, -9.99857]2 , True, u[-7.14143, -9.99857], {-7.14143, -9.99857} is neither a


list of replacement rules nor a valid dispatch table, and so cannot be used for replacing.

General: Further output of ReplaceAll::reps will be suppressed during this calculation.


Out[52]=

You might also like