The Central Idea

An analytical transform is usually written as an integral, an infinite series, or an operator expansion. A computer cannot store infinitely many values or evaluate infinitely many operations. We therefore replace the exact transform problem by a finite approximation.

The basic computational pattern is

\[ \text{continuous problem} \longrightarrow \text{sampled or truncated representation} \longrightarrow \text{finite transform} \longrightarrow \text{numerical result}. \]

A good computational method does more than produce numbers. It preserves as much of the original transform structure as possible, uses that structure for speed, and provides ways to estimate whether the answer is accurate enough for the application.

From Exact Transforms to Finite Computations

Consider the Fourier transform

\[ F(\omega)=\int_{-\infty}^{\infty}f(t)e^{-i\omega t}\,dt. \]

Numerical computation requires several decisions:

Each step changes the mathematical problem slightly. Computational transform methods are therefore inseparable from numerical analysis.

Sampling a Continuous Function

Suppose a function is sampled uniformly at

\[ t_n=t_0+n\Delta t, \qquad n=0,1,\ldots,N-1. \]

The sample values form the finite sequence

\[ x_n=f(t_n). \]

The total observation length is approximately

\[ T=N\Delta t, \]

and the sampling rate is

\[ f_s=\frac{1}{\Delta t}. \]

These choices determine both the highest frequencies that can be represented and the spacing between the discrete frequencies returned by a DFT.

The Discrete Fourier Transform as a Matrix Computation

For samples \(x_0,\ldots,x_{N-1}\), the DFT is

\[ X_k=\sum_{n=0}^{N-1}x_n e^{-2\pi i kn/N}, \qquad k=0,1,\ldots,N-1. \]

This can be written as a matrix-vector product

\[ \mathbf X=F_N\mathbf x, \]

where the DFT matrix has entries

\[ (F_N)_{kn}=e^{-2\pi i kn/N}. \]

The matrix viewpoint makes the transform's linearity explicit. The algorithmic challenge is that direct matrix multiplication requires on the order of \(N^2\) arithmetic operations.

The Fast Fourier Transform

The fast Fourier transform, or FFT, is a family of algorithms for evaluating the DFT much more efficiently than direct summation.

A direct DFT requires approximately

\[ O(N^2) \]

operations. A typical FFT reduces the work to approximately

\[ \boxed{O(N\log N)}. \]

This reduction is one of the major algorithmic achievements of numerical mathematics. It makes large-scale spectral analysis, image processing, simulation, filtering, convolution, and PDE solvers computationally practical.

Why the FFT Can Be Fast

FFT algorithms exploit repeated structure in the complex roots of unity. When \(N\) has a useful factorization, the DFT can be decomposed into smaller DFTs and recombined efficiently.

For example, when \(N\) is even, the sum can be separated into even- and odd-indexed samples. The two smaller transforms share many factors that would be recomputed in a direct implementation.

The important conceptual point is that the FFT is not a different transform. It is a faster algorithm for computing the same DFT.

Frequency Bins

For a sampling interval \(\Delta t\), the DFT frequency spacing is

\[ \Delta f=\frac{f_s}{N}=\frac{1}{N\Delta t}=\frac{1}{T}. \]

The frequency associated with index \(k\) is initially interpreted as

\[ f_k=\frac{k}{N\Delta t}. \]

For a two-sided spectrum, indices above the Nyquist location are commonly reinterpreted as negative frequencies. This arrangement reflects the periodic frequency structure of the DFT.

Sampling Rate and the Nyquist Limit

Uniform sampling at rate \(f_s\) can distinguish frequencies only up to the Nyquist frequency

\[ f_N=\frac{f_s}{2}. \]

Frequencies above this limit can appear as lower frequencies in the sampled data. This phenomenon is aliasing.

Avoiding aliasing requires more than a fast transform. The original sampling process must preserve the frequencies of interest, often with an analog or digital anti-aliasing filter applied before downsampling.

Example: Frequency Resolution

Suppose \(N=2048\) samples are collected at

\[ f_s=1024\text{ Hz}. \]

The observation duration is

