This is actually exercise 12.2.H of Vakil's notes. In the notes, a k-scheme is defined to be k-smooth of dimension d if there exists a affine open cover(every is of form $A=k[x_1,...,x_n]/(f_1,...,f_r)$) where the Jacobian matrix has corank d at all points. Then 12.2.H says it suffices to check this at all closed points.
The hint says the points satisfying the condition can be described as locus where the Jacobian matrix has corank d can be described in terms of vanishing and nonvanishing of determinants of certain explicit matrices. I guess here he means the minors. I also know if some property is open(if a point x has property P, then there exists an open neiborhood U s.t. every y in U has property P), then it suffices to check it at closed points. Then I am stucked, could some one help me? Thanks!