This function generates the second principal component for simulated functional data.
psi2_sim(grid)
grid
Grid of x values over which to evaluate the function.