I have a small issue in understanding the workflow of Replace /. When I give this input:
(y''[x]+y[x]) /. y[x] -> 1
I am getting just 1+y''[x]
. I can understand this but is there some special format so that it takes the constant value and gives the derivative as zero. For arbitrary function is there some special way of defining it?
Thank You for your help.
y[x] -> 1
only says to replace anything that looks likey[x]
, andy''[x]
doesn't look like it at all (check withInputForm[]
orFullForm[]
to see). Try(y''[x] + y[x]) /. y -> (1 &)
. $\endgroup$