Solving an ODE using Galerkin's method

In summary, the conversation discusses using Galerkin's method to find the coefficients a1, a2, a3 for the approximate solution to the given ODE and boundary condition. The method involves taking the derivative of the approximate solution, equating terms with the same power of t, and solving for the coefficients. It is also mentioned that the basis functions are not orthogonal on the given interval.
  • #1
Breuno
4
0

Homework Statement


Given the ODE [tex]\frac{df}{dt}=f[/tex] and the boundary condition [tex]f(0)=1[/tex]

One approximate solution is [tex]f_{a}=1+\sum ^{3}_{k=1} a_{k}t^k[/tex] where [tex]0\leq t\leq1[/tex]

Using the Galerkin's method find the coeficents [tex]a_{k}[/tex]

Homework Equations





The Attempt at a Solution


I don't think I've understood how to use the method really. So if someone could explain it briefly. Another thing that is mentioned in the book is that the basis funktions are not orthogonal on this interval. So that can not be imposed

Thanks
/Simon
 
Physics news on Phys.org
  • #2
You can take the derivative of the general (approximate) solution and plug in the equation.
Then equate the terms with the same power of t and you'll get 3 simple equations that will give you the three coefficients a1, a2, a3.
 

1. How does Galerkin's method work for solving ODEs?

Galerkin's method is a numerical technique used to solve ordinary differential equations (ODEs). It involves approximating the solution of the ODE using a series of basis functions and then finding the coefficients of these basis functions using a variational approach. These coefficients are then used to construct an approximate solution to the ODE.

2. What are the advantages of using Galerkin's method over other numerical methods?

Galerkin's method is a powerful and versatile technique for solving ODEs because it can handle a wide variety of boundary conditions and nonlinearity. Additionally, it produces highly accurate solutions and can handle complex geometries, making it a popular choice among scientists and engineers.

3. What are the limitations of using Galerkin's method?

One of the main limitations of Galerkin's method is that it can be computationally expensive, especially for high-dimensional problems. Additionally, it may not be suitable for all types of ODEs, such as stiff systems or those with discontinuous coefficients.

4. How do you choose the appropriate basis functions for Galerkin's method?

The choice of basis functions depends on the problem being solved. In general, the basis functions should have good approximation properties and should satisfy the boundary conditions of the ODE. Some commonly used basis functions include polynomials, trigonometric functions, and B-splines.

5. Can Galerkin's method be used for solving partial differential equations (PDEs)?

Yes, Galerkin's method can be extended to solve PDEs by using a combination of basis functions for both the spatial and temporal variables. This is known as the Galerkin finite element method and is widely used in various fields of science and engineering.

Similar threads

  • Advanced Physics Homework Help
Replies
1
Views
2K
  • Differential Equations
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
444
  • Calculus and Beyond Homework Help
Replies
3
Views
515
  • Calculus
Replies
13
Views
1K
  • Advanced Physics Homework Help
Replies
2
Views
3K
  • Quantum Physics
Replies
1
Views
538
  • Differential Equations
Replies
3
Views
2K
Replies
7
Views
1K
Back
Top