# Math Help - Question is crazy! Hopefully it doesn't come up in exam...any help?

1. ## Question is crazy! Hopefully it doesn't come up in exam...any help?

You are given the following two-point boundary value problem:

-(d/dx)(y*(e^x))+2y*(e^x)=(2-x)*(e^x), y(0)=y(1)=0

Simplify the equation and show that if the finite difference method is applied to the above problem, the resulting difference equation is:

-[(2-h)yi-1]+[4(1+h^2)yi]-[(2+h)yi+1]=2h^2(2-xi)

2. ## Re: Question is crazy! Hopefully it doesn't come up in exam...any help?

Why "crazy"? It looks pretty close to "easy" to me. Once you have applied the product rule to $d/dx(ye^x)$ you can divide through by $e^x$ and the equation is very simple. I presume you know what a "finite difference method" is.

3. ## Re: Question is crazy! Hopefully it doesn't come up in exam...any help?

i'll give it a go

4. ## Re: Question is crazy! Hopefully it doesn't come up in exam...any help?

i get y-(2-x)=0