# Help setting up non-linear parabolic BVP for Newton's method for Non-linear Systems

I am trying to apply Newton's method for non-linear systems to this equation:

$$\frac{\partial u}{\partial t}=\frac{\partial ^{2} u}{\partial x^{2}}+(1-u^{2})u+f(x,t) , x \in [-1,1], t>0$$ $$f(x,t)=\frac{25}{4}\pi^{2}\epsilon^{2}cos(t)cos(5\pi(x-1)/2)-sin(t)cos(5\pi(x-1)/2)-[1-cos^{2}(t)cos^{2}(5\pi(x-1)/2)]cos(t)cos(5\pi(x-1)/2)$$ given boundary and initial conditions and the discretization:

$$\frac{3u_{i}^{n+1}-4u_{i}^{n}+u_{i}^{n-1}}{2 \Delta t}= \frac{u_{i+1}^{n+1}-2u_{i}^{n+1}+u_{i-1}^{n+1}}{ \Delta x^{2}}+(1-(u_{i}^{n+1})^{2})u_{i}^{n+1}+f(x_{i},t_{n+1})$$

I understand how to implement Newton's method for non-linear systems for ODE's, but I'm not sure how to change this to an ODE and apply the method. I set $\omega=\Delta t/ \Delta x^{2}$ to get

$$-\omega(u_{i+1}^{n+1}+u_{i-1}^{n+1})+(\frac{3}{2}+2\omega-\Delta t+ \Delta t(u_{i}^{n+1})^{2})u_{i}^{n+1}=2u_{i}^{n}-\frac{1}{2}u_{i}^{n-1}+\Delta tf_{i}^{n+1}$$

I am stuck here though. Can anybody help me?

-
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://math.stackexchange.com/questions/418916/help-setting-up-non-linear-parabolic-bvp-for-newtons-method-for-non-linear-syst", "fetch_time": 1469709714000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2016-30/segments/1469257828282.32/warc/CC-MAIN-20160723071028-00217-ip-10-185-27-174.ec2.internal.warc.gz", "warc_record_offset": 161058834, "warc_record_length": 16040, "token_count": 466, "char_count": 1065, "score": 3.65625, "int_score": 4, "crawl": "CC-MAIN-2016-30", "snapshot_type": "latest", "language": "en", "language_score": 0.7043789029121399, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00003-of-00064.parquet"}