Can Euler's Method Solve y'=y/x with Initial Conditions?

  • Context: Undergrad 
  • Thread starter Thread starter lydia_zhu
  • Start date Start date
  • Tags Tags
    Euler's method Method
Click For Summary
SUMMARY

The discussion focuses on applying Euler's method to solve the first-order differential equation y' = y/x with the initial condition y(2) = 3 and a step size of h = 0.2. The formula used is y(x+h) = y(x) + (y(x)h)/x. By iterating this formula starting from y(2), participants can compute the value of y at x = 2.8. The method provides a numerical approximation for the solution of the differential equation.

PREREQUISITES
  • Understanding of first-order differential equations
  • Familiarity with Euler's method for numerical solutions
  • Basic knowledge of numerical approximation techniques
  • Ability to perform iterative calculations
NEXT STEPS
  • Study the derivation and applications of Euler's method in detail
  • Learn about error analysis in numerical methods
  • Explore higher-order numerical methods such as Runge-Kutta
  • Investigate the stability and convergence of numerical solutions
USEFUL FOR

Students and educators in mathematics, engineers working with differential equations, and anyone interested in numerical analysis and approximation techniques.

lydia_zhu
Messages
1
Reaction score
0
Hi everyone.

I was asked to learn Euler's method by myself but I was really confused with this question. How can I work out this equation by using Eulers' method (which is a method solving first order fifferencial equation with initial conditions)
Given:y'=y/x, y(2)=3, use h=0.2, what is y(2.8) ?

thanks very much!
 
Physics news on Phys.org
You write
[tex] \frac{dy}{dx}=\frac{y(x+h)-y(x)}{h}[/tex]
to obtain:
[tex] \frac{y(x+h)-y(x)}{h}=y(x)/x[/tex]
To obtain:
[tex] y(x+h)=y(x)+\frac{y(x)h}{x}[/tex]
start with [tex]y(2)[/tex] and increment.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
12K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 11 ·
Replies
11
Views
22K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 9 ·
Replies
9
Views
3K