We give a complete solution of the problem of constructing a scattering potential v(x) that possesses scattering properties of one's choice at an arbitrary prescribed wavenumber. Our solution involves expressing v(x) as the sum of at most six unidirectionally invisible finite-range potentials for which we give explicit formulas. Our results can be employed for designing optical potentials. We discuss its application in modeling threshold lasers, coherent perfect absorbers, and bidirectionally and unidirectionally reflectionless absorbers, amplifiers, and phase shifters.Complex scattering potentials in one dimension provide a fertile ground for modeling various active optical systems. Among these are systems displaying spectral singularities [1][2][3][4] and unidirectional reflectionlessness and invisibility [5][6][7][8][9]. Spectral singularities correspond to scattering states that behave exactly like zerowidth resonances [1]. In optics they give rise to lasing at the threshold gain [10] while their time-reversal is responsible for coherent perfect absorption (CPA) or antilasing [11,12]. Unidirectional reflectionlessness and invisibility are also of great interest, because they offer means of realizing one-way linear optical devices [5,7]. The task of designing scattering potentials that support such desirable properties is clearly a problem of basic theoretical and practical importance. In this article we give a complete solution for this problem.Throughout this investigation, we use the transfer matrix of one-dimensional scattering theory [13] as our main tool. For a scattering potential v(x), the general solution of the Schrödiger equation, −ψ ′′ (x)+v(x)ψ(x) = k 2 ψ(x), or the Helmholtz equation, ψ ′′ (x)+k 2 n (x) 2 ψ(x) = 0, has the asymptotic form:where k is the wavenumber, n (x) is a refractive index that we can relate to v(x) via n (x) = 1 − v(x)/k 2 , and A ± and B ± are complex coefficients. The transfer matrix of v(x) (and n (x)) is the 2×2 matrix M satisfyingWe can express it in terms of the left and right reflection amplitudes, R l and R r , and the transmission amplitude T of v(x) according to [1]:Recall that the asymptotic scattering solutions of the above Schrödinger and Helmholtz equations have the formand the reflection and transmission coefficients are given by |R l/r | 2 and |T | 2 . We can use (1), (2) and (3) whereWe respectively refer to these conditions as "left-reflectionlessness" and "right-reflectionlessness." Clearly the condition for bidirectional reflectionlessness is R l = R r = 0. If a potential that is unidirectionally reflectionless at a wavenumber k 0 has a unit transmission amplitude, i.e., T = 1, at this wavenumber, we call it "unidirectionally invisible" [5]. Similarly, we use "left-invisible", "right-invisible", and "bidirectionally invisible" to mean that a potential is respectively leftreflectionless, right-reflectionless, and bidirectionally reflectionless and in addition satisfies T = 1 at k = k 0 .In this article we use the properties of the transfer matrix to addres...