What is the solution to solving a linear differential equation?

Click For Summary

Homework Help Overview

The discussion revolves around solving a linear differential equation using two methods: the Euler midpoint method for an approximate solution and the integrating factor method for an exact solution. The specific equation under consideration is y' = x + y, with an initial condition of y(0) = 1.35.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants discuss the application of the Euler midpoint method, with one participant questioning the correctness of their calculations. There is also an inquiry about the integrating factor method, indicating uncertainty about how to proceed with that approach.

Discussion Status

Some participants have provided feedback on the Euler midpoint method, highlighting a correction in the calculation. The conversation is ongoing, with participants exploring the integrating factor method and seeking further clarification on that topic.

Contextual Notes

Participants are working under the constraints of homework guidelines, which may limit the amount of direct assistance they can receive. There is an emphasis on determining the global error with a specified precision.

ariffinaldo
Messages
2
Reaction score
0

Homework Statement



1. To use Euler midpoint method to find an approx value to y(0.1) using a step size 0.1
2. To use integrating factor method to find exact value of y(0.1)
3. Determine the global error ( min 5 decimal places)

Homework Equations



f(x,y) = x+y, y(0) = 1.35

The Attempt at a Solution



I have done euler midpoint part which is
y1 = y0 + hf(x0, y0)= 1.35 +0.1(0+0.1) = 1.45
Is my working and answer correct. Pls any help..
 
Physics news on Phys.org
ariffinaldo said:

Homework Statement



1. To use Euler midpoint method to find an approx value to y(0.1) using a step size 0.1
2. To use integrating factor method to find exact value of y(0.1)
3. Determine the global error ( min 5 decimal places)

Homework Equations



f(x,y) = x+y, y(0) = 1.35

The Attempt at a Solution



I have done euler midpoint part which is
y1 = y0 + hf(x0, y0)= 1.35 +0.1(0+0.1)
This is incorrect. It should be y(0)+ h(x+ y)= 1.35+ .1(0+ 1.35), not "(0+ .1)"

= 1.45
Is my working and answer correct. Pls any help..
 
HallsofIvy said:
This is incorrect. It should be y(0)+ h(x+ y)= 1.35+ .1(0+ 1.35), not "(0+ .1)"

Ohh yes.. how could i miss that? How abt the intergrating factor part.. I am a loss for that.
 
The differential equation y'= x+y or y'+ y= x is linear. You should have learned a formula for the integrating factor for any linear d.e.

If not, you can work it out as follow: an integrating factor is a function u(x) such that multiplying the equation by it makes the left side a single derivative:
u(x)(y'+ y)= u(x)y'+ u(x)y= (uy)'. By the product rule, (uy)'= uy'+ u'y so that will be equal to uy'+ uy if and only if u'= u. What function satifies that?

Once you have found u, and multiplied by it, your equation will be (uy)'= ux. Integrating that gives
u(x)y(x)= \int u(x)x dx+ C
(The "u(x)" on the right is inside the integration. You cannot just divide both sides by u(x) and eliminate that.)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 68 ·
3
Replies
68
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K