I am trying to solve this system of pde numerically. I am unable to find any method in Mathematica that can handle this problem. The issue is having this integration condition in the domain. I tried the method of lines but failed because NDSolve does not work with extra equations except initial and boundary conditions. And, I need to solve this for positive $u(t,x)$ and $v(t,x)$.
$\frac{\partial u(t,x)}{\partial t}=\frac{\partial^2 u(t,x)}{\partial x^2}-(\frac{2x+1}{1+x})u(t,x)(1-u(t,x)-v(t,x)); (0,1)$
$\frac{\partial v(t,x)}{\partial t}=\frac{\partial^2 v(t,x)}{\partial x^2}-v(t,x)(1-v(t,x)-u(t,x)); (0,1)$
boundary conditions $\frac{\partial u(t,0)}{\partial x}=0$, $\frac{\partial u(t,1)}{\partial x}=0$, $\frac{\partial v(t,0)}{\partial x}=0$, $\frac{\partial v(t,1)}{\partial x}=0$
initial conditions $u(0,x)=a$ (where a is a parameter), $v(0,x)=0.5$
interior conditions $\int_0^1{u(t^*,x)+v(t^*,x)dx=1}$ for all $t^*\in[0,1]$
This is what I tried:
p[x_]:=(2x+1)/(1+x);
u0 = 0.5 % this should be the parameter a%;
v0 = 0.5;
X = 1;
T = 1;
Tplot = 1;
sol = NDSolve[{D[u[t,x],t]==D[u[t,x],x,x]-p[x]*u[t,x]*(1-u[t,x]-v[t,x]), D[v[t,x],t]==D[v[t,x],x,x]-v[t,x]*(1-u[t,x]-v[t,x]), (D[u[t,x],x]/.x->0) == 0,(D[u[t,x],x]/.x->X) == 0,(D[v[t,x],x]/.x->0) == 0,(D[v[t,x],x]/.x->X) == 0, u[0,x]==u0,v[0,x]==v0},{u,v},{t,0,T},{x,0,X}]
Plot3D[{Evaluate[u[t,x]]/.sol[[1,1]],Evaluate[v[t,x]]/.sol[[1,2]]},{t,0,Tplot},{x,0,X},PlotRange->All,AxesLabel->{"t","x","Sol"}, PlotLegends->{"U","V"}]
Obviously, this is not what I should do. I have not included the integration condition (interior condition) in the code and not implemented a technique to find positive solutions.