add a search box to category pages

I would like to add a search box to the top of each category page so people can search for posts etc by typing their search. I am not able to find any discussions or suggestions on this topic. Could someone please help me.