Spectral Methods And Inverse Problems

2y ago
22 Views
2 Downloads
2.63 MB
56 Pages
Last View : 24d ago
Last Download : 3m ago
Upload by : Aiyana Dorn
Transcription

Spectral Methods and Inverse ProblemsOmid KhanmohamadiDepartment of MathematicsFlorida State University

OutlineOutline1Fourier Spectral MethodsFourier TransformsTrigonometric Polynomial InterpolantsFFTRegularity and Fourier Spectral AccuracyWave PDE2System ModelingDirect vs. InversePDE Reconstruction3Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationPotential TheoryChebyshev Spectral Derivative MatrixRegularity and Chebyshev Spectral AccuracyAllen–Cahn PDE

Fourier Spectral MethodsOutline1Fourier Spectral MethodsFourier TransformsTrigonometric Polynomial InterpolantsFFTRegularity and Fourier Spectral AccuracyWave PDE2System ModelingDirect vs. InversePDE Reconstruction3Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationPotential TheoryChebyshev Spectral Derivative MatrixRegularity and Chebyshev Spectral AccuracyAllen–Cahn PDE

Fourier Spectral MethodsFinite DifferencesConsider grid {x1 , . . . , xN } with uniform spacing h and correspondingdata values {u1 , . . . , uN }.For simplicity, assume periodicity u0 : uN and uN 1 : u1 .Let pj be the unique polynomial of degree 2 with pj (xj 1 ) uj 1 ,and pj (xj 1 ) uj 1 , and pj (xj ) uj .Set wj pj0 (xj ). This is the second-order, centered, approximation tou 0 (xj ).Discrete differentiation (a finite dimensional linear operator)representable by a matrix.Tridiagonal, Toeplitz, circulant matrix.

Fourier Spectral MethodsComparison of Finite Difference, Finite Element, andSpectral Methods

Fourier Spectral MethodsFrom Finite Differences to Spectral MethodsHigher order finite difference schemes have matrices of higherbandwidth.Spectral methods: “infinite order” finite difference methods withmatrices of infinite bandwidth (on unbounded/periodic domains).

Fourier Spectral MethodsFourier TransformsContinuous Fourier TransformsFourier transform:Z û(k) u(x)e ikx dx,k R Inverse Fourier transform:1u(x) 2πZ û(k)e ikx dk,x R continuous, unbounded unbounded, continuous

Fourier Spectral MethodsFourier TransformsSemidiscrete Fourier TransformsWavenumber domain a bounded interval of length 2π/h, where h isuniform grid spacingSemidiscrete Fourier transform:v̂ (k) h Xvj e ikxj ,k [ π/h, π/h]j Inverse Semidiscrete Fourier transform:Z π/h1v̂ (k)e ikxj dk,vj 2π π/hdiscrete, unbounded bounded, continuousj Z

Fourier Spectral MethodsFourier TransformsAliasingConsider f and g over R defined by f (x) e ik1 x and g (x) e ik2 x .f and g are equal over R iff k1 k2 .Consider restrictions of f and g to hZ defined by fj e ik1 xj andgj e ik2 xj .f and g are equal over hZ iff k1 k2 is an integer multiple of 2π/h.For any Fourier mode e ikx there are infinitely many others (known asits “aliases”) that match it on a uniform grid.

Fourier Spectral MethodsFourier TransformsDiscrete Fourier TransformsAssume N, number of grid points, even.Assume function u periodic with period 2π on [0, 2π].Assume uniform grid spacing h 2π/N.Discrete Fourier transform (DFT):v̂k hNXvj e ikxj ,k { N/2 1, . . . , N/2}j 1Inverse Discrete Fourier transform:1vj 2πN/2Xv̂k e ikxj ,k N/2 1discrete, bounded bounded, discretej {1, . . . , N}

Fourier Spectral MethodsFourier TransformsFourier Transforms, cont’dPhysical space:Fourier discrete

Fourier Spectral MethodsTrigonometric Polynomial InterpolantsBand-Limited Interpolant for Discrete Case“Think globally. Act locally.”Define a trigonometric interpolant by evaluating the formula forinverse discrete Fourier transform for x R rather than justxj {h, 2h, . . . , 2π h, 2π} and correct the asymmetry in highestwavenumber by noting that v̂ ( N/2) v̂ (N/2) (due to periodicity)to get:0 N/21 Xv̂k e ikx , x [0, 2π]p(x) 2πk N/2Prime means divide first and last terms by two. That will produce acos(Nx/2).

