Let $\tau$ be the topology on $\mathbb{R}$ generated by $B = \{[a, b)\subset \mathbb{R}: -\infty<a<b<\infty\}$. Then the set $\{x\in \mathbb{R}: 4\sin^2x\leq 1\}\cup \big\{\frac{\pi}{2}\big\}$ is closed in $(\mathbb{R}, \tau)$.
My effort:
We know that $4\sin^2x\leq 1$ whenever $-\frac{1}{2}\leq \sin x \leq \frac{1}{2}$, i.e. $x \in \big[-\frac{\pi}{6}, \frac{\pi}{6}\big]\cup \big[-\frac{11\pi}{6}, \frac{13\pi}{6}\big]\cup\cdots$. How to proceed further?
Since $\left\{\frac\pi2\right\}$ is closed in $(\mathbb{R},\tau)$, all you need to do is to prove that$$\cdots\cup\left[-\frac\pi6,\frac\pi6\right]\cup\left[-\frac{11\pi}{6}, \frac{13\pi}{6}\right]\cup\cdots$$is closed there. But its complement is an union of intervals of the type $(a,b)$, and these intervals are open in $(\mathbb{R},\tau)$.