The definition of peicewise smooth is that a function is differentable on the domain except at a finite number of points. Also at these points both the left and right derviatve must exist.

So for i)

h(x) is continous and differentable everywhere except at x=0. For simplicity note that h(x) is an even function so we only have to test the derviative on one side.

This limit can be resolved using L'hosipitals

by L.H

So now this is the form infinity divided by infinity so we take the derivative to get

So the limit is 0 and both the left and right derviative exist at that point. Also the function can be made continous if we define h(0)=0.

Now try the 2nd one.