UNIHIVE

Study Hub UNIPORT ENG 303

ENG 303 · Engineering Mathematics V (Numerical Methods and Computer Application)

Splines, orthogonal polynomials and the FFT

Piecewise interpolation with cubic splines, approximation with orthogonal and Chebyshev polynomials, and the fast Fourier transform.

Our notes

2 min read

Splines

Instead of one high-degree polynomial, join low-degree pieces smoothly.

  • Linear spline: straight lines between points (what a chart joins with lines).
  • Cubic spline: a cubic on each interval, with the function, its first derivative and second derivative continuous at the joints (knots). It avoids Runge oscillations and looks smooth.
  • n intervals need 4n coefficients: 2n from passing through the points, 2(n − 1) from matching first and second derivatives, and 2 end conditions. A natural spline sets the second derivative to zero at both ends; a clamped spline fixes the end slopes.
  • Solving for the knot second derivatives gives a tridiagonal system, which is fast to solve.

Uses: drawing smooth road and ship profiles (the name comes from the draughtsman's flexible spline), CAD, smoothing robot paths.

Orthogonal polynomials

Functions are orthogonal on [a, b] with weight w(x) if ∫ w(x) pₘ(x) pₙ(x) dx = 0 for m ≠ n. Approximating f by a sum Σ cₙpₙ(x) is then easy: each coefficient is found separately, and adding a term does not change the earlier ones.

  • Legendre polynomials (weight 1 on [−1, 1]): P₀ = 1, P₁ = x, P₂ = (3x² − 1)/2. Used in Gaussian quadrature.
  • Chebyshev polynomials Tₙ(cos θ) = cos(nθ): T₀ = 1, T₁ = x, T₂ = 2x² − 1, T₃ = 4x³ − 3x. Interpolating at Chebyshev points (the roots of Tₙ) keeps the error nearly even across the interval and avoids Runge's phenomenon.

The fast Fourier transform (FFT)

The discrete Fourier transform (DFT) converts N samples of a signal into N frequency components. Done directly it costs about N² operations; the FFT (Cooley and Tukey, 1965) splits it into halves again and again, costing about N log₂N.
Worked example. N = 1,024 samples: N² = 1,048,576 operations against N log₂N = 1,024 × 10 = 10,240, about 100 times fewer.
Uses: vibration analysis of machines and bridges, filtering noise from signals, spectrum analysers, image compression, fast multiplication of large numbers. N should be a power of 2 for the simplest FFT; signals are padded with zeros if needed.

Exams usually ask: state the conditions defining a cubic spline; explain natural and clamped end conditions; define orthogonality; list Chebyshev or Legendre polynomials; explain why the FFT is fast and give its operation count.

Common mistake: saying a cubic spline is one cubic through all points. It is a different cubic on every interval, joined smoothly.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All ENG 303 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.