べく, なくして and ずにはおかない: classical-rooted C1 written grammar
Use べく for formal purpose, なくして for an indispensable prerequisite and ずにはおかない for an inevitable effect, distinct from personal compulsion.

In short
Use べく for a formal purpose, なくして for a necessary condition and ずにはおかない for an effect that cannot fail to occur. ずにはいられない, by contrast, expresses an inability to restrain oneself.
Three classical traces still used today
| Form | Construction | Example |
|---|---|---|
| べく | Dictionary form + べく; する → すべく | 原因を究明すべく、調査班を設置した。 |
| なくして | Noun + なくして(は) + negative possibility | 住民の協力なくしては、事業の継続はあり得ない。 |
| ずにはおかない | Negative stem + ずにはおかない; する → せずにはおかない | この判決は、制度の見直しを促さずにはおかないだろう。 |
| ずにはいられない | Negative stem + ずにはいられない | その証言を聞いて、涙を流さずにはいられなかった。 |
The purpose construction べく derives from classical べし. In modern formal writing it often introduces a purposeful subsequent action. Use すべく for する in edited formal prose (the variant するべく is also found). Do not use it simply as a sentence-final recommendation: that is a different construction, べきだ. なくして presents a condition as indispensable; it is stronger than an ordinary hypothetical negative and does not establish that the condition is sufficient.
実態を明らかにすべく、聞き取り調査を実施した。
である体 writtenWe conducted interviews in order to clarify the actual situation.
The investigation is a deliberate step towards a stated goal.
公正な手続きなくしては、信頼の回復は望めない。
である体 writtenWithout fair procedures, recovery of trust cannot be expected.
Fairness is a prerequisite, not a promise of recovery.
The subject of ずにはおかない can be an event, work of art or policy producing an effect: その小説は読者に問い直すことを迫らずにはおかない (that novel is bound to compel readers to reconsider). It can also indicate determination to make something happen. With ずにはいられない, the experiencer is typically a person driven to act or feel. The contrast is between an inevitable or deliberately ensured consequence and an irresistible internal impulse; it is not a blanket distinction between animate and inanimate subjects.