(* *) (* Numerical Mathematics and Computing, Fifth Edition *) (* Ward Cheney & David Kincaid *) (* Brooks/Cole Publ. Co. *) (* (c) 2003 *) (* No warranties implied or expressed. *) (* File: ode_2nd_order1 *) (* solution of second-order ODEs *) DSolve[{x''[t] == -3*Cos[t]^2 + 2, x[0] == 0, x'[0] == 0}, x[t], t]