Michael K. answered 03/22/21
PhD professional for Math, Physics, and CS Tutoring and Martial Arts
Given the guess for y(t) = Acos(kt) + Bsin(kt), we can compute the second derivative of y(t) and determine if the differential equation is satisfied...
y(t) = A*cos(kt) + B*sin(kt)
y'(t) = -A*k*sin(kt) + B*k*cos(kt)
y"(t) = -A*k2*cos(kt) - B*k2*sin(kt) = -k2 * ( A*cos(kt) + B*sin(kt) )
We can see that y"(t) = -k2*y(t) which leads to...
y" + k2y = 0