The condition...

(1)

... means that is a function of the only so that the DE is...

(2)

... where ...

(3)

The (2) is a linear first order DE and its general solution is...

(4)

The constant c is derived [when possible...] from the 'initial conditions' ...

Kind regards