Fourier Spectral MethodsTrigonometric Polynomial InterpolantsBand-Limited Interpolant for Discrete Case, cont’dPeriodic grid functionPas a linear combination of periodic Kroneckerdelta functions: vj Nm 1 vm δj m .Band-limited trigonometric interpolant of periodic Kronecker delta(previous sum for v̂k h)pδ (x) sin(πx/h) : psincN (x)(2π/h)tan(x/2)Band-limitedP interpolant in terms of psinc:p(x) Nm 1 vm psincN (x xm )Set wj p 0 (xj ). This is an spectral approximation to u 0 (xj ).Differentiation operator matrix in Cartesian basis DN toeplitz 12 [· · · , cot(2h/2), cot(1h/2), 0, cot(1h/2), cot(2h/2), · · · ].

Fourier Spectral MethodsFFTFFT Implementation of Fourier Spectral MethodsCompute v̂ from v .Define ŵj (ik)r v̂k (Fourier diagonalizes differentiation) butŵN/2 0 if r is odd.Compute w from v̂ .Note: FFTW, used in Matlab and many other packages, storeswavenumbers in a different order than used here; that order in thisnotation becomes: 0:N/2-1 0 -N/2 1:-1

Fourier Spectral MethodsFFTFFT Fun FactsFFT should probably be called “FGT.” What we now know as FFTwas discovered by Gauss when he was 28 (in 1805). Fouriercompleted his first big article two years after that! Gauss wrote onthe subject but he did not publish it.Cooley and Tukey rediscovered FFT in 1965.

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyRegularity of Function and Accuracy of Fourier SpectralMethodsRegularity transforms to decay, because more regularity means slowerchanges in the function, which in turn mean less energy at higherwavenumbers.A rapidly decaying Fourier transform means small errors due todiscretizations, because these errors are caused by aliasing of higherwavenumbers to lower ones.

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyRegularity Transforms to Decay(a) If u has r 1 continuous derivatives in L2 (R) for some r 0 andan r th derivative of bounded variation, then û(k) O( k r 1 ) as k .(b) If u has infinitely many continuous derivatives in L2 (R), thenû(k) O( k m ) as k .(c) If there exist a, c 0 such that u can be extended to an analyticfunction in the complex strip Im z a with ku(. iy )k cuniformly for all y ( a, a), then ua L2 (R), whereua (k) e a k û(k). The converse also holds.(d) If u can be extended to an entire function and there exist a 0such that u(z) o(e a z ) as z for all z C, then û hascompact support contained in [ a, a].

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyRegularity Transforms to Decay, Examples(a) with r 0(a) with r 1(c) and (a) with r 1“between” (c) and (d)s(x) 12 χ[ 1,1]s s(x)σu(x) x 2 σ222e x /2σŝ(k) sin(k)/ksd s(k) (sin(k)/k)2û(k) πe σ k p2 2û(k) σ π/2e σ k /2

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracySpectral Approximation to Derivatives of Hat Function ande sin(x)

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyFinite Difference Approximation to Derivative of e sin(x)

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyFourier Spectral Approximation to Derivative of e sin(x)

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyTheoremPoisson summation (aka Aliasing) Let u L2 (R) have a first derivativeof bounded variation, and let v be the grid function on hZ defined byvj u(xj ). Then for all k [ π/h, π/h],v̂ (k) Xû(k 2πj/h)j Bring û(k) to LHS. All other modes amount to aliasing error.

