I'm dealing with linear regression with a continuous outcome. Due to suspected non-linearity in one of the covariates (via scatterplot) I tried some possible transformations of the independent variable. Using the AIC as criterion, I have two models that seem suitable:
Model 1: $$ Y =\beta_0 + \beta_1 X + \beta_2 X^2 $$
Model 2: $$ Y =\beta_0 + \beta_1 X + \beta_2 \log X $$
I stumbled on model 2 more by accident, since I was trying to do a log-transformation but I forgot to exclude the main effect.
Both models give me a better model fit (based on AIC), but the fit with model 2 is even better than that of model 1 (the difference in AIC is quite big). I also tried a log-transformation of $X$ without the untransformed $X$-Term, but that gave me no improvement compared with the original model without transformation.
Is it ok to have $\log X$ as well as $X$ in the model? I don't see a reason why it would be a problem, but I've never encountered this situation before. Hence, I'm not quite sure. Additionally, I'm also not sure how to interpret such a model in terms of the effect of $X$.
Edit: Here the scatterplot with fitted curves superimposed. Model 3 refers to the model with $log(X)$ only.