A particle, which is constrained to move along x-axis, is subjected to a force in the same direction which varies with the distance x of the particle from the origin as F (x) $=-kx+ax^3$. Here, k and a are positive constants. For $x \ge 0$, the functional form of the potential energy U (x) of the particle is