A general question about spectral methods vs finite element methods
Statement
According to this Wikipedia article:
Spectral methods can be computationally less expensive and easier to implement than finite element methods; they shine best when high accuracy is sought in simple domains with smooth solutions. However, because of their global nature, the matrices associated with step computation are dense and computational efficiency will quickly suffer when there are many degrees of freedom (with some exceptions, for example if matrix applications can be written as Fourier transforms). For larger problems and nonsmooth solutions, finite elements will generally work better due to sparse matrices and better modelling of discontinuities and sharp bends.
I have only worked with finite elements, so I'm curious to know how spectral methods are "computationally less expensive and easier to implement than finite element methods". This is a bit of a surprise to me because matrices in the FEM are sparse, as opposed to the spectral matrices which are dense.
What are your opinions on this? Is there a textbook example of a comparison between the two?
Posed by UserA · ap.analysis-of-pdes, na.numerical-analysis, finite-element-method
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-422652.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-422652.lean
import Mathlib /-! # A general question about spectral methods vs finite element methods Source: https://mathoverflow.net/questions/422652 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_422652 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_422652