\begin{align*}
\\ \text{Let } arcsin(x) & = \theta
\\\text{But } \theta \text{ is a function of x so we can write }
\\ arcsin(x) & = \theta(x)
\\ x & = sin(\theta(x))
\\ \frac{d}{dx}x & = \frac{d}{dx}sin(\theta(x))
\\ \text{Imagine f(x) = sin(x) and g(x) = } \theta(x).
\\ \text{Thus, f'(g(x))g'(x) = cos(} \theta(x))\theta'(x).
\\\text{So overall, you differentiated sin(} \theta) \text{ with respect to } \theta.
\end{align*}
I wrote the above in Notion. I managed to align all my equations however, my text is not aligned. I am struggling to fix this.
I am new to LaTeX and to this community so I apologise if my question is in the wrong format.


f'(g(x))g'(x) = cosreally ought to be processed in math mode, not text mode. The fact that no syntax error happens to be thrown in no way implies that it's appropriate to renderf'(g(x))g'(x) = cosin text mode. – Mico Jan 04 '24 at 18:55&at the end of your\textlines, and all&vertically align just left of the=. – Teepeemm Jan 04 '24 at 19:27