Borwein integrals were initially described by David Borwein and Jonathan Borwein in 2001. They consist of a simple family of integrals involving the cardinal sine function “sinc”, so that the first integrals are equal to π\documentclass[12pt]{minimal}
\usepackage{amsmath}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{mathrsfs}
\usepackage{upgreek}
\setlength{\oddsidemargin}{-69pt}
\begin{document}$$\pi $$\end{document} until, suddenly, that pattern breaks. The classical explanation for this fact involves Fourier analysis techniques. In this paper, we show that it is possible to derive an explanation for this result and similar ones by means of undergraduate complex analysis tools; namely, residue theory. Besides, we show that this complex analysis perspective allows us to go beyond the classical result when studying these kinds of integrals. In particular, we obtain a new generalization of the Borwein results.