Linear and non-linear effects in structure formation