I wanted to find a accuracy solution of the following ODE.
$$y'(x)+y(x)=-y(-x).$$
But when I try to use DSolve
as follows
DSolve[y'[x] + y[x] == -y[-x], y[x], x]
I get a warning message:
DSolve::litarg: To avoid possible ambiguity, the arguments of the dependent variable in {y[x]+(y^[Prime])[x]==-y[-x]} should literally match the independent variables.
How can I solve this equation with $y(-x)$?
DSolve[ y'[x]+1==y[z],y[x],x]
. May be if you explain what you want to writey[-x]
in there instead ofy[x]
it will help. $\endgroup$