The derivative can be re-written as .
There will be a solution since r < R (why?).
Now you must test the nature of the solution. Given the model, you're only interested in solutions lying in the domain where will depend on the value of a and b (I'll let you work out the relationship).