Method of charasteristics

How can I solve this problem?, where C is a constant.
I gained it via the solution of a linear partial differential equation and .
I have a thought, could anybody check, whether it is good or not?
From the first equality . Similarly, , etc. So the general solution is