Discover Euler's Method Examples

Recent questions in Euler's Method
Integral CalculusAnswered question
Violet Woodward Violet Woodward 2022-07-22

Solve the following ODE by using the method of undetermined coefficients in which Euler's formula needs to be utilized:
y 2 y + y = sin ( t )
The way that I solved this doesn't involve Euler's formula, and I was wondering how I might use the formula here.

My approach:
The formula can be written as y ( t ) = y h ( t ) + y p ( t ) where y h ( t ) is the "homogeneous version" of the ODE and y p ( t ) is the particular solution that we'll obtain via the basic rule of the method of undetermined coefficients.

y h ( t ):
Putting r ( t ) = sin ( t ) = 0 in the original equation, the ODE we need to solve is:
y 2 y + y = 0
where we can set the general solution as y = e λ t and obtain the characteristic equation:
λ 2 2 λ + 1 = 0
which has a real double root, hence giving us the solution:
y h ( t ) = ( c 1 + c 2 t ) e t

y p ( t ):
Judging by the fact that r ( t ) is shape k sin ( ω t ) and we know that ω = 1 we can set the general solution to be of form:
y p ( t ) = K cos ( t ) + M sin ( t ) y p ( t ) = K sin ( t ) + M cos ( t ) y p ( t ) = K cos ( t ) M sin ( t )
substituting these equations into the original equation and then simplifying gives us:
y p ( t ) = 1 2 cos ( t )
And in conclusion, we can write that the solution to the given ODE is:
y ( t ) = y h ( t ) + y p ( t ) = ( c 1 + c 2 t ) e t + 1 2 cos ( t )
How would we be able to derive this conclusion via Euler's formula? Thanks in advance.

When you are dealing with Euler's method problems, it means that you are focusing on the technique that is used to analyze differential equations. The idea is to use the local linearity that is also known as the linear approximation. Take a look at Euler's method equation where you implement small tangent lines over a short distance. Then continue with the differential equation rewriting. It will help you to approximate the solution when you have an initial-value challenge. While you’re at it, you can look at the various questions related to computational science and mathematics based on the provided solutions.