You can just consider the derivatives of the answer and reverse engineer (Reverse chain rule). which is way more easier (just manipulate the fraction), but I'll treat it like I have no foresight:
Let so
as ln(a) is a constant value
Similarly for 2, just let x = asecu so you get something similar