\[ T=\frac{N}{f_s}=2\text{ s}, \]

so the frequency spacing is

\[ \boxed{\Delta f=\frac{1}{T}=0.5\text{ Hz}}. \]

The Nyquist frequency is

\[ \boxed{512\text{ Hz}}. \]

Normalization Conventions

Different software libraries place normalization factors in different locations. A common DFT pair is

\[ X_k=\sum_{n=0}^{N-1}x_n e^{-2\pi i kn/N} \]

and

\[ x_n=\frac{1}{N}\sum_{k=0}^{N-1}X_k e^{2\pi i kn/N}. \]

Another convention distributes factors symmetrically using \(1/\sqrt N\) in both directions. The underlying transform is equivalent, but amplitudes and Parseval formulas must be interpreted using the convention actually implemented.

Real-Valued Data and Conjugate Symmetry

If the input sequence is real, its DFT satisfies

\[ X_{N-k}=\overline{X_k}. \]

The negative-frequency half therefore contains no independent information. Many numerical libraries provide specialized real-input FFT routines that exploit this symmetry to reduce memory and arithmetic.

A one-sided amplitude spectrum must still be scaled carefully. Interior positive frequency amplitudes are commonly doubled because their negative-frequency partners have been omitted.

Finite Observation Windows

Sampling a signal for a finite duration is equivalent to multiplying an ideal infinite-duration signal by a window function. Multiplication in time becomes convolution in frequency, so the measured spectrum is not exactly the true spectrum.

A sharp rectangular observation window produces a sinc-like spectral response. Energy can therefore spread into nearby frequency bins even when the underlying signal contains a single sinusoid.

Spectral Leakage

Spectral leakage occurs when energy from one frequency spreads across several DFT bins. It is especially visible when the observation interval does not contain an integer number of cycles of a sinusoidal component.

Leakage is not primarily an FFT error. It is a consequence of finite observation and the implicit periodic extension assumed by the DFT.

Window Functions

A window tapers the sampled data before the transform. Common windows include Hann, Hamming, Blackman, and related families.

Windowing can reduce distant spectral sidelobes, but it also broadens the main spectral peak. The choice is therefore a tradeoff between separating nearby frequencies and suppressing leakage from strong components.

There is no universally best window. The appropriate choice depends on which errors matter most in the application.

Zero Padding

Zero padding appends zeros to a finite sequence before computing its DFT. If the original data contain \(N\) samples and zeros are added to reach \(M>N\), the FFT returns more closely spaced frequency samples.

Zero padding can make a plotted spectrum look smoother and can improve numerical localization of a spectral peak, but it does not create new information or improve the intrinsic resolving power set by the original observation length.

Truncation Error

Analytical transforms often involve infinite domains or infinitely many basis functions. Computational methods truncate them.

For a spectral expansion

\[ f(x)=\sum_{n=0}^{\infty}a_n\phi_n(x), \]

the numerical approximation may use only the first \(M+1\) modes:

\[ f_M(x)=\sum_{n=0}^{M}a_n\phi_n(x). \]

The omitted tail produces truncation error. Rapidly decaying coefficients usually indicate that a modest number of modes may be sufficient.

Aliasing in Spectral Computation

Aliasing also appears when nonlinear operations generate frequencies above the representable range. For example, multiplying two band-limited numerical functions can create higher-frequency modes that fold back into lower modes on a finite grid.

Spectral PDE solvers often use dealiasing strategies, such as temporarily padding the spectrum before forming nonlinear products and then truncating back to the original range.

Numerical Convolution

Direct linear convolution of sequences of lengths \(N\) and \(M\) requires roughly \(NM\) multiplications. For long sequences, the convolution theorem can be much faster:

\[ x*h = \operatorname{IDFT} \left( \operatorname{DFT}(x)\operatorname{DFT}(h) \right). \]

FFT-based convolution is especially useful for long filters, large images, and repeated convolution operations.

Linear versus Circular Convolution

Multiplication of two DFTs followed by an inverse DFT naturally produces circular convolution. To recover ordinary linear convolution, the sequences must be zero-padded sufficiently.

