Serving the Quantitative Finance Community

 
User avatar
vitasoy
Topic Author
Posts: 0
Joined: February 24th, 2004, 2:48 am

Solving DE

March 13th, 2004, 5:02 am

Hi I am new here and would like to find out how to solve the followind DE.(ax^2+bx+c)p'(x) + (dx+e)p''(x)=0
 
User avatar
daveangel
Posts: 5
Joined: October 20th, 2003, 4:05 pm

Solving DE

March 13th, 2004, 10:06 am

QuoteOriginally posted by: vitasoyHi I am new here and would like to find out how to solve the followind DE.(ax^2+bx+c)p'(x) + (dx+e)p''(x)=0i will rewrite your problem as followsf(x)p'(x) + g(x)p''(x) = 0wheref(x) = ax^2 + bx + cg(x) = dx + ewrite p'(x) = q(x)p''(x) = q'(x)so u end up withf(x)q(x) + g(x)q'(x) = 0ordq/q = - f(x)/g(x) dxln(q) = int(-f(x)/g(x)dx) = h(x)u can integrate the rhs by parts using int (udv/dx) = uv - int(vdu/dx)by inspection, u=f(x) dv/dx = 1/g(x)q = exp(h(x)) hence p = int(qdx) = int(h(x)dx)should be straightforward
knowledge comes, wisdom lingers
 
User avatar
ppauper
Posts: 11729
Joined: November 15th, 2001, 1:29 pm

Solving DE

March 13th, 2004, 2:11 pm

Last edited by ppauper on December 13th, 2004, 11:00 pm, edited 1 time in total.
 
User avatar
vitasoy
Topic Author
Posts: 0
Joined: February 24th, 2004, 2:48 am

Solving DE

March 16th, 2004, 8:31 am

Thanks, however I am solving this problem where I havedXo = r dtdx1 = adt + c dbt and X1(0) = x1Here I am wondering how to price the American put and call option .Coming back on the differential equation.How do we solve the following de?a p"(x) + bxp'(x) +cp(x) = 0?Thanks. Just need to solve this last one for American Put option.Thanks
 
User avatar
ppauper
Posts: 11729
Joined: November 15th, 2001, 1:29 pm

Solving DE

March 17th, 2004, 12:32 am

funnction
Last edited by ppauper on December 13th, 2004, 11:00 pm, edited 1 time in total.