N3
によって・による
By means of, According to, Depending on, Because of, Due to
地域によって、ゴミ出しルールが違う。
Depending on the area, the rules for throwing out garbage are different.
Explanation
「によって・による」 has 4 uses
1By means of
Shows the means: 「インターネットによって情報を集める」 (gather information through the internet).
調査によって新たな事実が明らかになった。
The investigation brought new facts to light.
話し合いによって決まったのだから、文句言わないで。
Our decision was made through discussion, so don't complain.
2Because of
Gives a cause, followed by its result: 「大雨によって電車が止まった」.
田中さんは火事によってすべての資産を失った。
Tanaka lost everything he owned in the fire.
動かない生活により、人々は以前より心疾患にかかりやすくなってしまった。
Due to sedentary lifestyles, people became more prone than before to suffer from heart diseases.
3Varies by
'Differs by / depends on', often followed by 「違う」 or 「変わる」, or ending in 「による」: 「人によって考え方が違う」.
その車の値段によって、決めます。
I will choose depending on the price of that car.
地域によって、ゴミ出しルールが違う。
Depending on the area, the rules for throwing out garbage are different.
4Done by (passive)
In a passive sentence, names who did it, often for works, inventions and buildings: 「この小説は村上春樹によって書かれた」.
おじは強盗により、命を奪われた。
My uncle was killed by a robber.
この橋は有名な建築家によって設計された。
This bridge was designed by a famous architect.
Mixed up with
The 'means' use is formal and for bigger means. Everyday tools take 「で」: don't say 「×箸によってご飯を食べる」.
In the 'cause' use, the second half can't be will, a request, an order or an invitation. Don't say 「×雨によって、出かけるのをやめよう」.
Formal reports and papers often use 「により」 instead of 「によって」.