# Avoid error with dependent variable while solving a PDE with NDSolve?

**URL:** <https://community.wolfram.com/t/avoid-error-with-dependent-variable-while-solving-a-pde-with-ndsolve/15231>\
**Category:** Questions\
**Tags:** equation-solving, numerical-computation\
**Created:** [January 10, 2020, 6:32pm UTC](https://community.wolfram.com/t/avoid-error-with-dependent-variable-while-solving-a-pde-with-ndsolve/15231 "2020-01-10T18:32:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abedalnaif](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@abedalnaif](https://community.wolfram.com/u/abedalnaif)\
**Post date:** [January 10, 2020, 6:32pm UTC](https://community.wolfram.com/t/avoid-error-with-dependent-variable-while-solving-a-pde-with-ndsolve/15231/1 "2020-01-10T18:32:30Z")

</div>

Hello,

I’m getting the following error when trying to numerically solve a PDE:

```
NDSolve::fembdnl: The dependent variable in (P^(1,0))[0,t]==0 in the boundary condition DirichletCondition[(P^(1,0))[0,t]==0,x==0.] needs to be linear.

```

Does anyone know what this means or how to avoid the error?

The code is provided below as an image and attachment.

Thank you,

Abed

 ![mathematic_pdesolve_v1_snapshote.PNG](https://global.discourse-cdn.com/wolfram/original/3X/0/6/06968a1755127dc04895552799b6abc98a635e67.png)

[pdeSolve\_debug\_v11.nb](https://community.wolfram.com/uploads/short-url/ieBxhfww33WWeq5m3EljXjDcn0d.nb) (26.8 KB)

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [January 14, 2020, 9:22pm UTC](https://community.wolfram.com/t/avoid-error-with-dependent-variable-while-solving-a-pde-with-ndsolve/15231/2 "2020-01-14T21:22:28Z")

</div>

You shouldn’t have “True” in NDSolve anywhere. I would say cleaning up your equation and re-post?

(it means that P, x, or t are defined so that they Evaluated to True - and as a multiple against p^{1,0} this is not a function, that is, True \* f[x] is not acceptable anywhere in the PDE)

I can guarantee (you you can just see in examples in mm’s help), that derivatives of P are allowed in IC or BC (allowed, not necessarily giving solutions in all cases, but would not be an error)

(in other words: Clear[P,s,x,t] or reset Quit[] kernel and remember if you give P x s t values they are no longer variables. also: x\>1 cannot be multiplied times a function, see Help as to how “Solve” conditions can be used properly with PDE)
