Concept:Integrate the gradient dxdy to find the function, then use the given point to find the constant of integration.Solution:Given: dxdy=2x−6.Integrate both sides with respect to x:y=∫(2x−6)dxy=x2−6x+cThe function passes through (1,2), so substitute x=1, y=2:2=(1)2−6(1)+c2=1−6+c2=−5+cc=7Therefore, y=x2−6x+7.Answer:Option D (x2−6x+7)