Let P=(x,y) be a point on the graph of y=sqrt(x). Express the distance d from P to the point (1,0) as a funtion of x.

so I did:

f(x)=sqrt((x^2)+(y^2))

f(x)=sqrt((x^2)+(sqrt(x)^2))

f(x)=sqrt(x^2+x)

f(x)=x(x+1)

my answer options are:

a) d(x) = x^2 +2x+2

b) d(x) = sqrt(x^2-x+1)

c) d(x) = sqrt(x^2-2x+2)

d) d(x) = x^2 -x+1

What am I doing wrong?