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