How do you determine whether the function y=x2 is concave up or concave down and its intervals?