Fourier Spectral MethodsRegularity and Fourier Spectral AccuracyAccuracy of Fourier Spectral DerivativeLet u L2 (R) have a νth derivative (ν 1) of bounded variation and letw be the νth spectral derivative of u on the grid hZ. The following holduniformly on the grid.(a) If u has r 1 continuous derivatives in L2 (R) for some r ν 1and an r th derivative of bounded variation, then wj u (ν) (xj ) O( h r ν ) as h 0.(b) If u has infinitely many continuous derivatives in L2 (R), then wj u (ν) (xj ) O( h m ) as h 0, for every m 0.(c) If there exist a, c 0 such that u can be extended to an analyticfunction in the complex strip Im z a with ku(. iy )k cuniformly for all y ( a, a), then wj u (ν) (xj ) O(e π(a )/h ) ash 0 for every 0.(d) If u can be extended to an entire function and there exist a 0such that u(z) o(e a z ) as z for all z C, then, providedh π/a, wj u (ν) (xj ).

Fourier Spectral MethodsRegularity and Fourier Spectral Accuracy

Fourier Spectral MethodsWave PDEVariable Coefficient Wave EquationConsider ut c(x)ux 0, c(x) 1/5 sin2 (x 1) for x [0, 2π],t 0, with periodic boundary conditions and initial condition2u(x, 0) e 100(x 1) .For time derivative use a leap frog scheme and approximate spatialderivatives spectrally.Leap frog needs two initial conditions to start. PDE gives one. Forsimplicity, extrapolate backwards assuming constant wavespeed of1/5. (Could use a one-step formula like Runge–Kutta to start off leapfrog.)

Fourier Spectral MethodsWave PDEWave PDE, Spectral Spatial Discretization and Leap FrogTime Marching CodeN 128; h 2 pi/N; x h (1:N); t 0; dt h/4;c .2 sin(x 1).ˆ2;v exp( 100 (x 1).ˆ2); vold exp( 100 (x .2 dt 1).ˆ2);tmax 8; tplot .15; clf, drawnowplotgap round(tplot/dt); dt tplot/plotgap;nplots round(tmax/tplot);data [v; zeros(nplots,N)]; tdata t;

Fourier Spectral MethodsWave PDEWave PDE Code, Cont’dfor i 1:nplotsfor n 1:plotgapt t dt;v hat fft(v);w hat 1i [0:N/2 1 0 N/2 1: 1] . v hat;w real(ifft(w hat));vnew vold 2 dt c. w; vold v; v vnew;enddata(i 1,:) v; tdata [tdata; t];end

Fourier Spectral MethodsWave PropagationWave PDE

System ModelingOutline1Fourier Spectral MethodsFourier TransformsTrigonometric Polynomial InterpolantsFFTRegularity and Fourier Spectral AccuracyWave PDE2System ModelingDirect vs. InversePDE Reconstruction3Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationPotential TheoryChebyshev Spectral Derivative MatrixRegularity and Chebyshev Spectral AccuracyAllen–Cahn PDE

System ModelingDirect vs. InverseDirect vs. Inverse ModelingDirect: Based on First Principles (Fundamental/Constitutive laws).Inverse: Data Driven (Process Control, Fault Diagnosis, ReverseEngineering of Gene Regulatory Networks).

System ModelingDirect vs. InverseDrawbacks of Direct ModelingNot all first principles known for complex systems.Full set of Initial/Boundary Conditions not available.Discrepancy between prediction of model and behavior of system dueto simplifying assumptions (Inadequate Parameters) in modeling.

System ModelingPDE ReconstructionPDE Reconstruction based on RegressionRegression: Parameter equations derived from discretized PDEdirectly.Benefits: Relatively low computational cost; generalizability tomultiple dimensions.Downsides: Relatively high resolution data demands; noise prune.

System ModelingPDE ReconstructionIdentification of Partial Differential EquationsMathematical structure: a nonlinear monomial basis PDE containingall linear combinations of the monomials up to a certain derivativeorder and nonlinearity degree (Volterra Model).Temporal and spatial discretization, the latter using spectral methods,leads to an over-determined system of linear algebraic equationsAα b whose unknowns α are the parameters we seek.

System ModelingPDE ReconstructionStructure Selection using Least Squares with QRDecompositionWith zero mean white noise, this gives maximum-likelihood estimate(MLE) of parameters.Orthonormal basis vectors in Q allow error reduction resulting fromeach parameter to be calculated independently.With no parameters maximum (squared) error would be b T b.Addition of every parameter αj leads to an error reduction of βj2where Rα β and Qβ b.Error Reduction Ratio (ERR) βj2 /b T b.

