Ask your own question, for FREE!
Mathematics 16 Online
OpenStudy (idku):

Am I doing a step size for DE correctly? (made up my own example)

OpenStudy (idku):

With the following Differential Equation: \(\large\displaystyle\frac{dy}{dx}=x^2+2y\) given that y(0)=1, what is y(8) ?

OpenStudy (idku):

wait, I forgot the formula for step size...

OpenStudy (idku):

hey, can you start me with the first step, with stepsize 1 ?

OpenStudy (idku):

(stepsize, h=1 )

OpenStudy (perl):

are you doing eulers method

OpenStudy (idku):

Yes. ok, I am really not sure, but I will try. I am given a point (0,1) the slope at this point is 0^2+2(1) = 2 So, my next point is: (0+1 , 1 * 2 * 1) (1,2)

OpenStudy (idku):

is this correct?

OpenStudy (perl):

it should be (1, 1 + 1*2) = (1,3)

OpenStudy (idku):

y sub (n-1) + (dy/dx at the point of y sub (n-1) ) * (step size) = y(sub n) ?

OpenStudy (perl):

$$ \Large \rm { \frac{dy}{dx}= f(x,y)\\ y_{n+1}= y_n + h \cdot f_n \\~\\ \\ y_0 = 1 \\ y_1 = 1 + 1\cdot f_0= 1 + 1\cdot f(0,1)= 1 + 1\cdot 2 = 3 } $$

OpenStudy (idku):

y(2)=2 + 1*(1^2 + 2*2) = 2 + 1*(5) = 7

OpenStudy (idku):

oh, the very first 2 should be a 3

OpenStudy (idku):

then y(2)=8

OpenStudy (idku):

then y(3)=8+1*(2^2 + 2*3)=8+10=18

OpenStudy (idku):

don't know why I am struggling, but tnx for taking your time to help me. I will read my book more.

OpenStudy (idku):

All I needed is \(\displaystyle \Large \rm y_n=y_{n-1}+h~F(x_{n-1},y_{n-1})\) tnx again

OpenStudy (perl):

y(2)=3 + 1*(1^2 + 2*3) = 3+7 = 10

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!