I realize I’m late to this discussion, but since it’s that time of year again...
Trying to thaw pipes is always more hassle than keeping them from freezing in the first place. When the pipe is installed, the trench needs to be well compacted on the bottom. Any different and you could have settling which will create a low spot for water to sit (and freeze) in the pipe. The trench needs to be sloped, the more the better for greywater (NOT true for septic, but that’s a different discussion). The trench
should have good drainage, so that water is not pooling outside the pipe, which will conduct heat away from the pipe. Dry gravel will not. Again, it is critical that the bottom of the trench is all on the same plane with no low spots. Also critical to avoid driving over the pipe area with anything heavy, as that can cause a low spot to form.
The deeper the pipe can be buried the better. If you can’t get it below frost line for your area, insulate the sides and top of the pipe, but not underneath. You are trying to trap the earth’s heat, which is below the pipe. (If for some reason [bedrock, etc] you can’t bury the pipe deeply then it needs to be encased in insulation a few inches thick). Rigid pink or blue board insulation should be used. The configuration can either be an upside down ‘U’ or ‘V’, with the main thing being to insulate as wide an area as practical. The deeper the pipe and the wider (and thicker) the insulation, the less likely it is to freeze. Last, it’s good to create a slight mound over the trench, so that ground water is directed away, rather than soaking into the backfill.
If you have freezing pipe issues, it would be well worth excavating and re-burying the pipe properly. And running a heat tape the length of the pipe, ‘just in case’.