System ModelingPDE ReconstructionReconstruction of Kuramoto–Sivashinsky PDEut uux uxx uxxx ,(x, t) I R u(x, 0) u0 (x), u(x L, t) u(x, t)I [0, L), L 32π, 1, u0 (x) cos(x/16)(1 sin(x/16))Simulated till t 150s with exponential time differencing for timemarching and spectral methods for spatial discretization.Assume a degree of nonlinearity 2 and a highest order of spatialderivative of 4, giving a total number of 28 monomials in the modelstructure. Structure selection (SS), aka model reduction, means omitparameters with ERR less than a threshold. Here ERR threshold0.5%.

System ModelingKS EvolutionPDE Reconstruction

System ModelingKS Parameters IdentifiedPDE Reconstruction

Chebyshev Spectral MethodsOutline1Fourier Spectral MethodsFourier TransformsTrigonometric Polynomial InterpolantsFFTRegularity and Fourier Spectral AccuracyWave PDE2System ModelingDirect vs. InversePDE Reconstruction3Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationPotential TheoryChebyshev Spectral Derivative MatrixRegularity and Chebyshev Spectral AccuracyAllen–Cahn PDE

Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationAlgebraic Polynomial InterpolationFourier was for periodic domains. What to do for nonperiodicdomains?Periodic extension? Not unless solutions is exponentially close to aconstant, because smooth becomes nonsmooth leading to globalcontamination (Gibbs phenomenon)—error in interpolant O(1), errorin derivative O(N), etc.Solution: Replace trigonometric polynomials with algebraic ones.What about the grid? Equispaced leads to Runge’s phenomenon.Use clustered grids with density asymptotic to µ(x) N/π 1 x 2 .Distance between adjacent nodes approximately 1/µ(x). Averagespacing O(N 2 ) near end points and O(N 1 ) in the interior.

Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationChebyshev PolynomialsExplicit equation Tn (x) cos(ncos 1 (x))Extrema at x cos(kπ/n), k 0 : nZeros at x cos((k 1/2)π/n), k 0 : n 1Difference equation Tn (x) 2xTn 1 (x) Tn 2 (x),T0 (x) 1, T1 (x) x

Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationChebyshev Polynomial Graphs in [ 1, 1]

Chebyshev Spectral MethodsAlgebraic Polynomial InterpolationAlgebraic Polynomial Interpolation in Equispaced andChebyshev Points for u(x) 1/(1 16x 2 )

Chebyshev Spectral MethodsPotential TheoryNode Density and Potential Function p(z) e NφN (z) , where φN (z) N 1R1φ(z) 1 ρ(x)log z x dxPNj 1 log z zj Equispaced nodes, uniform distribution ρ(x) 1/2, x [ 1, 1].φ(0) 1 and φ( 1) 1 log (2)Chebyshev nodes,Chebyshev distribution ρ(x) 1/π 1 x 2 , x [ 1, 1]. φ(x) log (2) for all x [ 1, 1]

Chebyshev Spectral MethodsPotential TheoryPolynomials and their Equipotential Curves

Chebyshev Spectral MethodsChebyshev Spectral Derivative MatrixChebyshev Spectral Derivative Matrix

Chebyshev Spectral MethodsChebyshev Spectral Derivative MatrixChebyshev Spectral Derivative Matrix, ValuesD5 0000.2764-0.38200.7236-2.6180-8.5000

Chebyshev Spectral MethodsChebyshev Spectral Derivative MatrixChebyshev Spectral Derivative Matrix, Bar Plot

Chebyshev Spectral MethodsChebyshev Spectral Derivative MatrixChebyshev Spectral Derivative of e x sin(5x)

Chebyshev Spectral MethodsRegularity and Chebyshev Spectral AccuracyAccuracy of Chebyshev Spectral DerivativeDefine φ[ 1,1] sup{φ(x) : x [ 1, 1]}If there exists a constant φu φ[ 1,1] such that u is analyticthroughout the closed region {z C : φ(z) φu }, then there exists aconstant C 0 such that for all x [ 1, 1] and all N,(ν) u (ν) (x) pn (x) e N(φu φ[ 1,1] ) , for any ν 0

Chebyshev Spectral MethodsRegularity and Chebyshev Spectral AccuracyAccuracy of Chebyshev Spectral Derivative

