Total heat flux $Q$ across a surface can be written as $Q = \displaystyle \oint_S \mathbf{q} \cdot \mathbf{\hat{n}}$, where $\mathbf{\hat{n}}$ is the unit normal vector orthogonal to the surface $S$, and $\mathbf{q}$ is the (vector) heat flux per unit surface. **Fourier's law.** Fourier's law states that the heat flux per unit surface is linear with the temperature gradient $\nabla T$. **Fourier's law in 3D.** General form of Fourier's law in 3D physical space reads $\mathbf{q} = -k \, \nabla T = - k \left[ \dfrac{\partial T}{\partial x} \mathbf{\hat{x}} + \dfrac{\partial T}{\partial y} \mathbf{\hat{y}} + \dfrac{\partial T}{\partial z} \mathbf{\hat{z}} \right]$ for an isotropic medium, i.e. the heat-flux per unit of area $\mathbf{q}$ is locally proportional to the temperature gradient $\nabla T$, through the conductivity $k$. **Fourier's law in 1D.** Looking at an elongated element, such as a structural beam/rod with isolated surface or a pipe containing fluid at rest, we can approximately assume that the behavior of this system is approximately 1-dimensional, with the heat conduction occurring only along the axial direction $x$. Fourier's law thus reduce to its $x$-component only $q_x = - k \dfrac{d T}{d x}$, where we can use ordinary derivative assuming all the functions depend only on one variable, namely $x$ coordinate.