Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.8K Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

Taylor series of analytical solutions

Posted 2 years ago

I use the DSolve command to solve a system of differential equations, and expand the analytical solution of il in Taylor series. I have two questions:

  1. When I expand the Taylor series to the 20th degree, the result is similar to the analytical solution. Is this reasonable? Or should we take more terms to approximate the analytical solution?

    d = a /. t -> 0.00900
    Sa20 = N[Normal[Series[a, {t, 0, 20}]]] /. t -> 0.00900
    
  2. We know that the first term taken by Taylor series expansion is the Euler method, but why is the calculation result so different from the analytical solution?

    Sa1 = N[Normal[Series[a, {t, 0, 1}]]] /. t -> 0.00900
    

The complete code is given below:

(*DSolve*)
sol1 = DSolve[{l il'[t] == vl[t], c vc'[t] == ic[t], 
    ir[t] == -ic[t] + il[t], vl[t] == 24 - vc[t], vr[t] == vc[t], 
    vr[t] == r ir[t], il[0] == 0, vc[0] == 0}, {ir[t], il[t], ic[t], 
    vr[t], vl[t], vc[t]}, t];
{il[t_], vc[t_]} = {il[t], vc[t]} /. sol1[[1]];
pars1 = {r -> 22, l -> 2 10^-1, c -> 1 10^-4};
a = Evaluate[il[t] /. pars1] // Simplify;
b = Evaluate[vc[t] /. pars1] // Simplify;
d = a /. t -> 0.00900
Sa20 = N[Normal[Series[a, {t, 0, 20}]]] /. t -> 0.00900
Sa1 = N[Normal[Series[a, {t, 0, 1}]]] /. t -> 0.00900
POSTED BY: James James

Hi James James,

this is a linear system in essential

In[6]:=  deq = 
 List @@ Eliminate[{l il'[t] == vl[t], c vc'[t] == ic[t], 
    ir[t] == -ic[t] + il[t], vl[t] == 24 - vc[t], vr[t] == vc[t], 
    vr[t] == r ir[t] }, {ir[t], ic[t], vr[t], vl[t] }]

Out[6]= {r il[t] == 
  24 - l  il'[t] + c r  vc'[t],    vc[t] == 24 - l  il'[t]}

The solutions will be exponentials in k *t with two roots 'k' of the characteristc equation. If your point of evalution is comparable in norm with the frequncies k , the value of the Taylor series depends in a wild form of the length of the Taylor series. Taylor series are of use for expontials only inside the first quarter real period of the e^(i k x) and wit hsome n terms only if ( k t < 10^-n ). This is not a real problem because the series expansion around any other point is trivial by the addtion law for exponentials.

Regards Roland

POSTED BY: Roland Franzius
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard