You are on page 1of 3

Interpretation of Data

The objectives of this experiment is for us to define the power series method and
to analyze the application of power series method in ordinary differential equations.
These objectives are to be demonstrated using the computer software, MATLAB. In the
first part of the experiment, we have to find the power series solution of the given
differential equations using the said software. In order to do so, we have to type in the
following commands:
>>Syms x c0 c1 c2 c3 c4 c5 c6
>>y=c0+c1*x+c2*x^2+c3*x^3+c4*x^4+c5*x^5+c6*x^6
>>eqODE=diff(%function)
>>eq1=collect(eqODE)
>>eq2=coeffs(eq1,x)
>>eq3=solve(eq2(1),eq2(2),eq2(3),eq2(4),c2,c3,c4,c5)
>>c2=eq3.c2
>>c3=eq3.c3
>>c4=eq3.c4
>>c5=eq3.c5
>>ysoln=c0+c1*x+c2*x^2+c3*x^3+c4*x^4+c5*x^5+c6*x^6
>>ysoln2=collect(collect(ysoln,c0),c1)
The variable x represents the variable used in the given function while the
variables c0 c1 c2 c3 c4 c5 c6 are expressions involving the unknown coefficients
it holds for all values of x in the interval of convergence, you can add more of these
variables to make your answer more accurate. These commands will differentiate the
equation that you input and arrange them based on their power order. Afterwards, it will
solve the coefficients in the solution of the input function and arrange them in proper
order. The final answer will be series solution of the differential equation.
Conclusion
The power series method is used to seek a power series solution to certain
differential equations. In general, such a solution assumes a power series with unknown
coefficients, then substitutes that solution into the differential equation to find a
recurrence relation for the coefficients. The power series method for the solution of the
differential equation can be expressed by,

y=∑ c n x n
n=0

Where: c = constant
n = number of terms
The power series method can be applied to certain nonlinear differential
equations, though with less flexibility. An ODE problem can be expanded with the
auxiliary variables which make the power series method trivial for an equivalent, larger
system. Expanding the ODE problem with auxiliary variables produces the same
coefficients (since the power series for a function is unique) at the cost of also
calculating the coefficients of auxiliary equations. Many times, without using auxiliary
variables, there is no known way to get the power series for the solution to a system,
hence the power series method alone is difficult to apply to most nonlinear equations.
The power series method will give solutions only to initial value problems
(opposed to boundary value problems), this is not an issue when dealing with linear
equations since the solution may turn up multiple linearly independent solutions which
may be combined (by superposition) to solve boundary value problems as well. A
further restriction is that the series coefficients will be specified by a nonlinear
recurrence (the nonlinearities are inherited from the differential equation).
In order for the solution method to work, as in linear equations, it is necessary to
express every term in the nonlinear equation as a power series so that all of the terms
may be combined into one power series.

References
http://tutorial.math.lamar.edu/Classes/DE/SeriesSolutions.aspx
https://www.mathworks.com/help/symbolic/mupad_ref/ode-series.html
https://en.wikipedia.org/wiki/Power_series_solution_of_differential_equations
https://www.mathworks.com/help/symbolic/ordinary-differential-equations.html

You might also like