によって is a Japanese grammar pattern that is used in a variety of contexts, often meaning "by," "depending on," "due to," or "through." It's used to indicate the agent of an action, the cause, the method, or to express variability depending on the situation.

Formula:

Noun (subject) + は/が + Agent + によって + Passive Verb

Key Points:

This structure applies to many situations, like writing, building, inventing, etc.

Here are the main usages of によって:

1. Indicating the agent of a passive sentence (by):

In passive sentences, によって is used to indicate the person or thing that causes the action.

2. Indicating the cause (due to / because of):

によって can also indicate the reason or cause for something.

3. Indicating a method or means (through / by means of):

It can express the method or means through which something is achieved.