the plane given is

distance formula is

I know that the distance squared will have the same minimizers so I'll use that

I need to solve for z to get it into a two variable problem

now,

my squared distance is

now take gradient, solve for minimizers then sub-in and find distance

correct?