The nonlinear density temperature variations in two-dimensional nanofluid flow over heated vertical surface with a sinusoidal wall temperature are investigated. The model includes the effects of Brownian motion and thermophoresis. Using the boundary layer approximation, the two-dimensional momentum, heat, and mass transfer equations are transferred to nonlinear partial differential equations form and solved numerically using a new method called spectral local linearisation method.The effects of the governing parameters on the fluid properties and on the heat and nanomass transfer coefficients are determined and shown graphically