If a scatter diagram shows a non-linear relationship between variables, one has to carry out transformation to make the relationship linear to sketch a straight line. One may think that this is new and may not understand.
Interestingly, knowledge of Additional Mathematics from O-level is extremely helpful. Recall the following facts you have learnt previously in secondary mathematics:
In each case, we are rewriting the non-linear function in the form of Y = mX + c, which is a linear expression. The rest of the steps to find gradient and y-intercept in the transformed expression is routine with the aid of GC.