Chebyshev Spectral MethodsAllen–Cahn PDEAllen–Cahn Reaction–Diffusion PDEut auxx u u 3 , u( 1, t) 1, u(1, t) 1Direct: a 0.01, N 100, t 70, t 1/8Inverse: Use states up to t 35; assume degree of nonlinearity 3 andorder 2, leading to 20 terms to be identified.

Chebyshev Spectral MethodsAllen–Cahn PDE, SolutionAllen–Cahn PDE

Chebyshev Spectral MethodsAllen–Cahn PDEAllen–Cahn PDE, Identification

Chebyshev Spectral MethodsAllen–Cahn PDEAllen–Cahn PDE, Error in Dominant Coefficients vs. ErrorReduction Ratio

Chebyshev Spectral MethodsAllen–Cahn PDEAllen–Cahn PDE, Prediction and Prediction Error

Chebyshev Spectral MethodsAllen–Cahn PDEReferences to CheckBoyd, Chebyshev and Fourier Spectral MethodsCanuto, Hussaini, Quarteroni, and Zang, Spectral Methods in FluidDynamicsFornberg, A Practical Guide to Pseudospectral MethodsTrefethen, Spectral Methods in Matlab

Spectral Methods and Inverse Problems Omid Khanmohamadi Department of Mathematics Florida State University. Outline Outline 1 Fourier Spectral Methods Fourier Transforms Trigonometric Polynomial Interpolants FFT Regularity and Fourier Spectral Accuracy Wave PDE 2 System Modeling Direct vs. Inverse PDE Reconstruction 3 Chebyshev Spectral Methods .

Related Documents:

B.Inverse S-BOX The inverse S-Box can be defined as the inverse of the S-Box, the calculation of inverse S-Box will take place by the calculation of inverse affine transformation of an Input value that which is followed by multiplicative inverse The representation of Rijndael's inverse S-box is as follows Table 2: Inverse Sbox IV.

Inverse functions mc-TY-inverse-2009-1 An inverse function is a second function which undoes the work of the first one. In this unit we describe two methods for finding inverse functions, and we also explain that the domain of a function may need to be restricted before an inverse function can exist.

Inverse transforms: use of symmetry properties of Legendre polynomials in computation spectral coefficient for field f: for each m: even n odd n grid point data: for each ɸ,f: spectral space inverse Legendre transform parallelisation over m, n indices inverse Fourier transform grid point space lots of MPI communication Normalised associated .

Inverse Problems 28 (2012) 055002 T Bui-Thanh and O Ghattas For the forward problem, n is given and we solve the forward equations (1a) and (1b)for the scattered fieldU.For the inverse problem, on the other hand, given observation dataUobs over some compact subset dobs R , we are asked to infer the distribution of the refractive index n.One way to solve the inverse problem is to cast it .

6.1 Solving Equations by Using Inverse Operations ' : "undo" or reverse each others results. Examples: and are inverse operations. and are inverse operations. and are inverse operations. Example 1: Writing Then Solving One-Step Equations For each statement below, write then SOIVP an pnnation to determine each number. Verify the solution.

24. Find the multiplicative inverse of 53 4 25. Find five rational numbers between 0 and -1 26. Find the sum of additive inverse and multiplicative inverse of 7. 27. Find the product of additive inverse and multiplicative inverse of -3 . 28. What should be subtracted from 5/8 to ma

State whether each equation represents a direct, joint, or inverse variation. Then name the constant of variation. 1. u 5 8wz joint; 8 2. p 5 4s direct; 4 3. L 5 inverse; 5 4. xy 5 4.5 inverse; 4.5 5. 5 p 6. 2d 5 mn 7. 5 h 8. y 5 direct; p joint; inverse; 1.25 inverse; Find each value. 9. If y varies directly as x and y 5 8 when x 5 2, find y .

Artificial Intelligence in Supply Chains Martin Zapke, 3806 A Field Lab carried out on the Master in Management Program, under the supervision of: Professor José Crespo de Carvalho 4th January 2019 . ii Disclaimer With this disclaimer, Martin Zapke, ensures that the following work project to obtain the Master of Science degree in Management is conducted by himself. The mentioned references .