# How can I solve NDSolve with a parameter?

I'm a new user and I have no idea how to solve the equation with a parameter by using NDSolve. For example consider following differential equation (DE):

sol = y'[x] + (y[x] + k) == 0;


where k is a parameter. I want to solve this DE and plot with k range.

Plot[y[x]./x->3, {k, 0, 10}]

• ParametricNDSolve. – march Dec 9 '15 at 2:06

eq = y'[x] + (y[x] + k) == 0;