I'm trying to understand the difference between に and で as particles in the following example: 学校に勉強します。 学校で勉強します。 What are the nuances between these two expressions? Any help or explanation is very appreciated.
学校で勉強します is the only correct sentence. 学校に勉強します is ungrammatical.
に can be used when 1) the verb is a motion verb such as 行く and 歩く, or when 2) the verb is an existence verb such as いる or ある. When you "do something" somewhere, you need to use で to mark the location. See: Particles: に vs. で
(If you've already learned the
～に + motion verb construction) You can say 学校に勉強しに行きます ("I go to school to study").