Define a PDE, solve it, and then test the solution.
>
|
|
| (1) |
>
|
|
![ans := `&where`(f(x, y, z, t) = _F1(x)+_F2(y)+_F5(z, t), [{diff(_F1(x), `$`(x, 5)) = ln(_c[1]*g(x)), diff(_F2(y), `$`(y, 4)) = -_c[1]/h(y)}, ``(_F5(z, t), ` are arbitrary functions.`)])](/support/helpjp/helpview.aspx?si=7126/file00871/math82.png)
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
 = (-_C4^2*exp(_s)+_C2)*exp(_s), _p[2](_s) = _C4*exp(_s)}}, {_p[1] = diff(f(x, y), x), _p[2] = diff(f(x, y), y)}])](/support/helpjp/helpview.aspx?si=7126/file00871/math124.png)
| (8) |
>
|
|
| (9) |
You can use pdetest to solve a PDE. First, define the PDE.
>
|
|
| (10) |
Next, give an ansatz.
>
|
|
| (11) |
Use pdetest to simplify the PDE with regard to the ansatz above.
>
|
|
| (12) |
The ansatz above separated the variables, so the PDE can now be solved for F(x).
>
|
|
| (13) |
>
|
|
| (14) |
Now, build a (particular) solution to the PDE by substituting the result above in "ansatz".
>
|
|
| (15) |
>
|
|
| (16) |
Test solutions for PDE systems.
>
|
|
| (17) |
>
|
|

| (18) |
>
|
|
| (19) |
Consider the following PDE, boundary condition, and solution
>
|
|
| (20) |
>
|
|
| (21) |
>
|
|
| (22) |
You can test whether the sol solves pde using pdetest; the novelty is that you can now test whether it solves the boundary condition bc[1]
>
|
|
| (23) |
The boundary conditions can involve derivatives:
>
|
|
| (24) |
>
|
|
| (25) |