How can I get a derivate at the point? I've specifyed a boundary condition for my PDE:
lb = - c D[u[x, t], x][a, t] + d u[a, t] == gamma
When I present the function as
a = 0;
c = 1; d= 3;
u[x_, t_] = f[x, t] w[x]
f[x_, t_] = E^(-k t) + 1;
k = 5;
w[x_] = x^2 Cos[x];
and try to express the right part:
Solve[lb, gamma]
I get
{{gamma -> -(2 (1 + E^(-5 t)) x Cos[x] - (1 + E^(-5 t)) x^2 Sin[
x])[0, t]}}
So, variables x and t are still free. But I want Mathematica to substitute x=0 , t=t and get {gamma ->0} above.
x=0
? Have you looked atDSolve[]
? $\endgroup$