You are on page 1of 2

In[1]:= pde1 = x * D[u[x, y], x] + y * D[u[x, y], y] == u[x, y]

DSolve [pde1, u[x, y], {x, y}]

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


y
Out[2]=  u[x, y] → x  1  
x

In[3]:= Plot3D [x, {x, - 5, 5}, {y, - 5, 5}]

Out[3]=

In[4]:= Plot [x, {x, - 5, 5}]

Out[4]=
-4 -2 2 4

-2

-4

In[5]:= pde2 = D[u[x, y], x] - D[u[x, y], y] == 1


DSolve [pde2, u[x, y], {x, y}]
 0,1   1,0 
Out[5]= -u [x, y] + u [x, y] ⩵ 1

Out[6]= {{u[x, y] → x +  1 [x + y]}}


2

In[7]:= ContourPlot [x + y, {x, - 5, 5}, {y, - 5, 5}]

0
Out[7]=

-2

-4

-4 -2 0 2 4

You might also like