I want to solve a ordinate differential equation, so i enter the code
NDSolve[{y[x] * y''[x] + (y'[x])^2 + (2 * x + y[x]/x) * y'[x] == 0, y[0] == 2, y[inf] == 1}, y, {x, 0, 1}]
:
i get the error as the photo
could you tell me how to check the error?

infis not any defined symbol in Mathematica. If you want to specify a boundary condition at infinite you may want to writeInfinityor [Esc] inf [Esc]. – dpravos May 26 '17 at 13:01