- #1

Nusc

- 760

- 2

## Homework Statement

y''=2y'-y+x*exp(x)

0<=x<=2 y(0)=0 , y(2)=-4, h = 0.2

Approximate the solution using Euler's method

## Homework Equations

## The Attempt at a Solution

So we'll have two guesses

y1''=2*y1'-y1'+x*exp(x)-x y1(0)=0,

y2''=2*y2'-y2'+x*exp(x)-x y2(0)=0,

y=a1*y1+a2*y2

So i need to find the coefficients

What boundary conditions do I require? y1'(0)=? y2'(0)= ?