The initial value gives you a point through which the solution must pass. I would verify that first:
So, the given solution does satisfy the initial condition.
Now we need to verify the given solution also satisfies the given ODE:
Differentiate with respect to :
If we multiply through by , we find:
Hence, the given solution is not a solution to the stated IVP, but rather is a solution to