how to implement the search form in the main index template

Hi I am trying to implement the global site search form inside the main index template(index.php) of the front page theme.

any helpful code will be really appreciated.
thanks