Do you understand what a "vector space" is?
In order to show that a set, with a given "addition" and "scalar multiplication" is a vector space you must show three things:
1) It is non empty. You can do that by showing that it contains the "zero vector" (the additive identity). Here, since the addition is ordinary addition of functions, the additive identity is the 0 function: f(x)= 0 for all x. Show that y= 0 satisfies [tex]a_n(t)y^{(n)}+ a_{n-1}y^{(n-1)}+ \cdot\cdot\cdot+ a_1y'+ a_0y= 0[/tex] for any functions. (The superscript in parentheses indicates the derivative.)
2) It is "closed under scalar multiplication". To do that show that if y(t) satisfies [tex]a_n(t)y^{(n)}+ a_{n-1}y^{(n-1)}+ \cdot\cdot\cdot+ a_1y'+ a_0y= 0[/tex] then so does ay(t) for any number a. That's just a matter of factoring out a.
3) It is "closed under addition". If y= u(t) and y= v(t) both satisfy [tex]a_n(t)y^{(n)}+ a_{n-1}y^{(n-1)}+ \cdot\cdot\cdot+ a_1y'+ a_0y= 0[/tex] then so does y= u+ v. That can be done because the nth derivative is itself "linear"- the nth deriviative of u+ v is the nth derivative of u plus the nth derivative of v.
To show that the solution set of a linear homogeneous nth order equation is a vector space of dimension n, use the "existence and uniqueness theorem" to define the n functions, [itex]u_1[/itex] that satisfies the given equation with initial conditions [itex]u_1(0)= 1[/itex], [itex]u_1'(0)= u_1''(0)= \cdot\cdot\cdot= u_1^{(n-1)}(0)= 0[/itex], [itex]u_2(0)= 0[/itex], [itex]u_2'(0)= 1[/itex], [itex]u_2''(0)= \cdot\cdot\cdot= u_2^{(n-1)}(0)= 0[/itex], etc., with "[itex]u_i(t)[/itex]" being the solution to the differential equation having its ith derivative equal to 1 at t= 0 and all other values 0.
Those are sometimes referred to as the "fundamental solutions" to the differential equation. They have this very nice property: if y(t) is any solution to the differential equation, let [itex]A_1= y(0)[/itex], [itex]A_2= y'(0)[/itex], ... , [itex]A_{n}= y^{(n-1)}(0)[/itex]. Then it is easy to show that [itex]y(t)= A_1u_1(t)+ A_2 u_2(t)+ \cdot\cdot\cdot+ A_{n}u_{n-1}(t)[/itex]. That is, any solution to the differential equation can be written as a linear combination of the "fundamental solutions" so they form a basis for the vector space of all solutions showing that the vector space has dimension n. Any solution can be written as a linear combination of those n independent solutions.
Now, for the non-homogeneous equation, let Y(t) be any function satisfying the equation [itex]a_n(t)y^{(n)}+ a_{n-1}y^{(n-1)}+ \cdot\cdot\cdot+ a_1y'+ a_0y= f(x)[/itex]. Then it is easy to show that if y is any other function satisfying that equation, u(t)= y(t)-Y(t) satisfies the equation [itex]a_n(t)y^{(n)}+ a_{n-1}y^{(n-1)}+ \cdot\cdot\cdot+ a_1y'+ a_0y= 0[/itex]. That is, that y(t)= u(t)+ Y(t), it is the sum of a function in the vector space of solutions to the homogeneous equation plus that one given solution to the entire equation.