-4

i would like to know how to solve the following PDE with sympy or matlab

thanks in advance.enter image description here

Bolor
  • 413
  • 6
  • 14

1 Answers1

8

i just solved it with sympy

import sympy as sp

x1, x2 = sp.symbols('x1, x2')
f = sp.Function('f')
phi = f(x1, x2)
eq = phi.diff(x1) * sp.cos(x2) + phi.diff(x2)
print(sp.pdsolve(eq)) # f(x1, x2) == F(-x1 + sin(x2))
Mateen Ulhaq
  • 24,552
  • 19
  • 101
  • 135
Bolor
  • 413
  • 6
  • 14