Final answer:
The general solution to the homogeneous differential equation y''+9y=0 is y(x)=C1*cos(3x)+C2*sin(3x). For the non-homogeneous equation y''+9y=sec^2(3x), the particular solution yp(x) is obtained using the method of variation of parameters, resulting in y(x)=C1*cos(3x)+C2*sin(3x)+yp(x).
Step-by-step explanation:
The question involves solving a non-homogeneous differential equation y''+9y=sec^2(3x). First, we find the general solution to the related homogeneous equation y''+9y=0, which has the form y(x)=C1*cos(3x)+C2*sin(3x), where C1 and C2 are arbitrary constants, and cos(3x) and sin(3x) are the solutions y1(x) and y2(x) respectively. To find the particular solution yp(x) to the non-homogeneous equation, we use the method of variation of parameters. This involves finding functions u1(x) and u2(x) such that yp(x) = y1(x)u1(x) + y2(x)u2(x). After determining u1(x) and u2(x) through integration of specific formulae derived from the non-homogeneity sec^2(3x), we substitute them back to obtain yp(x). The most general solution is then the sum of the homogeneous solution and the particular solution: y(x) = C1*cos(3x) + C2*sin(3x) + yp(x).