N3
代わりに
かわりに
Instead of, In place of, In exchange for
仕事は大変な代わりに楽しい。
Work is hard, but it's fun.
Explanation
「代わりに」 has 3 uses
1Instead of
Something or someone takes the place of another: 「バターの代わりにマーガリンを使う」, 「私の代わりに行って」.
バターの代わりにマーガリンを使っています。
I am using margarine instead of butter.
私の代わりにやってください。
Can you do it in my place?
2In return
One thing is done in exchange for another: 「手伝う代わりに、昼ご飯をおごって」 (I'll help, and you buy me lunch).
俺が社長に電話する代わりに、お前はお客さんに電話をしておいて。
In exchange for me calling the boss, can you call the client in advance?
宿題を教えてあげる代わりに、ジュースを買ってね。
I'll help with your homework, and in return you buy me a juice.
3On the other hand
The same thing has a good side and a bad side: 「家賃が安い代わりに、駅から遠い」 (the rent is cheap, but it's far from the station).
仕事は大変な代わりに楽しい。
Work is hard, but it's fun.
あのプールは古い代わりに安い。
That pool is old, but it's cheap.