The gradients and signs of functions are strongly related for any
nice, smooth curve which you can draw. To get into the problem you
can sketch small line segments and ask yourself: how can these be
smoothly joined together?
Complications can arise for curves which turn suddenly or have gaps
or become infinite at various points. Maybe you could think about
creative ways to get from one place to the next.