## anonymous 5 years ago I found the approximation for Euler Implicit and explicit methods for the following equations: dy/dx = (x+y-1)2 with initial value y(0) = 2; step size (h) = 0.1 and x = 0 to 1.5. They are asking me to compared the approximated values with the exact answer of the equation at these points. How do I find the exact values??? I tried using Bernoulli's eq. but it didn't work.

1. anonymous

should that read to the power 2?

2. anonymous

yes

3. anonymous

Looking at this quickly there does not appear to be a quick solution although one may be available, possibly the best way forward until you can see a quicker route is to use intgrating factors. A good example of how this method works this is seen in Paul's online differential equations notes. Unfortunately this is a long process but you will get the right answer if you follow the algorithm strictly.

4. anonymous

is there a quicker way of getting the exact answer since the purpose of my problem was to use the euler's implicit and explicit methods, the exact answer is just needed to get the error

5. anonymous

the actual answer to $dy/dx=(x+y-1)^{2}$ is very complicated and actually involves complex exponents so you may want to check your question, alternatively try an internet based derivative calculator such as wolframalpha

6. anonymous

I was trying to use matlab but I don't know how to input it correctly and it gives me errors... Thanks for your help! ;)

7. anonymous

you're welcome, I can't use matlab either ;) good luck

8. anonymous

thanks! In that website you gave me they gave me y solved as y = (1 / (c*e^2ix - i/2) ) - x + (1 - i) What is the i ?

Just a guess, but i may be the imaginary operator "i" that is equal to$\sqrt{-1}$

10. anonymous

ok, thank you!