another problem with itegral, again intergal is getting unevaluated answers or folated ( infinity )
what should i do ?


> |

|
> |

|
> |

|

|
(1) |

> |

|

|
(2) |
> |

|

|
(3) |
> |
![for n from 0 to N+1 do J[n] := unapply(simplify((-1)^n*(1-x)^(-alpha)*(1+x)^(-beta)*(diff((1-x)^(n+alpha)*(1+x)^(n+beta), [`$`(x, n)]))/(2^n*factorial(n))), x) end do;](/view.aspx?sf=216018_question/88372681c9e67d6207e7e88fff222bda.gif)
|

|
(4) |
> |

|

|
(5) |
> |
![for i from 0 to N do phi[i] := J[i](x) end do](/view.aspx?sf=216018_question/052b3636a549b0627da22d6df973b8c8.gif)
|

|
(6) |
> |

|

|
(7) |
> |
![for j from 0 to N do S[j] := simplify(evalf(int(k(x, s)*subs(x = s, phi[j]), s = -1 .. x))) end do;](/view.aspx?sf=216018_question/b66a5b2ea0756ec2f3c8d952ad2367d5.gif)
|

|
(8) |
> |

|
> |
![for i from 0 to N do for j from 0 to N do A[i+1, j+1] := evalf(Int(phi[i]*phi[j]*w1, x = -1 .. 1, epsilon = 0.1e-24)) end do end do;](/view.aspx?sf=216018_question/dc8ffb365999723fa8858676929026ff.gif)
|
> |

|
![Matrix([[3.14159265358979323846264338328, 0., 0.111111111111111111111111111111e-32, 0., -0.333333333333333333333333333333e-32, 0., -0.173333333333333333333333333333e-31, 0., -0.291851851851851851851851851852e-30], [0., .392699081698724154807830422910, 0., 0.370370370370370370370370370370e-33, 0., -0.370370370370370370370370370370e-33, 0., -0.718518518518518518518518518519e-32, 0.], [0.111111111111111111111111111111e-32, 0., .220893233455532337079404612887, 0., 0.407407407407407407407407407407e-33, 0., 0.666666666666666666666666666667e-32, 0., 0.966666666666666666666666666667e-31], [0., 0.370370370370370370370370370370e-33, 0., .153398078788564122971808758949, 0., 0.740740740740740740740740740741e-33, 0., 0.128888888888888888888888888889e-31, 0.], [-0.333333333333333333333333333333e-32, 0., 0.407407407407407407407407407407e-33, 0., .117445404072494406650291081070, 0., -0.429629629629629629629629629630e-32, 0., -0.459259259259259259259259259259e-31], [0., -0.370370370370370370370370370370e-33, 0., 0.740740740740740740740740740741e-33, 0., 0.951307772987204693867357756671e-1, 0., -0.135555555555555555555555555556e-31, 0.], [-0.173333333333333333333333333333e-31, 0., 0.666666666666666666666666666667e-32, 0., -0.429629629629629629629629629630e-32, 0., 0.799362781468415055263543670536e-1, 0., 0.157777777777777777777777777778e-31], [0., -0.718518518518518518518518518519e-32, 0., 0.128888888888888888888888888889e-31, 0., -0.135555555555555555555555555556e-31, 0., 0.689246479939602777242545307758e-1, 0.], [-0.291851851851851851851851851852e-30, 0., 0.966666666666666666666666666667e-31, 0., -0.459259259259259259259259259259e-31, 0., 0.157777777777777777777777777778e-31, 0., 0.605783039009416503435830836897e-1]])](/view.aspx?sf=216018_question/c6f4206d99b797f30652d1425a632d42.gif)
|
(9) |
> |

|
> |
![for j from 0 to N do for i from 0 to N do B[i+1, j+1] := evalf(Int(simplify(phi[i]*S[j]*w1), x = -1 .. 1, epsilon = 0.1e-5), 15) end do end do;](/view.aspx?sf=216018_question/4d79f8d3145521392d3285fddf88f666.gif)
|
> |

|

|
(10) |
> |

|
> |
![for i from 0 to N do G[i+1] := evalf(Int(phi[i]*g(x)*w1, x = -1 .. 1, epsilon = 0.1e-24)) end do;](/view.aspx?sf=216018_question/6f73ebdcc85b6e1ebea24711a7c51ee1.gif)
|

|
(11) |
> |
![G[1]](/view.aspx?sf=216018_question/35727ac4c0d2865ea83e3adcf2953564.gif)
|

|
(12) |
> |

|

|
(13) |
> |

|
> |

|
> |

|
> |
![s[u] := add(subs(theta = sols[l+1], ((x+1)*(1/2))*k(x, ss(x, theta)))*u(ss(x, sols[l+1])), l = 0 .. N)](/view.aspx?sf=216018_question/af714059829e7b6845b398adf992772c.gif)
|
> |
![U := unapply(add(t[j+1].phi[j], j = 0 .. N), x)](/view.aspx?sf=216018_question/677daa69be586cecfdb1d4e77b19a649.gif)
|
> |

|
> |

|
> |

|
> |

|
> |
![E[1] := (int((u(x)-U(x))^2, x = -1 .. .1))^(1/2)](/view.aspx?sf=216018_question/05caee0e6772e465574b734499a62df3.gif)
|
> |

|
> |
![plot([U(x), u(x)], x = -1 .. 1)](/view.aspx?sf=216018_question/5e35f27a3961f88d6af27cabe73b7a1d.gif)
|

> |

|
|
Download chebichef_cont.mw