The domain of the function is (-∞, 1)U( 1,+∞).
When a > 0, y '' > 0, the function is convex (concave) in (-∞, 1) and (1,+∞).
When a < 0, y'