If the sequence lengths are \(N\) and \(M\), the linear convolution has length

\[ \boxed{N+M-1}. \]

Therefore the FFT length should be at least \(N+M-1\). A larger convenient FFT size may be chosen for performance.

Example: FFT Convolution Length

Suppose one sequence has length \(1000\) and another has length \(300\). Their linear convolution contains

\[ 1000+300-1=1299 \]

samples. The sequences may be padded to length \(1299\) or to a larger algorithmically convenient length, such as \(2048\), before applying FFT-based convolution.

Spectral Differentiation

For a periodic function, differentiation becomes multiplication in Fourier space. If

\[ f(x)=\sum_k \widehat f_k e^{ikx}, \]

then

\[ f'(x)=\sum_k ik\widehat f_k e^{ikx}. \]

Numerically, we can:

  1. compute the FFT of the sampled function;
  2. multiply each coefficient by its corresponding \(ik\);
  3. apply the inverse FFT.

For sufficiently smooth periodic functions, this can be dramatically more accurate than low-order finite differences at comparable grid sizes.

Spectral Second Derivatives

Applying the derivative rule twice gives

\[ \widehat{f''}_k=-k^2\widehat f_k. \]

This simple multiplier is central to transform-based solvers for diffusion, Poisson equations, wave equations, and other PDEs on periodic domains.

Differential operators that are complicated in physical coordinates can become diagonal or nearly diagonal in spectral coordinates.

Spectral Integration

Integration can also be performed by dividing nonzero Fourier modes by \(ik\):

\[ \widehat F_k=\frac{\widehat f_k}{ik}, \qquad k\ne0. \]

The zero-frequency mode requires separate treatment because division by \(k=0\) is undefined. This reflects the arbitrary constant of integration and, in periodic problems, possible compatibility conditions involving the mean value.

Transform Methods for Periodic PDEs

Consider the periodic heat equation

\[ u_t=\kappa u_{xx}. \]

Transforming in space gives one ordinary differential equation per Fourier mode:

\[ \frac{d\widehat u_k}{dt} = -\kappa k^2\widehat u_k. \]

Therefore

\[ \widehat u_k(t) = \widehat u_k(0)e^{-\kappa k^2t}. \]

The spatial coupling has disappeared. The numerical problem is reduced to evolving independent modes and applying an inverse transform when the physical-space solution is required.

Pseudospectral Methods

A pseudospectral method alternates between spectral coefficients and point values. Linear derivative operations are often performed in transform space, while nonlinear products are usually easier to evaluate pointwise in physical space.

A typical cycle is

\[ \text{values} \xrightarrow{\text{FFT}} \text{coefficients} \xrightarrow{\text{spectral operation}} \text{modified coefficients} \xrightarrow{\text{IFFT}} \text{values}. \]

This hybrid strategy combines the efficiency of FFTs with the simplicity of pointwise arithmetic.

Chebyshev and Cosine-Based Methods

Fourier bases are natural on periodic domains. On finite nonperiodic intervals, polynomial bases such as Chebyshev polynomials are often more appropriate.

Chebyshev expansions are closely connected to cosine transforms. Specially chosen grid points cluster near interval endpoints, helping represent boundary behavior and reducing oscillatory interpolation errors.

Computational spectral methods therefore extend beyond the ordinary FFT. The same philosophy applies: choose a basis adapted to the domain and operator, transform into coefficients, perform simple operations there, and transform back when needed.

The Discrete Cosine Transform

The discrete cosine transform, or DCT, represents finite real data using cosine basis functions. Several closely related DCT conventions exist.

DCTs are useful when even symmetry or nonperiodic endpoint behavior is more natural than a full complex Fourier representation. They are widely used in compression, approximation, Poisson solvers, and Chebyshev spectral algorithms.

The Discrete Sine Transform

The discrete sine transform, or DST, uses sine basis functions and is naturally associated with odd extensions and homogeneous Dirichlet-type boundary behavior.

In boundary-value computations, choosing a sine or cosine transform can encode the boundary conditions directly into the basis. This can transform a large coupled linear system into independent scalar equations for spectral coefficients.

Computing Eigenfunction Expansions

For a general orthogonal basis \(\{\phi_n\}\), coefficients may be approximated by quadrature:

\[ a_n = \frac{\langle f,\phi_n\rangle}{\langle\phi_n,\phi_n\rangle} \approx \frac{\sum_j w_j f(x_j)\phi_n(x_j)} {\sum_j w_j\phi_n(x_j)^2}. \]

Here \(x_j\) are quadrature points and \(w_j\) are numerical integration weights. The accuracy depends on the smoothness of the functions, the quadrature rule, and the number and placement of sample points.

Matrix Eigenproblems in Spectral Computation

When a differential operator is discretized, a continuous eigenvalue problem

\[ L\phi=\lambda\phi \]

becomes a matrix problem

\[ A\mathbf v=\lambda\mathbf v. \]

Numerical eigensolvers approximate the dominant, smallest, or otherwise relevant parts of the spectrum. Large-scale problems rarely require every eigenpair; modern iterative algorithms can target only the modes needed for the application.

Truncated Spectral Decomposition

Suppose a symmetric matrix has spectral decomposition

\[ A=Q\Lambda Q^T. \]

A reduced approximation may retain only selected eigenpairs:

\[ A_r=\sum_{j=1}^{r}\lambda_j q_jq_j^T. \]

Truncation can reduce storage, suppress weak modes, and accelerate later calculations. The usefulness of the approximation depends on how much of the relevant spectral content is captured by the retained modes.

Numerical Laplace Transforms

The Laplace transform

\[ F(s)=\int_0^{\infty}f(t)e^{-st}\,dt \]

can be approximated by truncating the infinite interval and applying numerical quadrature:

\[ F(s) \approx \sum_{j=0}^{N}w_j f(t_j)e^{-st_j}. \]

Because the exponential factor often damps the integrand when \(\operatorname{Re}s>0\), the transform may be numerically well behaved in some regions. The required truncation length still depends on the decay of the integrand and the desired accuracy.

Numerical Inverse Laplace Transforms

Inverting a Laplace transform numerically is generally more delicate than evaluating the forward transform. Formally,

\[ f(t) = \frac{1}{2\pi i} \int_{\gamma-i\infty}^{\gamma+i\infty} F(s)e^{st}\,ds. \]

A numerical method replaces this Bromwich contour integral by a finite sum or a specially designed quadrature. Contour placement, truncation, oscillation, and amplification of transform error all matter.

Numerical inverse Laplace problems can be ill-conditioned, so results should be checked against known asymptotics, conservation laws, direct simulations, or other independent information whenever possible.

Nonuniform Sampling

The ordinary FFT assumes equally spaced samples. Real data may arrive at irregular times or locations.

Possible strategies include:

Interpolation is convenient but can introduce its own smoothing or aliasing. The numerical method should therefore reflect the actual sampling pattern rather than assuming uniformity when it is not present.

Conditioning

A computational problem is well-conditioned when small perturbations in the input produce only small changes in the desired output. It is ill-conditioned when small data errors can be greatly amplified.

Transform methods do not automatically remove conditioning problems. For example, deconvolution requires division by a frequency response:

\[ X(\omega)=\frac{Y(\omega)}{H(\omega)}. \]

If \(|H(\omega)|\) is very small, measurement noise in \(Y\) can be magnified dramatically. A stable numerical algorithm cannot make an inherently ill-conditioned inverse problem well-conditioned without adding assumptions or regularization.

Regularization in Transform Space

One way to stabilize an inverse problem is to suppress spectral components that would otherwise be amplified excessively.

Instead of directly dividing by a small transfer function, a regularized inverse may use a bounded spectral multiplier. The exact form depends on the problem and on assumptions about noise and smoothness.

Spectral regularization illustrates a recurring computational principle: not every mathematically invertible transformation should be inverted naively in finite precision and noisy data.

Floating-Point Roundoff

Computers represent most real numbers approximately. Every long transform computation therefore accumulates some floating-point roundoff.

For well-scaled FFT calculations, roundoff is usually much smaller than modeling, sampling, and truncation errors. It can become important when:

The Main Sources of Computational Error

A transform calculation can contain several distinct errors.

Reliable computation requires identifying which source dominates rather than treating every discrepancy as an FFT or software error.

Convergence Testing

A basic numerical reliability test is to refine the computation and see whether the quantity of interest stabilizes.

For example, compare results using

\[ N, \qquad 2N, \qquad 4N \]

sample points. If the solution changes substantially under refinement, the original grid was probably insufficient. If it stabilizes to the required tolerance, the computation has evidence of numerical convergence.

Parseval and Energy Checks

Transform identities can provide numerical verification. Under the common DFT convention,

\[ \sum_{n=0}^{N-1}|x_n|^2 = \frac{1}{N} \sum_{k=0}^{N-1}|X_k|^2. \]

If a computed transform and inverse transform violate the expected energy relation by more than numerical tolerance, the implementation may have a scaling, indexing, or normalization error.

Transform-and-Inverse Checks

Another powerful check is round-trip reconstruction:

\[ \mathbf x \xrightarrow{\text{transform}} \mathbf X \xrightarrow{\text{inverse transform}} \widetilde{\mathbf x}. \]

For a lossless transform and consistent normalization, the reconstruction error

\[ \|\widetilde{\mathbf x}-\mathbf x\| \]

should be close to floating-point error. A large discrepancy indicates a mismatch in conventions, indexing, scaling, or data handling.

Computational Cost and Memory

Algorithm choice must account for both arithmetic and storage. A dense \(N\times N\) transform matrix requires on the order of \(N^2\) stored numbers, while an FFT can operate directly on vectors with memory proportional to \(N\).

For multidimensional data, memory can become the primary bottleneck. A three-dimensional array with \(N\) points in each direction contains \(N^3\) values. Efficient transform methods therefore rely on separability, in-place algorithms, blocked computation, and careful management of intermediate arrays.

Multidimensional Transforms

A two-dimensional DFT can be computed by applying one-dimensional transforms along each coordinate direction. If \(x_{mn}\) is image or grid data, then

\[ X_{k\ell} = \sum_m\sum_n x_{mn} e^{-2\pi i(km/M+\ell n/N)}. \]

Because the kernel separates into a product, the transform can be evaluated as a sequence of one-dimensional FFTs. The same idea extends to higher-dimensional arrays and is central to image analysis and PDE simulation.

Choosing a Transform for the Problem

The best computational transform is determined by structure, not habit.

A transform is most efficient when its basis matches the geometry, boundary conditions, regularity, and operator structure of the problem.

A Reliable Computational Workflow

  1. Identify the mathematical transform or spectral representation that fits the problem.
  2. Determine the physical domain, units, boundary conditions, and sampling geometry.
  3. Choose a sample rate or grid fine enough for the relevant scales.
  4. Decide whether truncation, windowing, padding, or dealiasing is needed.
  5. Choose a transform convention and record its normalization.
  6. Use an efficient algorithm such as an FFT when the structure permits it.
  7. Perform the required spectral operation.
  8. Apply the inverse transform if a physical-domain result is needed.
  9. Check reconstruction, conservation, symmetry, energy, or known limiting behavior.
  10. Refine the grid or truncation and confirm numerical convergence.
  11. Report the result together with the computational assumptions and relevant error limits.

Example: Spectral Differentiation of a Sine Wave

Suppose

\[ f(x)=\sin(3x) \]

is sampled on a periodic grid. The Fourier representation has nonzero modes only at \(k=\pm3\). Multiplying the Fourier coefficients by \(ik\) produces the derivative coefficients.

After the inverse transform,

\[ \boxed{f'(x)=3\cos(3x)}. \]

When the sinusoid is exactly resolved by the periodic grid, the spectral derivative can reproduce this result to nearly machine precision.

Example: Detecting a Sinusoidal Frequency

Suppose a signal is sampled for \(4\) seconds at \(200\) Hz. Then

\[ N=800 \]

and

\[ \Delta f=\frac{1}{4}=0.25\text{ Hz}. \]

A pure \(30\) Hz sinusoid lies exactly at bin

\[ k=\frac{30}{0.25}=120. \]

If the observation begins and ends consistently with the periodic extension, the DFT energy is concentrated at the corresponding positive and negative frequency bins.

Example: Solving a Periodic Poisson Equation

Consider

\[ -u''(x)=f(x) \]

on a periodic interval. In Fourier space,

\[ k^2\widehat u_k=\widehat f_k. \]

For \(k\ne0\),

\[ \widehat u_k=\frac{\widehat f_k}{k^2}. \]

The zero mode must be handled separately. A periodic solution requires the forcing to satisfy the compatibility condition

\[ \widehat f_0=0, \]

meaning that \(f\) has zero mean. The solution is then determined up to an additive constant unless an additional normalization is imposed.

Common Error: Confusing the FFT with the Fourier Transform

The FFT is an algorithm for computing the DFT. It does not directly evaluate the continuous Fourier transform without sampling, scaling, and interpretation.

Continuous and discrete transform formulas are closely connected, but the units, normalization, frequency grid, and finite observation window must all be accounted for when comparing them.

Common Error: Assuming More Samples Always Increase Frequency Resolution

Frequency spacing is

\[ \Delta f=\frac{1}{T}. \]

If more samples are taken over the same fixed duration \(T\), the Nyquist range may increase because the sampling rate increases, but the fundamental frequency spacing does not improve. Better intrinsic frequency resolution requires a longer observation time.

Common Error: Treating Zero Padding as New Information

Zero padding gives more frequency samples of the same finite-window spectrum. It can improve visual interpolation and peak-location estimates, but it does not add measurements or separate frequencies that the original observation duration could not resolve.

Common Error: Ignoring Aliasing

Once frequencies above the Nyquist limit have been aliased into the sampled data, an ordinary FFT cannot identify their original frequencies uniquely. Prevention at the sampling stage is therefore essential.

Common Error: Forgetting Padding in FFT Convolution

Multiplying DFTs without adequate zero padding computes circular convolution. If linear convolution is intended, pad to at least \(N+M-1\) samples before the transforms.

Common Error: Ignoring the Zero Mode

Spectral differentiation, integration, and Poisson solvers treat the zero-frequency coefficient differently from nonzero modes. Dividing by \(k\) or \(k^2\) at \(k=0\) is invalid.

The zero mode often represents a mean value, conserved quantity, arbitrary integration constant, or compatibility condition and must be handled explicitly.

Common Error: Trusting a Single Grid

A visually smooth result is not proof of numerical accuracy. The same calculation should be repeated at higher resolution or with a larger truncation limit whenever accuracy matters.

Convergence under refinement is one of the most useful practical checks available.

Practice 1: Frequency Spacing

A signal is sampled at \(f_s=500\) Hz using \(N=2000\) samples. Find the observation duration, the DFT frequency spacing, and the Nyquist frequency.

Practice 2: DFT Bin

Using the data from Practice 1, determine the DFT bin corresponding to a \(37.5\) Hz sinusoid.

Practice 3: Linear Convolution Length

A sequence of length \(256\) is convolved with a filter of length \(65\). What is the exact length of the linear convolution, and what minimum FFT length avoids circular wraparound?

Practice 4: Spectral Derivative

For the Fourier mode

\[ e^{i7x}, \]

state the multiplier used to compute its first derivative and the multiplier used for its second derivative.

Practice 5: Zero Padding

A \(1\)-second record is transformed after padding its \(1000\) measured samples to \(8000\) values. Has the intrinsic frequency resolution improved by a factor of eight? Explain.

Practice 6: Parseval Check

Under the DFT convention used in this lesson, a sequence satisfies

\[ \sum_{n=0}^{N-1}|x_n|^2=24. \]

What must

\[ \sum_{k=0}^{N-1}|X_k|^2 \]

equal when \(N=16\)?

Practice 7: Periodic Poisson Compatibility

Consider

\[ -u''(x)=3+\cos x \]

on a periodic interval of length \(2\pi\). Does a periodic solution exist? Explain using the zero mode.

Practice 8: Aliasing

A sinusoid at \(70\) Hz is sampled at \(100\) Hz. What frequency below the Nyquist limit can it appear as in the sampled data?

Practice 9: Complexity

Compare the asymptotic arithmetic cost of a direct DFT and an FFT for \(N\) data points.

Practice 10: Method Selection

A smooth function is defined on a finite interval with nonperiodic endpoint conditions. Explain why a Chebyshev or sine/cosine spectral method may be preferable to blindly applying a periodic FFT representation.

Practice Answers

Practice 1

The observation duration is

\[ T=\frac{N}{f_s}=\frac{2000}{500}=4\text{ s}. \]

Therefore

\[ \boxed{\Delta f=\frac{1}{T}=0.25\text{ Hz}} \]

and

\[ \boxed{f_N=\frac{f_s}{2}=250\text{ Hz}}. \]

Practice 2

Since \(\Delta f=0.25\) Hz,

\[ k=\frac{37.5}{0.25}=150. \]

Therefore the sinusoid falls at

\[ \boxed{k=150}. \]

Practice 3

The linear convolution length is

\[ 256+65-1=320. \]

Therefore the minimum FFT length that avoids circular overlap is

\[ \boxed{320}. \]

A larger convenient length may also be used.

Practice 4

The first derivative multiplier is

\[ \boxed{i7} \]

and the second derivative multiplier is

\[ \boxed{-49}. \]

Practice 5

No. The original observation duration is still \(1\) second, so the intrinsic resolution remains approximately

\[ \boxed{1\text{ Hz}}. \]

Padding creates a denser set of plotted frequency samples but not eight times more physical information.

Practice 6

Parseval gives

\[ 24=\frac{1}{16}\sum_{k=0}^{15}|X_k|^2. \]

Therefore

\[ \boxed{\sum_{k=0}^{15}|X_k|^2=384}. \]

Practice 7

The forcing has nonzero mean because

\[ \frac{1}{2\pi}\int_0^{2\pi}(3+\cos x)\,dx=3. \]

Thus \(\widehat f_0\ne0\). The periodic Poisson operator annihilates the constant mode, so the compatibility condition fails. Therefore

\[ \boxed{\text{no periodic solution exists}}. \]

Practice 8

With \(f_s=100\) Hz, frequencies separated by integer multiples of \(100\) Hz have the same sampled values. Thus

\[ 70\text{ Hz} \sim 70-100=-30\text{ Hz}. \]

For a real sinusoid this appears at magnitude

\[ \boxed{30\text{ Hz}}. \]

Practice 9

A direct DFT requires

\[ \boxed{O(N^2)} \]

arithmetic, while an FFT typically requires

\[ \boxed{O(N\log N)}. \]

Practice 10

A periodic Fourier basis implicitly identifies the two endpoints. If the function or its derivatives do not match there, the periodic extension can contain jumps or artificial nonsmoothness, reducing spectral efficiency and increasing leakage or Gibbs behavior.

Chebyshev, sine, or cosine bases can match finite-interval geometry and boundary conditions more naturally, so they may achieve higher accuracy with fewer modes.

What to Remember

Computational transform methods convert analytical transform ideas into finite, efficient, and testable numerical procedures.

The governing computational principle is to preserve mathematical structure while controlling approximation error. Fast algorithms matter, but a fast answer is not useful unless its sampling assumptions, normalization, resolution, conditioning, and numerical accuracy are understood.

Where We Go Next

This lesson completes 5.14 Transform and Spectral Methods. The section began with orthogonal expansions, developed Fourier and Laplace transforms, connected convolution with time- and frequency-domain analysis, generalized the ideas through eigenfunctions and spectral decomposition, applied them to filtering and boundary-value problems, and finally translated the theory into computational algorithms.

These methods now form a reusable toolkit for the broader Modeling & Analysis curriculum. They can be carried into differential equations, numerical analysis, optimization, dynamical systems, signal processing, inverse problems, scientific computing, and any setting where a difficult problem becomes simpler after changing representation.