how to trace a mobile when switched off using imei
A switched-off phone is, well, switched off. That means all its radio modules are off. That means that it is not connected to any external equipment. That means that you cannot track it. 

BTW you also cannot track your phone if it's in flight mode (I mean here full flight mode with wi-fi switched off).