The ordered pairs (3,9),(4,16),(5,25),(6,36) and (7,49) represent a function. What is a rule that represents this function?

A. y= 3x
B. y= x+6
C. y= 2x
D. y= x^2

D. y= x^2