That is certainly the correct answer (congrats!), but not showing mastery of the Principle of Superpositon.
As the question was given, you should show a clear understanding of THAT principle.
Here's how you may do it.
The Principle of Superposition is a property of what we call linear, homogenous differential equations.
"Linear" means that for every term in the diff.eq, the unknown function "x" or its derivatives is contained AT MOST to the first power; for example the term 1/2x(t) can appear in a linear diff.eq, whereas a term x(t)^2 can not.
"Homogenous" means, basically that all non-zero terms in a linear differential equation are explicit expressions containing the unknown function "x" or its derivatives.
For example, the linear differential eq.
dx/dt-1/2x=0 (**) is homogenous; we have a "zero term", plus two terms, the one being dx/dt, the other 1/2x.
--------------------------------
For linear, homogenous diff. eqs, we have the result: Suppose X(t) and Y(t) are solutions of the diff.eq. Then, the sum Z(t)=a*X(t)+b*Y(t), for arbitrary constants a,b is ALSO a solution. (THIS is the Principle of Superposition!)
To take the example (**) above, with X(t), Y(t) solutions, we may verify that Z(t) is ALSO a solution, by computing LHS:
dZ/dt-1/2*dZ/dt=(a*dX/dt+b*dY/dt)-1/2*(a*X+b*Y)=a*(dX/dt-1/2X)+b*(dY/dt-1/2*Y)=a*0+b*0=0,
that is, Z(t) is also a solution, given that X and Y are solutions!
-------------------------
NOW, your problem was:
dx/dt-1/2x=4 (***)
This is NOT homogenous, because the term "4" is non-zero, and does NOT contain "x" or its derivatives!
However, let X_(p)(t) be a particular solution of (***). Then, a theorem associated with the Principle of Superposition says that if X_(h)(t) is any solution of the associated homogenous diff.eq (that is, (**)), then X_(p)(t)+X_(h)(t) is ALSO a solution of (***)
Why? We insert in LHS:
dX_(p)/dt+dX_(h)/dt-1/2*(X_(p)+X_(h))=dX_(p)/dt-1/2*X_(p)+dX_(h)/dt-1/2*X_(h)=4+0=4,
that is, the sum X_(p)(t)+X_(h)(t) is ALSO a solution of (***).
------------------------------------------------
Given this background, we can now see how you should proceed to solve this problem, utilizing the Principle of Superposition:
1. Find a solution to the homogenous equation, dx/dt-1/2x=0
2. Make a lucky guess at (***)
3. Adjust integration constant from 1. so that the sum from 1.+2. satisfies initial condition.
Now, it is easy to see that the general solution of 1. is x(t)=C*e^(t/2)=X_(h)(t)
Furthermore, for 2: Since the RHS in (3) is a constant, guess at an X_(p)(t)=A, where "A" is some constant to be determined for solving (***)
Inserting X_p(t) into (***), we get: 0-1/2*A=4, that is, A=-8 is a particular solution of (***)
------
Thus, we have a general solution of (***) x(t)=C*e^(t/2)-8.
We find then, that C=9 in order to satisfy the initial condition.