Meanings
Usage patterns
〈物〉の代わりに〈物〉を使うto use one thing in place of another
I used olive oil instead of butter.
〈人〉の代わりを務めるto act as someone's stand-in or proxy
I ended up acting as a stand-in for the manager.
お代わりをするto have another helping (of food or drink)
I had a second helping of rice.
〈物〉の代わりに〈物〉をあげるto give something in exchange or compensation for another thing
As thanks for helping me, I gave them some sweets in return.
〈人〉の代わりに〈場所〉へ行くto go somewhere in someone's place
I went to the meeting in my mother's place.
Expressions
代わりにinstead of; in place of; as a substitute for · in exchange for; in return for; to make up for 代わりになるsubstitute for; stand in for; fill in for