\documentclass[../script.tex]{subfiles}

% !TEX root = ../../script.tex

\begin{document}
    \chapter{Linear Algebra} 

    \subfile{sections/vector_spaces.tex}
    \subfile{sections/matrices.tex}
    \subfile{sections/determinant.tex}
\end{document}