@22990atinesh,
The first derivative gives the equation of the gradient. For a concave UP (aka MAXIMUM) the value of the gradient is
decreasing, i.e. it goes from +ve, through zero, to -ve , as the tangent travels round the curve from left to right.
see the orange section of the graph which demonstrates this in the green domain (and vice versa for concave DOWN). The second derivative
gives the rate of change of the gradient. If the second derivative is -ve, if means the gradient is decreasing, hence the curve is concave UP.
Differentiation of a quadratic gives the equation of the gradient as a linear function, and the second derivative as a constant. (A non-zero constant implies a
single maximum or minimum which is what you expect for a parabola)