Im wondering about theorems concerning extending Sobolev functions defined on the $d$-dimensional unit cube to all of $\mathbb{R}^d$. More precisely, given $f:[0,1]^d \to \mathbb{R}$ with $f\in H^k([0,1]^d)$, does there exist an extension $\bar{f}:\mathbb{R}^d\to \mathbb{R}$ with $\bar{f}\in H^k(\mathbb{R}^d)$ such that:
- $\bar{f}(x)=f(x)$ for all $x\in [0,1]^d$
- $\|\bar{f}\|_{H^k(\mathbb{R}^d)}\leq C\|f\|_{H^k([0,1]^d)}$
Moreover, if the answer is positive, is it possible to find such an $\bar{f}$ with compact support?
Best Regards