sed -i \'/first/i This line to be added\'
In this case,how to ignore case while searching for pattern =first
if you want to save some typing, try awk. I don't think sed has that option
awk -v IGNORECASE="1" '/first/{your logic}' file