“…In other intervals, we can proceed with exactly the same argument. Case (b): We choose sin πx , sin 2 πx , sin3 πx , sin4 πx (orthogonal to one another) as basis functions such that an arbitrary curve e x − 1.7183 x − 1 within the interval [0, 1]. We acquire the residuals R ( x ) = e x − 1.7183 x − 1 − c 1 sin πx − c 2 sin 2 πx − c 3 sin3 πx − c 4 sin4 πx , where c 1 , c 2 , c 3 and c 4 denote coefficients that need to be found. Following the principle of the spectral method (Muzara et al , 2018; Singh et al , 2020), we obtain four decoupled linear equations: After computations, we obtain c 1 = − 0.2178 , c 2 = 0.0135, c 3 = −0.0088 and c 4 = 0.0017. Computed and exact curve are observed to be nearly identical. If more basis functions are chosen, the accuracy of the approximation can only become higher expectedly.…”