Since it's ashowquestion, two approaches are available to you:

1. Substitute the given solution into the differential equation and show that equality is obtained,

or

2. Solve the differential equation . You could use the integrating factor method here.

Please show what you've done and where you get stuck.