I need to solve the following Cauchy problem using Runge Kutta method (do 2 iterations). y′(t)=x(t)y(t)+x^2(t) x′(t)=y^2(t) y(0)=x(0)=1

Ethen Blackwell

Ethen Blackwell

Answered question

2022-07-16

I've just discoveblack that I can use Euler's method to estimating the slope of y = ( x + c ) 2 with perfect accuracy, regardless of what Δ x is used. What causes this?

Does it happen with other functions, what must they look like for it to happen?

I am using this method to estimate the slope, m
m ( x + Δ x + c ) 2 ( x Δ x + c ) 2 2 Δ x
Doesn't matter what Δ x is, the slope is always correct ...I would expect this only to work for tiny Δ x, but works with large ones too.

Answer & Explanation

Abbigail Vaughn

Abbigail Vaughn

Beginner2022-07-17Added 15 answers

In the quadratic function y = x 2 , you can very easily show that the secant line between points ( a , a 2 ) and ( b , b 2 ) where b a is parallel to the tangent at the midpoint ( 1 2 ( a + b ) , 1 4 ( a + b ) 2 ).

The slope of the secant is b 2 a 2 b a = b + a. Slope of the tangent at the midpoint (by calculus) is ( 2 ) ( 1 2 ( a + b ) ) = a + b, so they're equal and the secant is parallel to the tangent.

That's the reason for your observation. Adding a constant, or using a constant multiplier, etc. won't change the result so it applies for any function of the form y = k ( x + c ) 2 + m.
Taniya Burns

Taniya Burns

Beginner2022-07-18Added 4 answers

Thanks a lot

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?