I have this question that I am not sure how to finish. I started computing it, but I just couldn`t finish it.
Assume the following first ODE
$y'=f(x,y)$ for $x\in[a,b]$ with $y(x_0)=y_0$
has a unique solution.
Noting that the function $f$ is Lipschitz continuous with respect to the second variable $y$ with Lipschitz constant $L$. Recall that, the approximate solution $y_{n+1}$ of $y(x_{n+1})$ obtained using $\theta$-method for the above equation where $\theta \in [0,1]$ , is defined by: $$ y_{n+1} = y_n + h[(1-\theta) f(x_n , y_n) +\theta f(x_{n+1}, y_{n+1})] , n=0,1,...,N-1$$ $y_0$ is given , where $h=\frac{b-a}{h}$ and $x_n=a+nh$ for $n=1,...,N$
the question is :
let $e_n=y(x_n)-y_n$. For smooth $y$ show that $$ {e_n} \le Ch( \vert{\frac{1}{2}-\theta}\vert + h)$$
please any help would be appreciated. I tried to use Taylor's expansion, but I'm not sure what did I do wrong.
Thanks in advanced