Skip to content
Oakfield Operator Calculus Function Reference Site

Checkerboard Periodic Patterns

Checkerboard patterns arise from products of orthogonal sinusoids or sign-flipped lattices, yielding alternating quadrants across a grid.

A common construction is the signed product of two orthogonal sinusoids:

c(x,y)=sgn ⁣(sin(kxx)sin(kyy))c(x,y) = \operatorname{sgn}\!\big(\sin(k_x x)\,\sin(k_y y)\big)

Defined on two-dimensional spatial domains or grids. Outputs alternate between two levels (e.g. {1,1}\{-1,1\}) across tiles.


  • Fundamental periodicity follows the lattice spacings in each dimension.
  • Dominated by a small set of spectral peaks at the lattice frequencies.
  • Symmetry makes them useful for isolating cross-derivative behavior.

  • Periods: 2π/kx2\pi/k_x in xx and 2π/ky2\pi/k_y in yy.
  • kx=kyk_x=k_y yields isotropic tiling.
  • Smooth precursor: replacing sgn\operatorname{sgn} by the raw product sin(kxx)sin(kyy)\sin(k_x x)\sin(k_y y) gives a smooth sinusoidal checkerboard.

Square waves are the one-dimensional analogue. Products of sinusoids provide the smooth precursor, and Fourier series represent the pattern as a structured sum of harmonics.


Oakfield provides checkerboard patterns as a built-in stimulus:

  • stimulus_checkerboard operator writes structured checkerboard-like forcing with configurable periods and phase parameters, for both real and complex targets.
  • Useful for stressing spatial operators and for generating strongly structured initial conditions without needing external assets.

Checkerboard-like patterns are common diagnostic inputs in numerical PDEs and signal processing because they isolate directional and mixed responses and have simple spectral structure.

They remain a standard stress test for discretizations, filtering, and anisotropic operators.


  • Strikwerda, Finite Difference Schemes and Partial Differential Equations
  • Bracewell, The Fourier Transform and Its Applications