As , then ln(ax) approaches positive infinity when a < 0.
The equation
is the same as
The portion approaches positive infinity as when a < 0.
The portion approaches tan(0) = 0 as .
This is because the 2a/x part approaches 0 as x approaches positive infinity.
This will mean
turns into
The left hand side is one of the indeterminate forms in calculus.
What you'll need to do is rewrite one of the expressions so that you have a ratio of two functions.
This is one rewrite we could do --->
The new equivalent expression is of the form P/Q where and
From here, use L'Hopital's rule to apply the derivative to functions P and Q.
Then apply the limit to see if you get another indeterminate form or not.
If so, then apply L'Hopital's rule again.
If not, then you'll be able to solve for 'a'.