It was futile to try and find my homework
It is futile if you force-feed a sick horse.
We have been searching for a suitable house in Amman for two years. So far it has been futile.