Attached is official solution to the question I'm having trouble with.
Putting aside the fact I have no idea how to solve it myself, I can't even understand what they've done to solve it either.
Hoping someone can explain to my the how and the why.
Firstly, the question must obviously introduce the function \(f\left(x\right)=-10x^2\left(2x-3\right)^3\) in some earlier part.
To find the equation of the tangent at any point, we need to know the gradient of the curve at the point, hence, we differentiate \(f\left(x\right)\) using the product rule (note that they substituted in \(x=a\) first, which is not advisable, as this technique won't work when substituting an actual number in).
The value obtained for \(f'\left(a\right)\) is therefore the gradient of the tangent line at \(x=a\), i.e. \(m=-20a\left(2a-3\right)^2\left(5a-3\right)\).
To find the equation of any line, we need it's gradient and a point on the line. The \(x\)-value of the point in question is \(a\), the \(y\)-value can be obtained by substituting \(x=a\) into \(y=f\left(x\right)\), giving \(y=-10a^2\left(2a-3\right)^3\).
The equation of a line can be found by substituting the point \(\left(x_1, y_1\right)\) and the gradient, \(m\) into the equation \(y-y_1=m\left(x-x_1\right)\), which gives the equation given.