Weak Solutions of Cahn-Hilliard Equations having Forcing Terms and Optimal Control Problems (Mathematical Models in Functional Equations)