I'm trying to approximate the solution to this equation using the Euler's method: y

Kazeljkaml5n9y

Kazeljkaml5n9y

Answered question

2022-05-08

I'm trying to approximate the solution to this equation using the Euler's method:
y ( x ) = 3 tan ( x ) y ( x ) , y ( 2 ) = 4
When solving for the step of 0.2, I don't know what to calculate when plugging y ( 2.2 ).
What is y ( x )? Is it the derivative of 3 tan ( x ) y ( x )?

Answer & Explanation

percolarse2rzd

percolarse2rzd

Beginner2022-05-09Added 17 answers

You are solving a special case of the initial value problem
u ( x ) = f ( x , u ( x ) ) , u ( x 0 ) = u 0 .
In your case f is defined by f ( x , y ) = 3 tan ( x ) y, you have x 0 = 2 and u 0 = 4.

When applying Euler's (explicit) method you are attempting to approximate u ( x 0 + n h ) with y n where h > 0 is your time step, and
y 0 = u 0 , y n + 1 = y n + h f ( x n , y n ) .
In your case, you have y 0 = 4, h = 0.2, and so
y 1 = y 0 + h f ( x 0 , y 0 ) = 4 + 0.2 f ( 2 , 4 ) .

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?