{
 "metadata": {
  "name": "",
  "signature": "sha256:18bc049af5dffe6f15c77ca07acc3f7e88a474c9495ab48a8f77594110bf41f9"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "%pylab inline\n",
      "from sympy import *\n",
      "import mpmath as mp\n",
      "from IPython.display import display, Math, Latex\n",
      "#init_printing(use_latex='mathjax')\n",
      "init_printing()\n",
      "def latex_print( str ):\n",
      "   \"Helper to print LaTeX strings, takes raw string (like r'string')\"    \n",
      "   display(Latex(str))\n",
      "   return"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Populating the interactive namespace from numpy and matplotlib\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Using sympy notation: for subscript it is a single underscore \\_ and for superscripts they use double underscore  \\_\\_ \n",
      "\n",
      "Define symbols for scattering coefficients eq. (A2)"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "var('z, zp1, n, tmp1, tmp2')\n",
      "D__l_n, D__1_n = symbols('D__(l)_n, D__(1)_n', cls=Function);\n",
      "#psi__dash_n = symbols(\"psi__'_n\", cls=Function);\n",
      "#zeta__dash_n = symbols(\"zeta__'_n\", cls=Function);\n",
      "#psi_n = symbols(\"psi_n\", cls=Function);\n",
      "#zeta_n = symbols(\"zeta_n\", cls=Function);\n",
      "psi__dash_n = symbols(\"psi__'_n\");\n",
      "zeta__dash_n = symbols(\"zeta__'_n\");\n",
      "psi_n = symbols(\"psi_n\");\n",
      "zeta_n = symbols(\"zeta_n\");\n",
      "a__l_n, b__l_n = symbols('a__(l)_n, b__(l)_n');\n",
      "a__1_n, b__1_n = symbols('a__(1)_n, b__(1)_n');\n",
      "c__l_n, d__l_n = symbols('c__(l)_n, d__(l)_n');\n",
      "a__lp1_n, b__lp1_n = symbols('a__(l+1)_n, b__(l+1)_n');\n",
      "c__lp1_n, d__lp1_n = symbols('c__(l+1)_n, d__(l+1)_n');\n",
      "a__lm1_n, b__lm1_n = symbols('a__(l-1)_n, b__(l-1)_n');\n",
      "c__lm1_n, d__lm1_n = symbols('c__(l-1)_n, d__(l-1)_n');\n",
      "x_l, m_l, m_lp1 = symbols('x_l, m_l, m_l+1')\n",
      "D__1_n, D__3_n, R_n = symbols('D__(1)_n, D__(3)_n, R_n', cls=Function)\n",
      "#D__1_n(z) = psi__dash_n(z)/psi_n(z)\n",
      "#z*mp.besselj(n,z)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [],
     "prompt_number": 3
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "eq. (A2)\n",
      "\n",
      "__WARNING!!__\n",
      "\n",
      "It seems to be two misprints in Yang paper\n",
      "- first sub-equation uses $m_1$ instead of $m_l$\n",
      "- last sub-equation uses $a_n^(l-1)$ instead of $a_n^(l+1)$"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "eqA2_1 = (    d__lp1_n * m_l * psi__dash_n (m_lp1*x_l) \n",
      "            - a__lp1_n * m_l * zeta__dash_n(m_lp1*x_l)\n",
      "            - d__l_n * m_lp1 * psi__dash_n (m_l*x_l) \n",
      "            + a__l_n * m_lp1 * zeta__dash_n(m_l*x_l)\n",
      "            )\n",
      "eqA2_2 = (    c__lp1_n * m_l * psi_n( m_lp1*x_l)\n",
      "            - b__lp1_n * m_l * zeta_n(m_lp1*x_l)\n",
      "            - c__l_n * m_lp1 * psi_n( m_l*x_l) \n",
      "            + b__l_n * m_lp1 * zeta_n(m_l*x_l)\n",
      "            )\n",
      "eqA2_3 = (    c__lp1_n * psi__dash_n (m_lp1*x_l) \n",
      "            - b__lp1_n * zeta__dash_n(m_lp1*x_l)\n",
      "            - c__l_n * psi__dash_n (m_l*x_l) \n",
      "            + b__l_n * zeta__dash_n(m_l*x_l)\n",
      "            )\n",
      "eqA2_4 = (    d__lp1_n * psi_n( m_lp1*x_l)\n",
      "            - a__lp1_n * zeta_n(m_lp1*x_l)\n",
      "            - d__l_n * psi_n( m_l*x_l) \n",
      "            + a__l_n * zeta_n(m_l*x_l)\n",
      "            )\n",
      "print(\"eqA2.1\")\n",
      "display(eqA2_1)\n",
      "print(\"\\neqA2.2\")\n",
      "display(eqA2_2)\n",
      "print(\"\\neqA2.3\")\n",
      "display(eqA2_3)\n",
      "print(\"\\neqA2.4\")\n",
      "display(eqA2_4)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "eqA2.1\n"
       ]
      },
      {
       "latex": [
        "$$a^{(l)}_{n} m_{l+1} \\zeta^{'}_{n}{\\left (m_{l} x_{l} \\right )} - a^{(l+1)}_{n} m_{l} \\zeta^{'}_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l)}_{n} m_{l+1} \\psi^{'}_{n}{\\left (m_{l} x_{l} \\right )} + d^{(l+1)}_{n} m_{l} \\psi^{'}_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAs4AAAAaBAMAAABV8scPAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAIquJdjLdEETvu2aZ\nVM0GsGrEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIF0lEQVRoBbVZa4hkxRX+erp77p1+zLZLQNTI\njjgGkRAamUVB0caduKImmUAixETtRFEDUa+7i6I/dhpXFlwRR4wQVMIVNhhiiBOiRogk7YP9EUXb\nYCImwjZR8d20L2ZBFjynHrce0/fRsB7oqlNV53z11bl1bz0akFJqAU2lp2b7UltSGo5z6wduUZWm\nRjUojJ/LGpi6h0K8EbYNk6Labty+UV3Psf5jTrvfHLSDxyNdeTnwU607+bSoxlng57IGpu2hGG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O9LH06lEWt0O4IlViw5/kJsiayyo0rX6poyesZqZCxrUoqWgvgC\nNfm0gxYOGqQcXB7vuxMGBXhn4VrdMyQzL3cU+EwnXFOqyrybiSA6AGX0iDGURlwedxAMKXdkEXc5\nZbsgXG8NY0gj+kMnEcLScU5IFcQXqHKgwrXNoMeeN20X03Gt7tmKR7OXFZa5lUZ/Raoq9W4msPys\nNrLuy6URezzfgx0qCfIAXqoquE2ZcK1c2oI0KsXGgrBknEuHPu2o6oL4ApUHqlyFuxrcMeSNLFyr\neybPo0mm5jbM3uPGmU3UfkOqtCGQRuZKVzfI/M9ukcY6xvXeScU3MUYneU1iVjh1hfF916+FN1FL\nwfW7ty9R70DlHGdQqtC3K9OMbBtbDxewY92umKSnGenj8iQfVVfU9WvhTRxScCcy/wrmmyfEmoA1\nhgAAAABJRU5ErkJggg==\n",
       "text": [
        "a_n__(l)\u22c5m_l+1\u22c5\u03b6_n__'(m_l\u22c5x_l) - a_n__(l+1)\u22c5m_l\u22c5\u03b6_n__'(m_l+1\u22c5x_l) - d_n__(l)\u22c5m\n",
        "_l+1\u22c5\u03c8_n__'(m_l\u22c5x_l) + d_n__(l+1)\u22c5m_l\u22c5\u03c8_n__'(m_l+1\u22c5x_l)"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "eqA2.2\n"
       ]
      },
      {
       "latex": [
        "$$b^{(l)}_{n} m_{l+1} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} - b^{(l+1)}_{n} m_{l} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l)}_{n} m_{l+1} \\psi_{n}{\\left (m_{l} x_{l} \\right )} + c^{(l+1)}_{n} m_{l} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAsoAAAAaBAMAAABcGWd1AAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAA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6Cx/RGsVCe8bUVoL6bnJ/x1Kk3R2fia6rwS6Ey0GdQcCVctfd9tqq5X45yzQyDWhcfqe0r/qd5\nBejrw9h5bbcq/NcRejHwptz7F3O5mG1hzf4L1xIYq0vy8hEAAAAASUVORK5CYII=\n",
       "text": [
        "b_n__(l)\u22c5m_l+1\u22c5\u03b6_n(m_l\u22c5x_l) - b_n__(l+1)\u22c5m_l\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l)\u22c5m_l+1\u22c5\u03c8\n",
        "_n(m_l\u22c5x_l) + c_n__(l+1)\u22c5m_l\u22c5\u03c8_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "eqA2.3\n"
       ]
      },
      {
       "latex": [
        "$$b^{(l)}_{n} \\zeta^{'}_{n}{\\left (m_{l} x_{l} \\right )} - b^{(l+1)}_{n} \\zeta^{'}_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l)}_{n} \\psi^{'}_{n}{\\left (m_{l} x_{l} \\right )} + c^{(l+1)}_{n} \\psi^{'}_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAlUAAAAaBAMAAABsubQRAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2rVESJdpki\nZjI6QXVuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIMElEQVRYCaVYaYgcRRT+emZnZ3rOxiOQVdhW\n/0iMuoiCisqIhniB6zFRCcoiirpEaQ9EVMygokSQbUFFI9GOSDQbj0USxXiNB0Q0ISMoeEQdFBEU\ndfNDTcSI79XRXd3TPc4mD6beq1evvvrqdXV11QBCqh1SnrSBkq+tBejt8dgDA4uw4syANVHT8FYW\nt/2a6mIctBu/6sFzc9oaXlu+dbyjw7/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YVsKoVzbuqTV6hpnI2PW1bEm1CmP/pzRta91b9J8WxTCxlplm+q959BwTIe0s8FcDhB7\nOxt8l7QDtuKiubCXdjVAjZPKLQYizhoSLIPbempV+LU5GcmluNbqdaXc5qxHg9KEdFvOvVC1XEdF\nkuLbohAyrEllx9Q07ovVuTIIzOUAvjcK4bvkobpi6ogZbOGX46RyywRJ40aXEsZT+EujMcW1VuZK\n5URMP5x1vleZ68nw2begalU3AnijrWwyTJ5RxBl4sx7VlDUAzKUQcW8UoXyXNPiq7qQMZpROEjlO\nKrdMkFRuCBhO4b/PthRxreVcVTf/GSifOeudGHmwp/z09VO1HaEnZuyK1VSlOo9zEic+2ZIF5iZR\nap2kh+u6u27T42RwSwXRfTSGqRU+feFjItZVzBPO+gGU10Ut8VrkH2SVprAxMZ4MzwKbG4QWtSW7\nZ44TdemzBvVJ4qvOlT4QcvwHGLin1p/d/AwAAAAASUVORK5CYII=\n",
       "text": [
        "b_n__(l)\u22c5\u03b6_n__'(m_l\u22c5x_l) - b_n__(l+1)\u22c5\u03b6_n__'(m_l+1\u22c5x_l) - c_n__(l)\u22c5\u03c8_n__'(m_l\u22c5\n",
        "x_l) + c_n__(l+1)\u22c5\u03c8_n__'(m_l+1\u22c5x_l)"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "\n",
        "eqA2.4\n"
       ]
      },
      {
       "latex": [
        "$$a^{(l)}_{n} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} - a^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l)}_{n} \\psi_{n}{\\left (m_{l} x_{l} \\right )} + d^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAAaBAMAAAB/bvTlAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAA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UzSVSjUJ8DqN8\nrRsZW1SWZ8++ErcFFmbLffnuncA1S9HvhelsFU2n8hVNh59/+iAPOd3QbIlB58uaeMAnV5QATT6H\nWW6Kn/aToi4ve7XPTox7wyYfe7g1Ss0+Z4oxvS4V14WHc91mq3LDIC20CDpWCehUvniIWpTCtS+P\nc0VONzTbW+p/1etlyP2eo3jimk+tKG7mP3bSo9nKKG1jsi6ufLoMnLirKnYhH7vdIvxoNZ/7xX7P\njjh7DrEXMpuNtjmyXTiejKBjlYBuh6UUQUe/4XRrMd2W2er1pVQ4AwGfWlHU5XjbMQ89r1Av/bEZ\nGJ8uhbGzUfnNhXzszW1TqfkcyudMYXz2dGrCDV0MmzztxRp4hl4O2tKxSud0dH7he8nptujJfE1o\nGpq4U9MVtaK4OvIp/bGQWERezOe6tCMly9mj/OZCPvbmtqnUfAoV50wxhM+eNrLRsdgoG0BqAMPl\nCDpWmQYdXBaU022ZLecrduxfEUIuZcDwqRVFzbbNsSvGN/+BmDaSlo/dbmr2w2p+czfV9re0cEN7\nNvuvsKZhV0jXqifWV5O04VMrqql3mhX12DsfVekwtAtswaLs8JYiLNsu+H8DsqSujRwLcQAAAABJ\nRU5ErkJggg==\n",
       "text": [
        "a_n__(l)\u22c5\u03b6_n(m_l\u22c5x_l) - a_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l)\u22c5\u03c8_n(m_l\u22c5x_l) + d_\n",
        "n__(l+1)\u22c5\u03c8_n(m_l+1\u22c5x_l)"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print(\"eqA2.1\")\n",
      "display(eqA2_1)\n",
      "#1\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\zeta_n(m_lx_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$\")\n",
      "denom = a__l_n*m_lp1\n",
      "z=m_l*x_l\n",
      "eqA2_1_norm = expand( eqA2_1/(denom * zeta_n(z)) )\n",
      "eqA2_1_norm = eqA2_1_norm.replace( zeta__dash_n(z)/zeta_n(z), D__3_n(z) )\n",
      "eqA2_1_norm = expand( eqA2_1_norm * denom )\n",
      "#display(eqA2_1_norm)\n",
      "#2\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\psi_n(m_lx_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$\")\n",
      "z=m_l*x_l\n",
      "denom = -1 * d__l_n*m_lp1/zeta_n(z)\n",
      "eqA2_1_norm = expand(eqA2_1_norm/(denom*psi_n(z)) )\n",
      "eqA2_1_norm = eqA2_1_norm.replace(psi__dash_n(z)/psi_n(z), D__1_n(z))\n",
      "eqA2_1_norm = expand( eqA2_1_norm * denom )\n",
      "#display(eqA2_1_norm)\n",
      "#3\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\zeta_n(m_{l+1}x_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$\")\n",
      "z=m_l*x_l\n",
      "denom = -1 *a__lp1_n*m_l/(zeta_n(z)*psi_n(z))\n",
      "zp1=m_lp1*x_l\n",
      "eqA2_1_norm = expand( eqA2_1_norm/(denom* zeta_n(zp1)) )\n",
      "eqA2_1_norm = expand(eqA2_1_norm.replace(zeta__dash_n(zp1)/zeta_n (zp1), D__3_n(zp1)))\n",
      "eqA2_1_norm = expand( eqA2_1_norm * denom )\n",
      "#display(eqA2_1_norm)\n",
      "#4\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\psi_n(m_{l+1}x_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$\")\n",
      "z=m_l*x_l\n",
      "zp1=m_lp1*x_l\n",
      "denom =  d__lp1_n*m_l/(zeta_n(z)*zeta_n(zp1)*psi_n(z))\n",
      "eqA2_1_norm = expand(eqA2_1_norm/(denom*psi_n(zp1)) )\n",
      "eqA2_1_norm = eqA2_1_norm.replace(psi__dash_n(zp1)/psi_n(zp1), D__1_n(zp1))\n",
      "eqA2_1_norm = expand( eqA2_1_norm * denom )\n",
      "display(eqA2_1_norm)\n",
      "eqA2_1_result = eqA2_1_norm\n",
      "\n",
      "latex_print(r\"$\\hspace{42pt}$ Check it back\")\n",
      "z=m_l*x_l\n",
      "eqA2_1_norm = eqA2_1_norm.replace( D__1_n(z), psi__dash_n(z)/psi_n(z))\n",
      "eqA2_1_norm = eqA2_1_norm.replace( D__3_n(z), zeta__dash_n(z)/zeta_n(z) )\n",
      "eqA2_1_norm = eqA2_1_norm*zeta_n(z)*psi_n(z)\n",
      "z=m_lp1*x_l\n",
      "eqA2_1_norm = eqA2_1_norm.replace( D__1_n(z), psi__dash_n(z)/psi_n(z))\n",
      "eqA2_1_norm = eqA2_1_norm.replace( D__3_n(z), zeta__dash_n(z)/zeta_n(z) )\n",
      "eqA2_1_norm = eqA2_1_norm*zeta_n(z)*psi_n(z)\n",
      "display(expand(eqA2_1_norm-eqA2_1))\n",
      "\n",
      "        \n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "eqA2.1\n"
       ]
      },
      {
       "latex": [
        "$$a^{(l)}_{n} m_{l+1} \\zeta^{'}_{n}{\\left (m_{l} x_{l} \\right )} - a^{(l+1)}_{n} m_{l} \\zeta^{'}_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l)}_{n} m_{l+1} \\psi^{'}_{n}{\\left (m_{l} x_{l} \\right )} + d^{(l+1)}_{n} m_{l} \\psi^{'}_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAs4AAAAaBAMAAABV8scPAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAIquJdjLdEETvu2aZ\nVM0GsGrEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIF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5f7glDYRWUBzVNXvJuJPf/vKaP94gORGAWLO3f8TdyOYL4nIDjZteOHi736iz+6NKlRioMffP90\nSCOq5oX3Arpq2s43LYZtIXwH1cQZb/73iRYK8hZxLsY7C3cic7ynhv/0l/BOvjX3ZgLVX0EazRJz\nLWSk5CDlJ+iCyuv3rqcfdqXrZX1l9HPLl7C+M3p/NFq3dooF8QnVcb2CYYvxFnEWLArwTsd1umc4\nZl5aE8Ao7enC+1PKu5mge1NlVO9LH06lEWt0O4IlViw5/kJsiayyo0rX6poyesZqZCxrUoqWgvgC\nNfm0gxYOGqQcXB7vuxMGBXhn4VrdMyQzL3cU+EwnXFOqyrybiSA6AGX0iDGURlwedxAMKXdkEXc5\nZbsgXG8NY0gj+kMnEcLScU5IFcQXqHKgwrXNoMeeN20X03Gt7tmKR7OXFZa5lUZ/Raoq9W4msPys\nNrLuy6URezzfgx0qCfIAXqoquE2ZcK1c2oI0KsXGgrBknEuHPu2o6oL4ApUHqlyFuxrcMeSNLFyr\neybPo0mm5jbM3uPGmU3UfkOqtCGQRuZKVzfI/M9ukcY6xvXeScU3MUYneU1iVjh1hfF916+FN1FL\nwfW7ty9R70DlHGdQqtC3K9OMbBtbDxewY92umKSnGenj8iQfVVfU9WvhTRxScCcy/wrmmyfEmoA1\nhgAAAABJRU5ErkJggg==\n",
       "text": [
        "a_n__(l)\u22c5m_l+1\u22c5\u03b6_n__'(m_l\u22c5x_l) - a_n__(l+1)\u22c5m_l\u22c5\u03b6_n__'(m_l+1\u22c5x_l) - d_n__(l)\u22c5m\n",
        "_l+1\u22c5\u03c8_n__'(m_l\u22c5x_l) + d_n__(l+1)\u22c5m_l\u22c5\u03c8_n__'(m_l+1\u22c5x_l)"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\zeta_n(m_lx_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727bc4590>"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\psi_n(m_lx_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727b97f10>"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\zeta_n(m_{l+1}x_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa7440de710>"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\psi_n(m_{l+1}x_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727bbb7d0>"
       ]
      },
      {
       "latex": [
        "$$\\frac{a^{(l)}_{n} m_{l+1} \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} - \\frac{a^{(l+1)}_{n} m_{l} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} - \\frac{d^{(l)}_{n} m_{l+1} \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} + \\frac{d^{(l+1)}_{n} m_{l} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABJEAAAA5BAMAAAB0YKcRAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAIquJdjLdEETvu2aZ\nVM0GsGrEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAS1UlEQVR4Ae2cfYwkR3XA3+zMbM/OzuwOFhKf\n5tZwAYQiMjqdIRKWPHgPDObDG/Eh8ZUbAsL5A5uR75TI/sM3AsuSiaJbKzEgkFAjgQycxG2UGIiw\nnAlGljDGXpAwcRLJIyDm42C1trHOglzIe1VdVa+qu2premaOtbQlzXR11fv41auanp7p7gewd3kO\nimzvLYYSJAntKNEphCodSzngT0rGsVs2S+6QvwAOs3oxyOLjdJEmLukmZwfvY1HwVpMuHD0yqG95\nBWbTcQJuPq8s1VMI+DsB1fVXQBS7MjjVlsgCOMz2CYD3wpzJ4uOEE1cPBpKRT1FtDuA2qG5EWGgO\nWlutFC6PEJ1G5C5o9FG/ga/6t7Hm93cXfA8eiGNHY9MXQebHYQ7ugve/HOZMFh+n5mCPQDLyKaq3\nAlwBSRph4VZodZd34eYI0SlEGj2ojlC/STbaffD7Q8n74N/i2MnYtEWSxQwfJeERmC+ZpImJE+AU\nBwM5bWAy/S8AnAP4UoQ1lITWGJoxx68Icx6RZgdW6Au0Sf0UAK8/lAR4KI6djE1bJJkXh5knMlxJ\nUVFlahNV4+MEOHHBQE7k1y/cB3gC4JhfQPegJNy0AbWebplHZRFglZaIXklefygJyZ1x7LMglWRe\nHOaCyGglxUSVqU1UlTQxcYK+XEkx5BMh2ML1MdQ3AX5otxbtoSSc/BlCrRX1zqztLwHeQ8b0SvL6\nQ8nk7b0o9p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DRNzrITKD0fyj1ug2DYHzMfZM7Y9lOnJFgwTnl3\nUpZHgj/wfd+QNLBQmoRbqCIuOvkkUxQoyNfwt43Up0EBYjkq0F8yxiZWgg5Jrgyazt0QQLNsM6Au\n1bPUDV8w7SKRhFhJdgQoasngkwUa+UwShiaXm8MJlB60AcB/J7D4wLCLdJIxVoyb4FyHqFM0kx8n\nNuIRR5dKqqt2RYQtKJnXFKi1t3YySznb4qNmueGDo46gQ6U5DzTLttrBbY/VX8jqopq6DXJJHPt3\n1Z7TyDqcQOVuVcsHii82YaSnfOA20k1uPpQJEdAAdaoE9VZo6D1ZMTcgWR3mngXd7EqOdI+qmDtC\nZIur0VKCeutq6A6quOpZ51zQ/LazHtyYO4KytpHpkzUXLaeRKbjDduXygXItW55dddXpuokMaM7c\nSBlUW0Hz/xvwgAOeoJvBAAAAAElFTkSuQmCC\n",
       "text": [
        "     a_n__(l)\u22c5m_l+1\u22c5D_n__(3)(m_l\u22c5x_l)           a_n__(l+1)\u22c5m_l\u22c5D_n__(3)(m_l+1\u22c5\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "\u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m\n",
        "\n",
        "x_l)           d_n__(l)\u22c5m_l+1\u22c5D_n__(1)(m_l\u22c5x_l)           d_n__(l+1)\u22c5m_l\u22c5D_n__\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "_l\u22c5x_l)   \u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_\n",
        "\n",
        "(1)(m_l+1\u22c5x_l)   \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "l)\u22c5\u03b6_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Check it back"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa7440de710>"
       ]
      },
      {
       "latex": [
        "$$0$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOBAMAAADkjZCYAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEJmJdjLNVN0iZu+7\nq0QgoRR7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQIHWNgEDJRZWBgSGeQmMDAtYGBOYGB\n5wID+0cG/gsMfN8Z5BUY+L4wzDdgYP0MJeUNQCL8Cgzs3xk4DjBwfWRg2cDAlMDA0M4gHcDAIOxy\nlQEA9FISlFfRJtkAAAAASUVORK5CYII=\n",
       "text": [
        "0"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print(\"System to solve:\")\n",
      "print(\"Eq1:\")\n",
      "display(eqA2_1_result)\n",
      "print(\"Eq2:\")\n",
      "display(eqA2_4)\n",
      "result_ad = solve([eqA2_1_result, eqA2_4],[a__l_n, d__l_n])\n",
      "result_a__l_n = result_ad.items()[0][1]\n",
      "display(Latex(r\"Result for  $a^{(l)}_n$:\"))\n",
      "display(simplify(result_a__l_n))\n",
      "result_d__l_n = result_ad.items()[1][1]\n",
      "display(Latex(r\"Result for  $d^{(l)}_n$:\"))\n",
      "display(simplify(result_d__l_n))\n",
      "print(\"Check the solution\")\n",
      "eq1=eqA2_1_result.subs(a__l_n, result_a__l_n).subs(d__l_n, result_d__l_n)\n",
      "display(simplify(eq1))\n",
      "eq1=eqA2_4.subs(a__l_n, result_a__l_n).subs(d__l_n, result_d__l_n)\n",
      "display(simplify(eq1))\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "System to solve:\n",
        "Eq1:\n"
       ]
      },
      {
       "latex": [
        "$$\\frac{a^{(l)}_{n} m_{l+1} \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} - \\frac{a^{(l+1)}_{n} m_{l} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} - \\frac{d^{(l)}_{n} m_{l+1} \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} + \\frac{d^{(l+1)}_{n} m_{l} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABJEAAAA5BAMAAAB0YKcRAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAIquJdjLdEETvu2aZ\nVM0GsGrEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAS1UlEQVR4Ae2cfYwkR3XA3+zMbM/OzuwOFhKf\n5tZwAYQiMjqdIRKWPHgPDObDG/Eh8ZUbAsL5A5uR75TI/sM3AsuSiaJbKzEgkFAjgQycxG2UGIiw\nnAlGljDGXpAwcRLJIyDm42C1trHOglzIe1VdVa+qu2premaOtbQlzXR11fv41auanp7p7gewd3kO\nimzvLYYSJAntKNEphCodSzngT0rGsVs2S+6QvwAOs3oxyOLjdJEmLukmZwfvY1HwVpMuHD0yqG95\nBWbTcQJuPq8s1VMI+DsB1fVXQBS7MjjVlsgCOMz2CYD3wpzJ4uOEE1cPBpKRT1FtDuA2qG5EWGgO\nWlutFC6PEJ1G5C5o9FG/ga/6t7Hm93cXfA8eiGNHY9MXQebHYQ7ugve/HOZMFh+n5mCPQDLyKaq3\nAlwBSRph4VZodZd34eYI0SlEGj2ojlC/STbaffD7Q8n74N/i2MnYtEWSxQwfJeERmC+ZpImJE+AU\nBwM5bWAy/S8An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8jW8e+SzrT9qpFmYUiHokHTKoJncDX40yzbt\nZOUDtJWpGxY7qjHLTqE/q7LdoH20QKMgk4SmyVl2AqUtGwAIghEzzqFMWKHd7DHXfuqU/FozLVYH\nQG2AHZhkgPJI3ENCWaFMAqJQmoQq7QQlU5J9lN6omHwN9U2fbRmgTakARSkVgg6Vm0nRjCM/mmVb\nAeL2aqrL1A3LI6rLIkYrV5IVAYGGObXyGgWZJDRNzrITKD0fyj1ug2DYHzMfZM7Y9lOnJFgwTnl3\nUpZHgj/wfd+QNLBQmoRbqCIuOvkkUxQoyNfwt43Up0EBYjkq0F8yxiZWgg5Jrgyazt0QQLNsM6Au\n1bPUDV8w7SKRhFhJdgQoasngkwUa+UwShiaXm8MJlB60AcB/J7D4wLCLdJIxVoyb4FyHqFM0kx8n\nNuIRR5dKqqt2RYQtKJnXFKi1t3YySznb4qNmueGDo46gQ6U5DzTLttrBbY/VX8jqopq6DXJJHPt3\n1Z7TyDqcQOVuVcsHii82YaSnfOA20k1uPpQJEdAAdaoE9VZo6D1ZMTcgWR3mngXd7EqOdI+qmDtC\nZIur0VKCeutq6A6quOpZ51zQ/LazHtyYO4KytpHpkzUXLaeRKbjDduXygXItW55dddXpuokMaM7c\nSBlUW0Hz/xvwgAOeoJvBAAAAAElFTkSuQmCC\n",
       "text": [
        "     a_n__(l)\u22c5m_l+1\u22c5D_n__(3)(m_l\u22c5x_l)           a_n__(l+1)\u22c5m_l\u22c5D_n__(3)(m_l+1\u22c5\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "\u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m\n",
        "\n",
        "x_l)           d_n__(l)\u22c5m_l+1\u22c5D_n__(1)(m_l\u22c5x_l)           d_n__(l+1)\u22c5m_l\u22c5D_n__\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "_l\u22c5x_l)   \u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_\n",
        "\n",
        "(1)(m_l+1\u22c5x_l)   \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "l)\u22c5\u03b6_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Eq2:\n"
       ]
      },
      {
       "latex": [
        "$$a^{(l)}_{n} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} - a^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l)}_{n} \\psi_{n}{\\left (m_{l} x_{l} \\right )} + d^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAAaBAMAAAB/bvTlAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAIquJdjLdEETvu2aZ\nVM0GsGrEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAHn0lEQVRYCa2YbYhUVRjH/+PM7J3ZmdmdJKgw\ncaUt+hTzYbVAqZu7aVjhBhX06lSiBWE3XQL7oEOKoBK7En7JiCsYUUGOlC9Q1JTihzIbo3cCh96o\ntGFMZYUQep7zcs+ZO3PXWXcemHuec85z/vd3nnvmzD0DSIvlqayqyhUWVzWPm6GaEesGG9BduvV4\naRKPGsYr8JyCs8/T4x7BDNW0EJVdYAO6TPcWUkXERy3Kabu9HrbyoBJ9HrsJM1RjJWVdYAO6S5dy\nEa/A8TXilZRbgMU8zufLd/REhcOVmVk32IDu0vXm0VcG3pzJzPYAp3m8zxfK18zUWERaN9iA7tL1\nAP15YIQJqVQWsZ9l2n9ti8BZHujzhfPVmRpHKzugnabSZkPSdHWDDjBzidAzN4ThewJ4mDq+5s6C\njoj52guVN4bqopqsITnBns8XzleHahwubZaB102ptys2G+K6A9Oh2/56BF0nsw3uCMO3HVhO7VQA\ng/eoiD5POeGiL9zA9ZSPhM+OuHC+OlTjMcpq2jFlf9Vms/I1LbpLEXRWviL1DAsCvpeBvdROjxLr\njt6nIoZV2VIkgiVodaUG0OtiVr3+Rp22Mc5Xh2qWRps7jnsWGzAniG4TK/sCuheC2NRkezogVtZB\nkXo6gMoghl6XdtGXgdCcP4P+nYEXcpyJUANXkz7SD7Lj84Xz1aEahyvboB1TLoRho9b9Qc/l6b4J\nYuPFZDs66s/kdVCkng6gMuB7EWi4wPsQP5Myg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qeAmht4vdRHz4P9DbW3wAmFfCJ8CvcTpdpi71NuhtmI+ZOM4XY7/h4EDBVI0XrUYx\nPsdRvsar++i1PTlBtWyF2wILsWEb3EwJmfFyOh+ms1U0ncwXIumQmkjgsJpuaLbEoNeXNXHicwYX\nzL5brSgGHfulFBsrgn4F+ctBS3sJHZwX0OnSGVw2/KE8ZsKcAXgI1g3fP1iSj13UzSVSjUJ8DqN8\nrRsZW1SWZ8++ErcFFmbLffnuncA1S9HvhelsFU2n8hVNh59/+iAPOd3QbIlB58uaeMAnV5QATT6H\nWW6Kn/aToi4ve7XPTox7wyYfe7g1Ss0+Z4oxvS4V14WHc91mq3LDIC20CDpWCehUvniIWpTCtS+P\nc0VONzTbW+p/1etlyP2eo3jimk+tKG7mP3bSo9nKKG1jsi6ufLoMnLirKnYhH7vdIvxoNZ/7xX7P\njjh7DrEXMpuNtjmyXTiejKBjlYBuh6UUQUe/4XRrMd2W2er1pVQ4AwGfWlHU5XjbMQ89r1Av/bEZ\nGJ8uhbGzUfnNhXzszW1TqfkcyudMYXz2dGrCDV0MmzztxRp4hl4O2tKxSud0dH7he8nptujJfE1o\nGpq4U9MVtaK4OvIp/bGQWERezOe6tCMly9mj/OZCPvbmtqnUfAoV50wxhM+eNrLRsdgoG0BqAMPl\nCDpWmQYdXBaU022ZLecrduxfEUIuZcDwqRVFzbbNsSvGN/+BmDaSlo/dbmr2w2p+czfV9re0cEN7\nNvuvsKZhV0jXqifWV5O04VMrqql3mhX12DsfVekwtAtswaLs8JYiLNsu+H8DsqSujRwLcQAAAABJ\nRU5ErkJggg==\n",
       "text": [
        "a_n__(l)\u22c5\u03b6_n(m_l\u22c5x_l) - a_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l)\u22c5\u03c8_n(m_l\u22c5x_l) + d_\n",
        "n__(l+1)\u22c5\u03c8_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "latex": [
        "Result for  $a^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727bfb150>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} \\left(- m_{l} \\left(a^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) + m_{l+1} \\left(a^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABj8AAABABAMAAAC3sHi7AAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAUcUlEQVR4Ae1cfYwkR3V/0zOzszvfiwLGDkTt\n6HR3ViztJHYcxxHZthPhCCRuUQLkEJLHMfaFD5GxBb4QNvGCo1gx1mptkiAIhDbIioHI3kgI+yIi\nTyzhI0SyVwGimD98g+KID4Xs5pzYiu0zee9VVVdVf8/czDgDXdJ0Vb2vevWrruqvmgcw4/SKGdsv\nzBcILDICl59dZO8L3wsEZovAobcWE2S2CBfWFxuBWjFBFnsAC+9ni8C8JkjdT+nHF1J4BUsg4PTH\nRGJRQD08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cq\njgVhcGVxLPWvSaXkyBgkkBglRGoXWYHAVBGIxJyIjxXCbZrRBzjiBVF1LIgsvzLUX8/6aZExSADb\njY8SktV6wS8QmBwBT6umxAopG2JaAUsiFoRFiqlkqD8vVFIiY0ib5kSLaaYgFQhMHYENw6JYyQ2C\nLl6li2YpIUCFKcLlVHUrCAWLl/2IBSbERwmJly2oBQLTRuD+aRvMZ69pvhzIp1JIFQi8DAis6afy\nebaeEUpinq4UbRUIpCBQe3mW8vRQEin+FqwCgfkisD3f5mRrn3xZWi0aLRAYG4F7x9aYgkKxv2oK\nIBYm5oJAZTCXZuxGMkJJ2MJFrUDgZUQgNVbIjPzKCiUxo2YLswUCEyCQFitkAnN5VGgrfZEKBBYD\ngdRYIbPpwuRBKGbjT2H1JxuB/wOlzvjTN8pysQAAAABJRU5ErkJggg==\n",
       "text": [
        "-m_l\u22c5(a_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5D_n__(1)(m_l+\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)) + m_l+1\u22c5(a_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5\u03c8_n(m_l\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03b6_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "+1\u22c5x_l))\u22c5D_n__(1)(m_l\u22c5x_l)\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                          "
       ]
      },
      {
       "latex": [
        "Result for  $d^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727ae8c90>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\psi_{n}{\\left (m_{l} x_{l} \\right )}} \\left(- m_{l} \\left(a^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) + m_{l+1} \\left(a^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABkMAAABABAMAAABbxR2tAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAU9UlEQVR4Ae1dfWxk11U/82a8Y8+Mx3ZFaRta\n9FKi3a1YyYaEEIKCXxLUoFZiXUFbtgrKhDQxpVU7KW2WUkOGBogo0cqhQGkJ9G1RRNqi1n9ETVIV\nZYjUbFukrEX5LFJ3KoKaVhSbXciKTTblnPvx7rn3fc0be/yB35X87rnn455zf3Pv+5i57xhg3OVl\n43ZQ9l8isK8RuOb8vg6/DL5EYMwIXPWWcomMGeKy+32OQL1cIvv8EyzDHzMCO7dEPp0xkixZhtnB\nEh0uONxGWNBgl9SLjsuEObql6SOf2rElUp9NDyZLlm510CTNDASTsLg7ibkHeUXHZYYwuqXpI5/a\nsSXyuJ8eTJYs3erASe4pNOLmhwqp76JysXHxQEe35L3k0Du1RLxT6YEw2dW21rrVrC5Q0+ZZCmNr\n2GFN2352LKxKaDvObh0daLkd/fYBKAeuvYADS8TPJWLjEgEP013MMtfXCAo7tUQOLaUHZ2Re3zvu\na8VnAb6jaVEfg9bKLzk8S2FcDR5WO4B2aDk6BhAL1VLYrka10Fcrd2q3PPptjfQYXBVFFIdFu8+v\n3XF5fTjztO+gnNiNa5motFXmTi2RDT89UiOr+fAE6a3h37+/A6A1oJYuN8Hb4OcdnpaNtVZhNdFJ\n+y2rAM9Y3m5KCNVS2LbGXQV6akezNxvUAl26qjdBE8GAFFhc7Yy2M66aPxFOBA7KyeaOZbLS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ykEwf34yhHvgcR\nOLUrMX18V7yWTksERkDg9Ag2WzbJSTqx5f7LDkoEtg+BXclxcd3C9g2g7KlEYLwI7EaOi7ykE+Md\ncdl7iUAxBHYhx0UtLBZiqV0isJsI7EKOi9HTVewmUKXv/78I/B+ngvKABbjhngAAAABJRU5ErkJg\ngg==\n",
       "text": [
        "-m_l\u22c5(a_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5D_n__(1)(m_l+\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)) + m_l+1\u22c5(a_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5\u03c8_n(m_l\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03c8_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "+1\u22c5x_l))\u22c5D_n__(3)(m_l\u22c5x_l)\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                          "
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Check the solution\n"
       ]
      },
      {
       "latex": [
        "$$0$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOBAMAAADkjZCYAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEJmJdjLNVN0iZu+7\nq0QgoRR7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQIHWNgEDJRZWBgSGeQmMDAtYGBOYGB\n5wID+0cG/gsMfN8Z5BUY+L4wzDdgYP0MJeUNQCL8Cgzs3xk4DjBwfWRg2cDAlMDA0M4gHcDAIOxy\nlQEA9FISlFfRJtkAAAAASUVORK5CYII=\n",
       "text": [
        "0"
       ]
      },
      {
       "latex": [
        "$$0$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOBAMAAADkjZCYAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEJmJdjLNVN0iZu+7\nq0QgoRR7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQIHWNgEDJRZWBgSGeQmMDAtYGBOYGB\n5wID+0cG/gsMfN8Z5BUY+L4wzDdgYP0MJeUNQCL8Cgzs3xk4DjBwfWRg2cDAlMDA0M4gHcDAIOxy\nlQEA9FISlFfRJtkAAAAASUVORK5CYII=\n",
       "text": [
        "0"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print(\"eqA2.3\")\n",
      "display(eqA2_3)\n",
      "#1\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\zeta_n(m_lx_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$\")\n",
      "denom = b__l_n\n",
      "z=m_l*x_l\n",
      "eqA2_3_norm = expand( eqA2_3/(denom * zeta_n(z)) )\n",
      "eqA2_3_norm = eqA2_3_norm.replace( zeta__dash_n(z)/zeta_n(z), D__3_n(z) )\n",
      "eqA2_3_norm = expand( eqA2_3_norm * denom )\n",
      "#display(eqA2_3_norm)\n",
      "#2\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\psi_n(m_lx_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$\")\n",
      "z=m_l*x_l\n",
      "denom = -1 * c__l_n/zeta_n(z)\n",
      "eqA2_3_norm = expand(eqA2_3_norm/(denom*psi_n(z)) )\n",
      "eqA2_3_norm = eqA2_3_norm.replace(psi__dash_n(z)/psi_n(z), D__1_n(z))\n",
      "eqA2_3_norm = expand( eqA2_3_norm * denom )\n",
      "#display(eqA2_3_norm)\n",
      "#3\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\zeta_n(m_{l+1}x_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$\")\n",
      "z=m_l*x_l\n",
      "denom = -1 *b__lp1_n/(zeta_n(z)*psi_n(z))\n",
      "zp1=m_lp1*x_l\n",
      "eqA2_3_norm = expand( eqA2_3_norm/(denom* zeta_n(zp1)) )\n",
      "eqA2_3_norm = expand(eqA2_3_norm.replace(zeta__dash_n(zp1)/zeta_n (zp1), D__3_n(zp1)))\n",
      "eqA2_3_norm = expand( eqA2_3_norm * denom )\n",
      "#display(eqA2_3_norm)\n",
      "#4\n",
      "latex_print(r\"$\\hspace{42pt}$ Divide with $\\psi_n(m_{l+1}x_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$\")\n",
      "z=m_l*x_l\n",
      "zp1=m_lp1*x_l\n",
      "denom =  c__lp1_n/(zeta_n(z)*zeta_n(zp1)*psi_n(z))\n",
      "eqA2_3_norm = expand(eqA2_3_norm/(denom*psi_n(zp1)) )\n",
      "#display(eqA2_3_norm)\n",
      "eqA2_3_norm = eqA2_3_norm.replace(psi__dash_n(zp1)/psi_n(zp1), D__1_n(zp1))\n",
      "eqA2_3_norm = expand( eqA2_3_norm * denom )\n",
      "display(eqA2_3_norm)\n",
      "eqA2_3_result = eqA2_3_norm\n",
      "\n",
      "latex_print(r\"$\\hspace{42pt}$ Check it back\")\n",
      "z=m_l*x_l\n",
      "eqA2_3_norm = eqA2_3_norm.replace( D__1_n(z), psi__dash_n(z)/psi_n(z))\n",
      "eqA2_3_norm = eqA2_3_norm.replace( D__3_n(z), zeta__dash_n(z)/zeta_n(z) )\n",
      "eqA2_3_norm = eqA2_3_norm*zeta_n(z)*psi_n(z)\n",
      "z=m_lp1*x_l\n",
      "eqA2_3_norm = eqA2_3_norm.replace( D__1_n(z), psi__dash_n(z)/psi_n(z))\n",
      "eqA2_3_norm = eqA2_3_norm.replace( D__3_n(z), zeta__dash_n(z)/zeta_n(z) )\n",
      "eqA2_3_norm = eqA2_3_norm*zeta_n(z)*psi_n(z)\n",
      "display(expand(eqA2_3_norm-eqA2_3))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "eqA2.3\n"
       ]
      },
      {
       "latex": [
        "$$b^{(l)}_{n} \\zeta^{'}_{n}{\\left (m_{l} x_{l} \\right )} - b^{(l+1)}_{n} \\zeta^{'}_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l)}_{n} \\psi^{'}_{n}{\\left (m_{l} x_{l} \\right )} + c^{(l+1)}_{n} \\psi^{'}_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAlUAAAAaBAMAAABsubQRAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2rVESJdpki\nZjI6QXVuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIMElEQVRYCaVYaYgcRRT+emZnZ3rOxiOQVdhW\n/0iMuoiCisqIhniB6zFRCcoiirpEaQ9EVMygokSQbUFFI9GOSDQbj0USxXiNB0Q0ISMoeEQdFBEU\ndfNDTcSI79XRXd3TPc4mD6beq1evvvrqdXV11QBCqh1SnrSBkq+tBejt8dgDA4uw4syANVHT8FYW\nt/2a6mIctBu/6sFzc9oaXlu+dbyjw7/HgYFpHNJxZsAxRtuwZiY3YD+megRKTdg9Nfh4OOlh2dCg\nDu7n6Db9frkGBwbGQErizGDt1g0L0JncgIVPtRTAnoPlqvG/VHoh6iHgKY53ubgNsFzSLPsDJnty\nmWCGmh+1DW1lctsfdrkOCl3gODX6EUOziAKXAldyzeWCcnVAYIwhJcGMl+/CJZMbsPCpjgCNDjDL\nNEh7rI0tR1Z1+a02YroJ/MMOlwvO1XBgHC2l1tOWqU1mqANF1RjurWYwkA7STOUG9MKp1mmlDBae\ntXVUE/gR+IHs2znc54Kl6grVV4z2Eq6DTgTqk6hPsN/lgnM1HBhHK7lJG6Y2mcEOW7K4IQ0kg5sx\nVbwfImcZYtaFKeBe4FkKIgVMv8QlScGRuq+cTHpW0L7iouyyXxScqyHBuI+UgjZMbTIzcpXJLQ0k\ng5uZq4vMMdNtnnXDAx4AlpBJDxGLtj6vYjcq3af6Gv6iXE0hF2C01TqpRdsW52pIsAi97Ed2aBn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l)\u22c5\u03b6_n__'(m_l\u22c5x_l) - b_n__(l+1)\u22c5\u03b6_n__'(m_l+1\u22c5x_l) - c_n__(l)\u22c5\u03c8_n__'(m_l\u22c5\n",
        "x_l) + c_n__(l+1)\u22c5\u03c8_n__'(m_l+1\u22c5x_l)"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\zeta_n(m_lx_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa74c74a790>"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\psi_n(m_lx_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727ac1a90>"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\zeta_n(m_{l+1}x_l)$ and substitute with $D^{(3)}_n=\\zeta^{'}_n/\\zeta_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727adf310>"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Divide with $\\psi_n(m_{l+1}x_l)$ and substitute with $D^{(1)}_n=\\psi^{'}_n/\\psi_n$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727c4f5d0>"
       ]
      },
      {
       "latex": [
        "$$\\frac{b^{(l)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} - \\frac{b^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} - \\frac{c^{(l)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} + \\frac{c^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABJEAAAA5BAMAAAB0YKcRAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2rVESJdpki\nZjI6QXVuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAARjklEQVR4Ae2cfYwkRRXA3+zXfO7ueOeRcP5x\nrYmJQfBWAwkavAwJBFESFmERNJgNAcQVcRViTPxgAgQDibkhMRdzBG5APL1FZKMcRk5lOKIY5XJr\n4iUIiBPQkGBg90y8O/Du8L2q7qpX1V01vTM9yxC3kp2ufv0+fvWqprtnp+cBrKo9g9rzpgWJIG/K\n1mJPxNWBBoRKARGelZVKi45aoCTqaxvMPOUaua3V14yB5xqwc0d1YskQrsGOQInivAQwGFQREAg8\nKyunAsRAlUG/Oh3zNBGAxdkvFO53qAq3Q7FtispL5QDu47K16AsUDFTHv39dAwNCpUYu8cysvDcB\nVBn0q9MpTxOP1WDtZw/uArgHcgGwdheUG+MrsIGJ1qQrUDBSQNFuBsgFuFXt7aJiAJgpMyuFZgKo\nMuhXp1OeIF+zOPtFYvg9HeAqgA9xGYqgPA1DbS5cg75E0St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vTXBQhSTIKMEmphnK1Fq\n0MJevnjBUIVsVjNoH3WA/uLjRGEJ/6JWCaKetRVp82rGLcWyLD3UCl3FfIu3mhGHL2Q64A0YWfYD\nzfAd7eC2yfr7WV90A1sgl8TCryN5zCI8YCUq9qhaPFF8sQknzSgGblOGic1H5EIk1EMdRIpqy95U\nSnZA9YyOfphCiW1NdrIPdV5QurJjW0T/LdZqtoU+gj3bPDzYFzS3b42knwgKZbEM2Ggxi9DQHrat\nF0+U7VlTYc82jw7aYVImNOYueZz/A7YSTQ8bsKyqAAAAAElFTkSuQmCC\n",
       "text": [
        "        b_n__(l)\u22c5D_n__(3)(m_l\u22c5x_l)                b_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "\u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m\n",
        "\n",
        "l)                c_n__(l)\u22c5D_n__(1)(m_l\u22c5x_l)                c_n__(l+1)\u22c5D_n__(1\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "_l\u22c5x_l)   \u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_\n",
        "\n",
        ")(m_l+1\u22c5x_l)     \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "l)\u22c5\u03b6_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "latex": [
        "$\\hspace{42pt}$ Check it back"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727b44990>"
       ]
      },
      {
       "latex": [
        "$$0$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOBAMAAADkjZCYAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEJmJdjLNVN0iZu+7\nq0QgoRR7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQIHWNgEDJRZWBgSGeQmMDAtYGBOYGB\n5wID+0cG/gsMfN8Z5BUY+L4wzDdgYP0MJeUNQCL8Cgzs3xk4DjBwfWRg2cDAlMDA0M4gHcDAIOxy\nlQEA9FISlFfRJtkAAAAASUVORK5CYII=\n",
       "text": [
        "0"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print(\"System to solve:\")\n",
      "print(\"Eq1:\")\n",
      "display(eqA2_3_result)\n",
      "print(\"Eq2:\")\n",
      "display(eqA2_2)\n",
      "result_bc = solve([eqA2_3_result, eqA2_2],[b__l_n, c__l_n])\n",
      "result_b__l_n = result_bc.items()[0][1]\n",
      "display(Latex(r\"Result for  $b^{(l)}_n$:\"))\n",
      "display(simplify(result_b__l_n))\n",
      "result_c__l_n = result_bc.items()[1][1]\n",
      "display(Latex(r\"Result for  $c^{(l)}_n$:\"))\n",
      "display(simplify(result_c__l_n))\n",
      "print(\"Check the solution\")\n",
      "eq1=eqA2_3_result.subs(b__l_n, result_b__l_n).subs(c__l_n, result_c__l_n)\n",
      "display(simplify(eq1))\n",
      "eq1=eqA2_2.subs(b__l_n, result_b__l_n).subs(c__l_n, result_c__l_n)\n",
      "display(simplify(eq1))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "System to solve:\n",
        "Eq1:\n"
       ]
      },
      {
       "latex": [
        "$$\\frac{b^{(l)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} - \\frac{b^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} - \\frac{c^{(l)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}} + \\frac{c^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )}}{\\psi_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )}}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABJEAAAA5BAMAAAB0YKcRAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2rVESJdpki\nZjI6QXVuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAARjklEQVR4Ae2cfYwkRRXA3+zXfO7ueOeRcP5x\nrYmJQfBWAwkavAwJBFESFmERNJgNAcQVcRViTPxgAgQDibkhMRdzBG5APL1FZKMcRk5lOKIY5XJr\n4iUIiBPQkGBg90y8O/Du8L2q7qpX1V01vTM9yxC3kp2ufv0+fvWqprtnp+cBrKo9g9rzpgWJIG/K\n1mJPxNWBBoRKARGelZVKi45aoCTqaxvMPOUaua3V14yB5xqwc0d1YskQrsGOQInivAQwGFQREAg8\nKyunAsRAlUG/Oh3zNBGAxdkvFO53qAq3Q7FtispL5QDu47K16AsUDFTHv39dAwNCpUYu8cysvDcB\nVBn0q9MpTxOP1WDtZw/uArgHcgGwdheUG+MrsIGJ1qQrUDBSQNFuBsgFuFXt7aJiAJgpMyuFZgKo\nMuhXp1OeIF+zOPtFYvg9HeAqgA9xGYqgPA1DbS5cg75E0StpMKjUwCWekZWhllhJJqgy6FenY55o\nJRmc/SIx/GLQ4wALXIYi2NiGUpML16BfEyhsJQ0ElRq4xDOyMoIH8eRppk8Z9KtT65QnWkkGZ79I\nuN+JaZiYAvg6k6EINn8WP6bMMuEadEMUtpIGgUoNPMQzsvJPPEoriYMqg351OueJVpLB2S8U7rcQ\nQCkAuJXJUIRXtwDElsn73Q1R2EoaBCo16hDPyAoB0krioMqgX53OeaKVZHD2C4X7LczCUBOA3lxR\nQxHAxFGgcxP1HP8Ne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ueZz/A7YSTQ8bsKyqAAAAAElFTkSuQmCC\n",
       "text": [
        "        b_n__(l)\u22c5D_n__(3)(m_l\u22c5x_l)                b_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "\u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m\n",
        "\n",
        "l)                c_n__(l)\u22c5D_n__(1)(m_l\u22c5x_l)                c_n__(l+1)\u22c5D_n__(1\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500 - \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 + \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "_l\u22c5x_l)   \u03c8_n(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l)   \u03c8_n(m_l\u22c5x_l)\u22c5\u03b6_n(m_l\u22c5x_\n",
        "\n",
        ")(m_l+1\u22c5x_l)     \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "l)\u22c5\u03b6_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Eq2:\n"
       ]
      },
      {
       "latex": [
        "$$b^{(l)}_{n} m_{l+1} \\zeta_{n}{\\left (m_{l} x_{l} \\right )} - b^{(l+1)}_{n} m_{l} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l)}_{n} m_{l+1} \\psi_{n}{\\left (m_{l} x_{l} \\right )} + c^{(l+1)}_{n} m_{l} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAsoAAAAaBAMAAABcGWd1AAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAELvv3c2rVESJdpki\nZjI6QXVuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJHUlEQVRoBbVZa4gkVxX+qnt6qqu7uruIZmHH\nH1vqH1kSMwgBIxpayLK+wFHTMf5QGjGoQ5RWgwg+tomLkoBMCSGYDRtrQ1jd8ZFBNgnZ+GhjYEPM\nsi0YiHnZbJCAoun9oSZhI55z33WraxOx58Dcx3l83+lzb73uAELiCRDK4fJaBnVkd/BHDsOSho8X\ncZbHsBeXnO9Oi+j/94xBNUg3xe7g/10zLK0PsuCKRKOdA5bH8GY0+7hLQy+pF6BAk+C69/exO/jR\nbEnZGphagsM8GdPf3z4DLI2hmSPawSWMvTyRoECNIcM+dgc/SAl9qXIrcCcDptzcBAQp9cuQ2gSN\nKWqzZWAZDAnqVHl38N9uCJc0u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NPqb2viWRfZPj6l5+aYHE5bM1KDHpd\nXORaDucEgh5tH8Rq3qQNvjKxbuSkZD/1v9MT1cu97yn1VIQaUHxI66nfXzhEEAb2jvnqcqWMT27u\n+QO9HbL/Jm1qeAwKh9OWuLLKrJZ7Xzn4nfzFL7B6YTkKNWMvy6DXhbVaxKd8jWfqNfh51GftnRk6\n9r6gvvfZiU5BcIQHVtRiW0VhJI8KNCiedoyMZS97YWDvKBdD0yzAl6Apu4gHp3irwdV4qEuXqwmU\n2YopU0lc+/om977j7Q4lwzFWVZTDrRl5WQa9Li6c+JSXEbyHguRmnMXKd2fAZTRVIr/3eTLPEWxo\nterlYntKPeVQB7Q20QaBparMhwhC2PtSPdF9GV/mk7KDCI14FM/xPno3KzGwjdIu48q9z+aySIaM\nDRXlsDUT0S6DXBcXVHzKc4Q4gaD/F/ySjqZaR0nxsHWT3/s8f3Bc+BnCpQxqI+VRgQWNU2sjLFll\ncYgg9EzkrK70LeN75w+gtaG79hAnpvQ7UhnFrWDQgxKu3PvW2x1JhpxVFeVwasZeTKUZ1Lqw2hWx\nLq6Cx/RGsVCe8bUVoL6bnJ/x1Kk3R2fia6rwS6Ey0GdQcCVctfd9tqq5X45yzQyDWhcfqe0r/qd5\nBejrw9h5bbcq/NcRejHwptz7F3O5mG1hzf4L1xIYq0vy8hEAAAAASUVORK5CYII=\n",
       "text": [
        "b_n__(l)\u22c5m_l+1\u22c5\u03b6_n(m_l\u22c5x_l) - b_n__(l+1)\u22c5m_l\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l)\u22c5m_l+1\u22c5\u03c8\n",
        "_n(m_l\u22c5x_l) + c_n__(l+1)\u22c5m_l\u22c5\u03c8_n(m_l+1\u22c5x_l)"
       ]
      },
      {
       "latex": [
        "Result for  $b^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727b44950>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} \\left(m_{l} \\left(b^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - m_{l+1} \\left(b^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABicAAABABAMAAACDybmnAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAUtElEQVR4Ae1dDYwkx1V+0zO7szszO7tnEeeH\nBLXRcXdWTtoFGzBGZjs2xMhIubVIbC5K8BjHPuJAWJv4joQDD0mEFcc6rRMQyo/JmMiKSZC9SFFs\no6AbItmXGCke8ScSpNxEAsVEhL34wBZ27PDeq//u6umev70dqUvaqlev3s/Xr7uqq3uqawGmnC6a\nsv3CfBGBWYvA5c/NGuICbxGB6UZg/w1Fp5huhAvrsxeBatEpZu+kFYinG4Hd6hS1juc4Pu/h7TlW\n0NoFSDMRiV2IwwAXB7hN5APEJtG0W53iDg/Y6oqHufdYfz19SDMSiekHYoCHOl8tIh8gNommXeoU\n9Q96wD4eeph7j1VtTR3TjERi6nEY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YTyUZRFBCYdgdi/5cGXruY35bgv8b294OK2DiKRgUvikt56\nhvqbWSkIv5i2HQO3o1//5hBelwWziMDIEYiMpnePDNFctsSMAlLXOLW0Sob6i0LvxK8q/bSPjOzO\npWSLsojApCOwYRkUI7bFMOSVhrSpjC0mtOhA9eR2CuWO1nSI+HYSTmNRKSIwhQg8PAWbOUw2VnII\nFSJFBC5IBFZ7F8RtxnYKFwRT4bSIgIhA9cIM2YO3UyhOThGBCxqBUxfE+ycviNfCaRGBXBGIL2TK\npTSuUPHh0LgRLPSnGQFeuDFNBz7bGdsp+FQKXhGBXYuAd4+MKXvP2k5hyu4L80UEMiLg2yMjQ2Xc\n5kpnXAuFfhGBaUbAu0fGNB0CvHG65gvrRQQyI/D/kiLeMPKFfpcAAAAASUVORK5CYII=\n",
       "text": [
        "m_l\u22c5(b_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5\u03c8_n(m_l+1\u22c5x_l))\u22c5D_n__(1)(m_l\u22c5x_l) \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "- m_l+1\u22c5(b_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5D_n__(1)(m\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03b6_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "_l+1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                         "
       ]
      },
      {
       "latex": [
        "Result for  $c^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa74c74a790>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\psi_{n}{\\left (m_{l} x_{l} \\right )}} \\left(m_{l} \\left(b^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )} - m_{l+1} \\left(b^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABiwAAABABAMAAAB7KUJQAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAATwklEQVR4Ae1cDYwkx1V+87M7u/O3exYJJBA0\nRs7dWVjaARtwjMx2MMSSI+G1IA5GgMcK9kECydjEtwoceEgQVsLpdE5AiASTPpAV46BkkSIcoyAP\nluILJsqt+BMOUm4iGWEihT184IjzD7z3qqqrurqqp3d2enbn3CVNV9Wr9/PVq67u6p7qB5B3uiJv\nA4X+wgNz54HrXpg7yAXgwgM5e+Cq24tpkbOLC/Vz6IFaMS3mcNQKyDl7YHbT4jFHT1w0B9s+kw7P\nwH49nIGR+TYhhqHcm0UvZjYtaqvJ7rhoSa59pzQc0KcN6t5pK7z89Mlh+ItZ9Gxm0+LznWR3XLQk\n1/5TjucOofHB3E3MvwExDLXeDHoyq2lRPpXsjKZdG2tsxWp7qFS6MeHtWG0XlVJoMTPeqcFE5UdH\n0kLcE2BBnrpdq1++6sFAJYfhjT6UU6TPalosbiRBR7TysHxrR7a3A2iHSd6JKNfAVdEbhecAvjGR\nEhSqRFqEhvIQzj7dmRpMVHq3hGZ6AhKQp29Xmh2TjUU1zUHzY5HDsN7xs0yrZVbTYsfRl4hW7cAT\n2KEG/tq3nwb4ypR696PQQG2whb9/+yWA5mhSvffEBaudhXAhmBpM7LWad9ITHshTtxvvlrc2DtVU\nB82LAkAMw2IvhWVKTbOaFq9z4I1ojwN8EdurxNPCE/kqB/MEpEYfmhsoF5DsswDlAPOJUjSBhfTj\nsDCsX5gWTNRZIpiUpCc8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YxlUoSeKaSE8VByn7IFYqAbzsyW9iMKgELHvKHFNQ7vEl8cHo+BpsVtxXkTB32J0vmZH\nfOabMBiFnrACSUzZN4W616wH3DEv0B1rfKmmuwUGhYh9OUhPwEuZglHwtNit+AqqB/gpjM73r/Iz\nX9ugDj1RPHKTr4o0bQ9Y4TIC0i8WUeKiTbs3zm3Fv2dsIs0MM2HHTyAdMk0ivo43I8Bv5vv1LRlT\nwjJohJ4AKyKHslvkhQf24oGGES7DCImAKpd6eIiCUZifF6NMxmAUE4nvbFGHWj93y69ixp/5WgaN\n0BN2IAmSLFLhgal5IBHzorpq6MbvCo/pqvmH8qmRpOv4CZpRlXYlLr/LbvNNQ3zm6zRIlisDZaLI\nCw/k4IFEzIvmwLAS/57xEaMlUzCKXYl/SWjnvw5xPlFMCadBstzEX5EKD+TmgUTMCx0uImFz98Eo\nYirGiL9NMPO2cvy+40SI/6t3tQKMOCESFa7U9KJUeCAvDwRacRQuQpNUqWKwKRrnN8VqvsoY8UtC\nrmaIj5EwOIti4YHpe2DDUCmv2gYlKt4QlWKFMcEoIt5U8XgUDCmTKhHpLQqFB3L3wKO5W3AakOEX\nnG0FsfDAfntgn8JF5B0FY7/dWtifbw/sU7iIvKNgzPegFOj33QP7Ey7i4/ve7wJA4YEUD5xJacut\nKf8oGLlBLxS/JjywL+EiRPiF14R/i07OpQf2I1zEDKJgzOVYFKAPjgf2IVxENTw43S+QFB5weWAf\nwkXMIgqGq6sFrfCA9sD/A2AU6TVJuYj7AAAAAElFTkSuQmCC\n",
       "text": [
        "m_l\u22c5(b_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5\u03c8_n(m_l+1\u22c5x_l))\u22c5D_n__(3)(m_l\u22c5x_l) \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "- m_l+1\u22c5(b_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5D_n__(1)(m\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03c8_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "_l+1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                         "
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Check the solution\n"
       ]
      },
      {
       "latex": [
        "$$0$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOBAMAAADkjZCYAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEJmJdjLNVN0iZu+7\nq0QgoRR7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQIHWNgEDJRZWBgSGeQmMDAtYGBOYGB\n5wID+0cG/gsMfN8Z5BUY+L4wzDdgYP0MJeUNQCL8Cgzs3xk4DjBwfWRg2cDAlMDA0M4gHcDAIOxy\nlQEA9FISlFfRJtkAAAAASUVORK5CYII=\n",
       "text": [
        "0"
       ]
      },
      {
       "latex": [
        "$$0$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOBAMAAADkjZCYAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEJmJdjLNVN0iZu+7\nq0QgoRR7AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAVklEQVQIHWNgEDJRZWBgSGeQmMDAtYGBOYGB\n5wID+0cG/gsMfN8Z5BUY+L4wzDdgYP0MJeUNQCL8Cgzs3xk4DjBwfWRg2cDAlMDA0M4gHcDAIOxy\nlQEA9FISlFfRJtkAAAAASUVORK5CYII=\n",
       "text": [
        "0"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Finally\n",
      "------"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print (\"l = [1..L] or in C++ l = [0..L-1]\")\n",
      "display(Latex(r\"Result for  $a^{(l)}_n$:\"))\n",
      "display(simplify(result_a__l_n))\n",
      "display(Latex(r\"Result for  $d^{(l)}_n$:\"))\n",
      "display(simplify(result_d__l_n))\n",
      "display(Latex(r\"Result for  $b^{(l)}_n$:\"))\n",
      "display(simplify(result_b__l_n))\n",
      "display(Latex(r\"Result for  $c^{(l)}_n$:\"))\n",
      "display(simplify(result_c__l_n))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "l = [1..L] or in C++ l = [0..L-1]\n"
       ]
      },
      {
       "latex": [
        "Result for  $a^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727c687d0>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} \\left(- m_{l} \\left(a^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) + m_{l+1} \\left(a^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABj8AAABABAMAAAC3sHi7AAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAUcUlEQVR4Ae1cfYwkR3V/0zOzszvfiwLGDkTt\n6HR3ViztJHYcxxHZthPhCCRuUQLkEJLHMfaFD5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o6XqBSImMYQSuqG0ZTRbFAYAYI4F1KrS+DgBgx\nJ7Cl5T4eaLfh1bhZ0ZogdGeD91Iq5kckFoR2cyL1/V0ykBgZwwhaUWJJ3VxRKhCYGQKRmBOVrtGW\nNUGigTJIUseCMPRkcSz1My5rpUTGIP72KD5KCOsWhwKBaSMQiTnR3DKaOPRs7U/3gvp9QUlE6+Cq\njgVhcGVxLPWvSaXkyBgkkBglRGoXWYHAVBGIxJyIjxXCbZrRBzjiBVF1LIgsvzLUX8/6aZExSADb\njY8SktV6wS8QmBwBT6umxAopG2JaAUsiFoRFiqlkqD8vVFIiY0ib5kSLaaYgFQhMHYENw6JYyQ2C\nLl6li2YpIUCFKcLlVHUrCAWLl/2IBSbERwmJly2oBQLTRuD+aRvMZ69pvhzIp1JIFQi8DAis6afy\nebaeEUpinq4UbRUIpCBQe3mW8vRQEin+FqwCgfkisD3f5mRrn3xZWi0aLRAYG4F7x9aYgkKxv2oK\nIBYm5oJAZTCXZuxGMkJJ2MJFrUDgZUQgNVbIjPzKCiUxo2YLswUCEyCQFitkAnN5VGgrfZEKBBYD\ngdRYIbPpwuRBKGbjT2H1JxuB/wOlzvjTN8pysQAAAABJRU5ErkJggg==\n",
       "text": [
        "-m_l\u22c5(a_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5D_n__(1)(m_l+\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)) + m_l+1\u22c5(a_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5\u03c8_n(m_l\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03b6_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "+1\u22c5x_l))\u22c5D_n__(1)(m_l\u22c5x_l)\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                          "
       ]
      },
      {
       "latex": [
        "Result for  $d^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa74c772450>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\psi_{n}{\\left (m_{l} x_{l} \\right )}} \\left(- m_{l} \\left(a^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) + m_{l+1} \\left(a^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - d^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABkMAAABABAMAAABbxR2tAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAU9UlEQVR4Ae1dfWxk11U/82a8Y8+Mx3ZFaRta\n9FKi3a1YyYaEEIKCXxLUoFZiXUFbtgrKhDQxpVU7KW2WUkOGBogo0cqhQGkJ9G1RRNqi1n9ETVIV\nZYjUbFukrEX5LFJ3KoKaVhSbXciKTTblnPvx7rn3fc0be/yB35X87rnn455zf3Pv+5i57xhg3OVl\n43ZQ9l8isK8RuOb8vg6/DL5EYMwIXPWWcomMGeKy+32OQL1cIvv8EyzDHzMCO7dEPp0xkixZhtnB\nEh0uONxGWNBgl9SLjsuEObql6SOf2rElUp9NDyZLlm510CTNDASTsLg7ibkHeUXHZYYwuqXpI5/a\nsSXyuJ8eTJYs3erASe4pNOLmhwqp76JysXHxQEe35L3k0Du1RLxT6YEw2dW21rrVrC5Q0+ZZCmNr\n2GFN2352LKxKaDvObh0daLkd/fYBKAeuvYADS8TPJWLjEgEP013MMtfXCAo7tUQOLaUHZ2Re3zvu\na8VnAb6jaVEfg9bKLzk8S2FcDR5WO4B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jn/rmpKarBGuutvOMX+91Bdb4fH9lJXQTi4SOSTiSrfvsl0iMF4E\nAtO9yXFheIqqMjVLeLPVSmvkmF+SdnVmnmPBNEuyRGC8CCyx7tXZnHEi8vqIsgiZNcJiJTYyzRPT\ncGRaJPoomSUCY0fgkbF7SHTQmk1kl8wSgT2HwC7luMhJOrHnYCoDOrgI7FKOi+ykEwf34yhHvgcR\nOLUrMX18V7yWTksERkDg9Ag2WzbJSTqx5f7LDkoEtg+BXclxcd3C9g2g7KlEYLwI7EaOi7ykE+Md\ncdl7iUAxBHYhx0UtLBZiqV0isJsI7EKOi9HTVewmUKXv/78I/B+ngvKABbjhngAAAABJRU5ErkJg\ngg==\n",
       "text": [
        "-m_l\u22c5(a_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5D_n__(1)(m_l+\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l)) + m_l+1\u22c5(a_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - d_n__(l+1)\u22c5\u03c8_n(m_l\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03c8_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "+1\u22c5x_l))\u22c5D_n__(3)(m_l\u22c5x_l)\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                          "
       ]
      },
      {
       "latex": [
        "Result for  $b^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa74c772450>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\zeta_{n}{\\left (m_{l} x_{l} \\right )}} \\left(m_{l} \\left(b^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - m_{l+1} \\left(b^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABicAAABABAMAAACDybmnAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAUtElEQVR4Ae1dDYwkx1V+0zO7szszO7tnEeeH\nBLXRcXdWTtoFGzBGZjs2xMhIubVIbC5K8BjHPuJAWJv4joQDD0mEFcc6rRMQyo/JmMiKSZC9SFFs\no6AbItmXGCke8ScSpNxEAsVEhL34wBZ27PDeq//u6umev70dqUvaqlev3s/Xr7uqq3uqawGmnC6a\nsv3CfBGBWYvA5c/NGuICbxGB6UZg/w1Fp5huhAvrsxeBatEpZu+kFYinG4Hd6hS1juc4Pu/h7TlW\n0NoFSDMRiV2IwwAXB7hN5APEJtG0W53iDg/Y6oqHufdYfz19SDMSiekHYoCHOl8tIh8gNommXeoU\n9Q96wD4eeph7j1VtTR3TjERi6nEY6OA4t4p8oODYjbvUKQ71k0iDU5JXXnMal5zaGJXLXN2eW81f\ne11MVOAd2VzMGlZ1JMCFHIvExP0mkfg5ewNVqUPoRO7HOSnuLnWKWz145zck8zDs14/7zQiaHY/w\nCKygGxwJld6/A3xX0cOW69qK0DwMMI65pHsdCRtyMhKHoXHyN0Y/jKTfnJwsVBOORhqqMl8kIk+T\nmQx/dzpFU1/0FuqdUFauhvoWknX8a96A1Nclf8yiEsITZGIb//7j3QCNPtVGSPMtV+nq8cy5xqim\nIyEhp0Tiang7vHX0w0j6zcnJQjVWcHNiILHbWFbkQ6gNL7o7naKkbgo2wFfJSn0TGtReofoSdor9\nsmHM4jGAJ8lERNk3cJISYTlKinVpxDuWuSQEFQmQkP2RQL/vgEchiJIGpsvJQjXhaKQejBg79AiS\nKjd2w+50ivW1J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\u22c5(b_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5\u03c8_n(m_l+1\u22c5x_l))\u22c5D_n__(1)(m_l\u22c5x_l) \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "- m_l+1\u22c5(b_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5D_n__(1)(m\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03b6_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "_l+1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                         "
       ]
      },
      {
       "latex": [
        "Result for  $c^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727adf310>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m_{l+1} \\left(\\operatorname{D^{(1)}_{n}}{\\left (m_{l} x_{l} \\right )} - \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )}\\right) \\psi_{n}{\\left (m_{l} x_{l} \\right )}} \\left(m_{l} \\left(b^{(l+1)}_{n} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right) \\operatorname{D^{(3)}_{n}}{\\left (m_{l} x_{l} \\right )} - m_{l+1} \\left(b^{(l+1)}_{n} \\operatorname{D^{(3)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\zeta_{n}{\\left (m_{l+1} x_{l} \\right )} - c^{(l+1)}_{n} \\operatorname{D^{(1)}_{n}}{\\left (m_{l+1} x_{l} \\right )} \\psi_{n}{\\left (m_{l+1} x_{l} \\right )}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAABiwAAABABAMAAAB7KUJQAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAATwklEQVR4Ae1cDYwkx1V+87M7u/O3exYJJBA0\nRs7dWVjaARtwjMx2MMSSI+G1IA5GgMcK9kECydjEtwoceEgQVsLpdE5AiASTPpAV46BkkSIcoyAP\nluILJsqt+BMOUm4iGWEihT184I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gUTMCx0uImFz98Eo\nYirGiL9NMPO2cvy+40SI/6t3tQKMOCESFa7U9KJUeCAvDwRacRQuQpNUqWKwKRrnN8VqvsoY8UtC\nrmaIj5EwOIti4YHpe2DDUCmv2gYlKt4QlWKFMcEoIt5U8XgUDCmTKhHpLQqFB3L3wKO5W3AakOEX\nnG0FsfDAfntgn8JF5B0FY7/dWtifbw/sU7iIvKNgzPegFOj33QP7Ey7i4/ve7wJA4YEUD5xJacut\nKf8oGLlBLxS/JjywL+EiRPiF14R/i07OpQf2I1zEDKJgzOVYFKAPjgf2IVxENTw43S+QFB5weWAf\nwkXMIgqGq6sFrfCA9sD/A2AU6TVJuYj7AAAAAElFTkSuQmCC\n",
       "text": [
        "m_l\u22c5(b_n__(l+1)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5\u03c8_n(m_l+1\u22c5x_l))\u22c5D_n__(3)(m_l\u22c5x_l) \n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                              m_l+1\u22c5(D_n__(1)(\n",
        "\n",
        "- m_l+1\u22c5(b_n__(l+1)\u22c5D_n__(3)(m_l+1\u22c5x_l)\u22c5\u03b6_n(m_l+1\u22c5x_l) - c_n__(l+1)\u22c5D_n__(1)(m\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "m_l\u22c5x_l) - D_n__(3)(m_l\u22c5x_l))\u22c5\u03c8_n(m_l\u22c5x_l)                                    \n",
        "\n",
        "_l+1\u22c5x_l)\u22c5\u03c8_n(m_l+1\u22c5x_l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                         "
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print (\"in C++ l = [0..L-1] zl=ml*xl zlp1=m(l+1)xl\")\n",
      "z__l, z__l_1, m__l_1, m__l = symbols('z__(l), z__(l)_1, m__(l)_1, m__(l)');\n",
      "D__l_1zn, D__l_1z1n, D__l_3zn, D__l_3z1n = symbols('D__(l)_1zn, D__(l)_1z1n, D__(l)_3zn, D__(l)_3z1n');\n",
      "psi__l_zn, psi__l_z1n, zeta__l_zn, zeta__l_z1n = symbols('psi__(l)_zn, psi__(l)_z1n, zeta__(l)_zn, zeta__(l)_z1n');\n",
      "c_a__l_n=simplify(result_a__l_n);\n",
      "c_b__l_n=simplify(result_b__l_n);\n",
      "c_c__l_n=simplify(result_c__l_n);\n",
      "c_d__l_n=simplify(result_d__l_n);\n",
      "all_eq = [c_a__l_n, c_d__l_n, c_b__l_n, c_c__l_n]\n",
      "for i, eq in enumerate(all_eq):\n",
      "    all_eq[i]= all_eq[i].replace(m_l*x_l, z__l).replace(m_lp1*x_l, z__l_1)\n",
      "    all_eq[i]= all_eq[i].replace(D__3_n(z__l),D__l_3zn).replace(D__1_n(z__l),D__l_1zn)\n",
      "    all_eq[i]= all_eq[i].replace(D__3_n(z__l_1),D__l_3z1n).replace(D__1_n(z__l_1),D__l_1z1n)\n",
      "    all_eq[i]= all_eq[i].replace(zeta_n(z__l),zeta__l_zn).replace(psi_n(z__l),psi__l_zn)\n",
      "    all_eq[i]= all_eq[i].replace(zeta_n(z__l_1),zeta__l_z1n).replace(psi_n(z__l_1),psi__l_z1n)\n",
      "    all_eq[i]= all_eq[i].replace(m_lp1, m__l_1).replace(m_l, m__l)\n",
      "display(Latex(r\"Result for  $a^{(l)}_n$:\"))\n",
      "display(all_eq[0])\n",
      "display(Latex(r\"Result for  $d^{(l)}_n$:\"))\n",
      "display(all_eq[1])\n",
      "display(Latex(r\"Result for  $b^{(l)}_n$:\"))\n",
      "display(all_eq[2])\n",
      "display(Latex(r\"Result for  $c^{(l)}_n$:\"))\n",
      "display(all_eq[3])"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "in C++ l = [0..L-1] zl=ml*xl zlp1=m(l+1)xl\n"
       ]
      },
      {
       "latex": [
        "Result for  $a^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa7278db390>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m^{(l)}_{1} \\zeta^{(l)}_{zn} \\left(D^{(l)}_{1zn} - D^{(l)}_{3zn}\\right)} \\left(D^{(l)}_{1zn} m^{(l)}_{1} \\left(a^{(l+1)}_{n} \\zeta^{(l)}_{z1n} - d^{(l+1)}_{n} \\psi^{(l)}_{z1n}\\right) - m^{(l)} \\left(- D^{(l)}_{1z1n} d^{(l+1)}_{n} \\psi^{(l)}_{z1n} + D^{(l)}_{3z1n} a^{(l+1)}_{n} \\zeta^{(l)}_{z1n}\\right)\\right)$$"
       ],
       "metadata": {},
       "output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bCt68a4SLunNI3WxTIei\nWaCAb23K3E3M4oopWsQoUzKvxMgOWH1dgX+NTVKO/S5mdGKWdQQ5E4pmaxuba8Q2Ef2YKknE/e0+\nBjhgHe4VKE83YH8ZrsTP0qqyNdbyjS5IzgXEf9XN6EOOSZJEWolMbPk8ydrS79REa3lA6RXYD4Dv\nOm+1CW9QauMY5YKYvJiFUEi/hDWmdDr5aGLAVkrkEsrP5mUQab4aR4a+EDAlOv9iIH68Ey6UKthQ\nLohJnJC3t07pFAkE8c5qkUudjwOUHdze8QvWT+5tlBI9PHmWjbT8shG0bOLEdJ08ik/pdHw1IvRf\nJ3g5yDsD+kisAP69B3zXOdTEJ+p5ZV8mXGIuiEmcKDVpaGjRpnTaRD8Fko0RwT/NxkXc1EQHMuj0\naQXy85CrQeHqto00iIRLzAUxiROjNfTGSemMS/RjIsHGupML6KQm9mlmAzNJK2DOND6G3yVyQUzi\nRHbSAT2FvSCa6OfI4BMZE2HZYI7UoHMkVoBFGv8eGCVymMSJiTnHIYp0TKKfI4NfzJiIp8CRHHT6\nvQI20iLhkpv3jiRGOi7RzyLwU3om5CLxiVcWMKD6uQIsLwETLp3CX1vjAL46jUv0Y5A7YUeZi5RC\nNjggj+wKiL8AkuTCWj6QkOjHRf655QonF3ChwkcH9P/vCuzo0bVHesQP4P1agelWb5a29QYfoPu2\nAj0maLJHgL65PDC0vBXYvjyYQjmpiT1pGoAP9wrc05OB3tA9mR6Au1yBnhI0vdTELk0PxPu6Aj0l\naHqpiX11fGCs2xXoJUFzXbfGBvJHcAV6SNCUqYlH0PeBaVyB/wH+hLUHWq5gZgAAAABJRU5ErkJg\ngg==\n",
       "text": [
        "D_1zn__(l)\u22c5m_1__(l)\u22c5(a_n__(l+1)\u22c5\u03b6_z1n__(l) - d_n__(l+1)\u22c5\u03c8_z1n__(l)) - m__(l)\u22c5(\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                     m_1__(l)\u22c5\u03b6_zn__(l)\u22c5(D_1zn\n",
        "\n",
        "-D_1z1n__(l)\u22c5d_n__(l+1)\u22c5\u03c8_z1n__(l) + D_3z1n__(l)\u22c5a_n__(l+1)\u22c5\u03b6_z1n__(l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "__(l) - D_3zn__(l))                                                    "
       ]
      },
      {
       "latex": [
        "Result for  $d^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa727b8db90>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m^{(l)}_{1} \\psi^{(l)}_{zn} \\left(D^{(l)}_{1zn} - D^{(l)}_{3zn}\\right)} \\left(D^{(l)}_{3zn} m^{(l)}_{1} \\left(a^{(l+1)}_{n} \\zeta^{(l)}_{z1n} - d^{(l+1)}_{n} \\psi^{(l)}_{z1n}\\right) - m^{(l)} \\left(- D^{(l)}_{1z1n} d^{(l+1)}_{n} \\psi^{(l)}_{z1n} + D^{(l)}_{3z1n} a^{(l+1)}_{n} \\zeta^{(l)}_{z1n}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAA9YAAABABAMAAAANEPJCAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAARV0lEQVR4Ae1cC4xkVRGted0zPdPfWRJE0Wij\nZIEomY4ofghO+wODiQwRUYyfRmDXDwmNIhthdUcxkhBCBhEVv89fXGXjjolRIJptTBDRSDpRUTFx\nW8UIRJwREHTlY1XdX9373uvp3p6dWZK+ybxbr26duqfu73W/rl2AgypHHBRqDHoajsBLHnoakh5T\nPpgROPac8VwfzLg9LTGF8Vw/LeftYEiPNtfFeNg+vzss4CDto9YQwI0iNQSlFNOtrBsqMN/LaHN9\niXR2Et50pYLlXEOqC7MJg1BBgEqoHOyeGBjo9weDkFUqKelrQFfpA+CBh/YqACU1dkME5nWNcY5y\nhpc+IbxFnejM+gNCocQXwbEPgVXfXE8YhAoCVONQO8g9MzDQQmsQCNukkfJ8DeYpYwAkeGivHuAy\ndjVEYLJrlEea6+N7wlu+DrdAWWq48TVQWrLq6FoLoAXritmNqGHAXa4pkPiccDoBBGYABnq0M0pI\n3mEjSDlD35fTr9V9cgAcFgKGriXTq0djImZEv8CcyxRppLm+UDr8EcDtEDWlCuVSG8oLEDVRxDK1\noGoAXrD6ptoEsxsN4Fhjl6j5nEgDAjADMND5egJrFd5h40jZ9tCXa1ir+6jpbJOSz9C1Z3r1ADl1\nBvcLzLlMkUaZ66p3/r8WAFfcm4I+8g2g5ajVK3XTrBYslPC+es4S2N0ICpDvGcOw5m2PSyIBBFAM\nDHSqFULdvXfYOFLOIPDlGtbsPhwAB0XJZ+i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5(a_n__(l+1)\u22c5\u03b6_z1n__(l) - d_n__(l+1)\u22c5\u03c8_z1n__(l)) - m__(l)\u22c5(\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                     m_1__(l)\u22c5\u03c8_zn__(l)\u22c5(D_1zn\n",
        "\n",
        "-D_1z1n__(l)\u22c5d_n__(l+1)\u22c5\u03c8_z1n__(l) + D_3z1n__(l)\u22c5a_n__(l+1)\u22c5\u03b6_z1n__(l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "__(l) - D_3zn__(l))                                                    "
       ]
      },
      {
       "latex": [
        "Result for  $b^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa7445ab7d0>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m^{(l)}_{1} \\zeta^{(l)}_{zn} \\left(D^{(l)}_{1zn} - D^{(l)}_{3zn}\\right)} \\left(D^{(l)}_{1zn} m^{(l)} \\left(b^{(l+1)}_{n} \\zeta^{(l)}_{z1n} - c^{(l+1)}_{n} \\psi^{(l)}_{z1n}\\right) - m^{(l)}_{1} \\left(- D^{(l)}_{1z1n} c^{(l+1)}_{n} \\psi^{(l)}_{z1n} + D^{(l)}_{3z1n} b^{(l+1)}_{n} \\zeta^{(l)}_{z1n}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAA8oAAABABAMAAAAwgpMkAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAQ2ElEQVR4Ae1ce2ykVRU//abttJ3pTLsJIGhk\njCssUdOJ+EKCHQXBYCIlIggBHAR2FTEMCrtxRbcgkUjIpoj8gYp++Igb3bhjQngF0+EPWMFI5i8D\na8IOBiMxastDwOXlOfd5zjf3a2c63Vk3zk16n+f8fveec+/3mrMLsJa0YS1KA53DywLvf/7wmu9g\ntmuwwMZzB15eg9kON5XswMuHm8vWMN/evPyrbhkn4m411iR/XBdaXa+hC+z1Eo2qhKTztWD25OXs\nFKM8EeuTrB2sXh3sZZ2ZMjaarKPjKufP8YklESSFWIMVlSK2d6WSs6fIEeiqBmK6HPK3ql/nTKTT\nak9evq/kaaJGdFapEPuOUC13Q6iX970HNj4Pf+c9HdYl/9YVtCQFX4NTkiKuO70i2cNyBLqagZim\ngMxWaUTnTKbTai9ejnYyluES3A/wOOtRVXUq3A7e1DLjtE9Z8of345BbgHyLjYlqqh5I/qFYqImG\noBBrcGJCxPWCZHerQgHJ7jV4TYGGDeTFPKiEPEaJ6NxLd1rrxcujc4zlXoCHATayHlVVp8Lt4MvN\nsNqnVvQZ8Ic3V4P8HEQVO5YoU/UAJH8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(l)\u22c5m__(l)\u22c5(b_n__(l+1)\u22c5\u03b6_z1n__(l) - c_n__(l+1)\u22c5\u03c8_z1n__(l)) - m_1__(l)\u22c5(\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                     m_1__(l)\u22c5\u03b6_zn__(l)\u22c5(D_1zn\n",
        "\n",
        "-D_1z1n__(l)\u22c5c_n__(l+1)\u22c5\u03c8_z1n__(l) + D_3z1n__(l)\u22c5b_n__(l+1)\u22c5\u03b6_z1n__(l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "__(l) - D_3zn__(l))                                                    "
       ]
      },
      {
       "latex": [
        "Result for  $c^{(l)}_n$:"
       ],
       "metadata": {},
       "output_type": "display_data",
       "text": [
        "<IPython.core.display.Latex at 0x7fa7279b9290>"
       ]
      },
      {
       "latex": [
        "$$\\frac{1}{m^{(l)}_{1} \\psi^{(l)}_{zn} \\left(D^{(l)}_{1zn} - D^{(l)}_{3zn}\\right)} \\left(D^{(l)}_{3zn} m^{(l)} \\left(b^{(l+1)}_{n} \\zeta^{(l)}_{z1n} - c^{(l+1)}_{n} \\psi^{(l)}_{z1n}\\right) - m^{(l)}_{1} \\left(- D^{(l)}_{1z1n} c^{(l+1)}_{n} \\psi^{(l)}_{z1n} + D^{(l)}_{3z1n} b^{(l+1)}_{n} \\zeta^{(l)}_{z1n}\\right)\\right)$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAA84AAABABAMAAAA5aTNeAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAzRAiu5mrdu/dZkSJ\nVDL+6OvUAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAQb0lEQVR4Ae1ce4xcZRU/e2d2Z3fntW0CSDUy\naIGSSHYivoDgjvIyNYFtRBACOgi0CiRMFboRa7qAkUhIs4j8QXxdRJMGiV0SImAwO/xRKopk/iJa\nEzoYjEjUXR6CtgU85zvf+967vXenHVozX7L3O9/5zvmdc77XfcxpAVZUVq9Ia6B0lI3AR149yhwe\nuLuSEVh7yWCeVzJuR51OYTDPR92crcTh3uZ5PMxq88GsCiuSD5oZ1PrjUgaHYkQ5oExhuSi9zfNm\nG+x0bHRsRgxdmIhhOixCKTuctA1b8+HllHJ17NWexrpkYy0HZfpSaKQQMXhI2fIc0LJhObp+o6d5\nLt5mwQXt4KLayxYjjnysFse1eAKlElqctKSjWWguo/YhWPsqaE/jXHKwlkEyXSk0UogYPKQceQ5o\n2bAcZb/R0zyv61pw+Ro8DiWbIzqdzRNsVwq0Vk0xG1igwLOmy6UEmmEZPQBXc40RilCfhuKc9tS4\nZMm5WLojtXWtYRNZQV15Dmi5sGxbEbqneb7WhnsUYBcEDZtFtLN5RqZlt1irkq40wGxggQJrZVek\nEmhxegCu5lQtoqsYx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b9InHJ2uGJcLORkSjk5CLHexxflbxLcLJUJEMjmR9aYtNKD7PQL/HJugfPmdlt24\nXMipkAQSkxAt7W1dbNwY3Rrub/OWwoDsxwjUMFNnbw2uEe/LbLAWkwu52KE+ce+tzpqMN+mhTn3E\nNt3CMZPTzfBDlp9hR2KD0r8R2AuA3zTvMGlseHflXEjMjVB5FrAYkkfi3rszdDLnfE/pFo6ZnG6G\nH/IG8+yPVH/bGwB+CMXXAv6ZXNiWuZCYG6FTdfjclkmIlmjEV5XJ6Wb4odjg3I6MVV8ZdwGmxw9P\nnG1NnsqFPM3keXCaJt178xP8y3yCkyqT083wQ+F9CQoDdl9GILef/qHLULttzbPMhczhw5TK86i2\nyRuVhFie44yzmMS7oSWZyelk+OFbdx9/derLwB1lRopzUGhC+YauNc8yF5LSGFSqzmgT49JJiDTP\nlPEWTbzTmZx+hp+TcniUjdH/l7s0ebKIXEjKTdB5HnRamyJET0tMvGPBi0V+nsqw8/PCDNiA6u8I\nWPMsciEpNwF/pdwakhulWbqqQqJ0qptsN9Vj1YtOhp8LYIkNyD6PgDXP+KukV9ztSKJ0qick3qFu\nJMMvPqXKszJo9mEErKyDQsSc9Xka+1BUZJwlJN6Rtp/hVw2JOyjv+giI//Ej2Qs7TVNnvC2Ty+hn\n+C3Wk7EHPUfOCOzo0ZUne9QfqPdnBCY7vdm5szf1gXafRqAw0ZMh6+bfE85A+XCPQOY0TcchJ+XQ\n6Rk0jqwRuL8nd3rT7sn0QDnTCORbmcRdYS/l0O0ctI6kEciepml576UcWj0D8kgbgcxpmlYA6y16\nQB7ZI5A9TVPHwymHujkg+j4C/wOz26+vuC8VTgAAAABJRU5ErkJggg==\n",
       "text": [
        "D_3zn__(l)\u22c5m__(l)\u22c5(b_n__(l+1)\u22c5\u03b6_z1n__(l) - c_n__(l+1)\u22c5\u03c8_z1n__(l)) - m_1__(l)\u22c5(\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "                                                     m_1__(l)\u22c5\u03c8_zn__(l)\u22c5(D_1zn\n",
        "\n",
        "-D_1z1n__(l)\u22c5c_n__(l+1)\u22c5\u03c8_z1n__(l) + D_3z1n__(l)\u22c5b_n__(l+1)\u22c5\u03b6_z1n__(l))\n",
        "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n",
        "__(l) - D_3zn__(l))                                                    "
       ]
      }
     ],
     "prompt_number": 14
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "single = all_eq[0]\n",
      "single = single * m__l_1*zeta__l_zn*(D__l_1zn-D__l_3zn)\n",
      "single = simplify(single.replace(d__lp1_n, 1).replace(m__l_1, 1).replace(m__l, 1))\n",
      "\n",
      "display(single)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "latex": [
        "$$D^{(l)}_{1z1n} \\psi^{(l)}_{z1n} + D^{(l)}_{1zn} \\left(a^{(l+1)}_{n} \\zeta^{(l)}_{z1n} - \\psi^{(l)}_{z1n}\\right) - D^{(l)}_{3z1n} a^{(l+1)}_{n} \\zeta^{(l)}_{z1n}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAgQAAAAmBAMAAABJ156xAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAdqu7Is1mVDKJme9E\nEN34dd25AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIYklEQVRoBdVZa4gkVxX+arqnq7qna7pHTTRB\n3Z6N+ZEQTLuaRQRJs4gBjZlZYYKgSQpUMEbNILIIirZERVzM9AbUEERaI0YjxJE8yJ9Aa1B/BLK9\nG0OQwUwpBEWMjhudNeoSz7mvuo+qtJBeNOdH1Xl853zn3jr16BngfEkjm2vltDfXchXF3kH+uCxW\nGSjA9YGfe0ERrNJm1rUBP6+qwn6mxyZr/6WE/XJiOkqvniZZWKMyYEF/jSfOObntR6xouTqzrgOI\neuVVhJfp8eUXAfihoF8BqE3xOHCnDwYqAxb07WjnTu7OUEfFFdKGPSsz67qA64sagSbom8PAz2NU\niDXiQb8C9VPgLuCJIkNrlQENANpdNMdO7uUmKK6QspI+ilmZWdcFrE1NSV+R9Gnf94sxKqMO+xWo\ntwC00bWhXweVgQJZG2Axs3OTcyYoNpx2iRzJd3NrzmbWdQELPVPSVyQ93hr4xWCXUAf9yswc+BsQ\ndf06qAwUyGWgM7BzF8c6KDec9pYdcW7NGenlhFDiAqxd1QB9lvRY0bY+yzEqoQ76FRnJOpJtarKn\n8/W5MqABdP4ScNzJXRvoqLpCRR96zmbW9QFHdcngLOnxST8gxyikDvsVme0+IrqZ6ORJZcDCPQq8\n0sm9zwTVFSr60HM2s64PuMXU9BVJDzq5kos5C6kZ6fYr8to91OgmoK23JaGFlQZsEPAz4E1O7k9M\nXF2hog8xZ/VZdUuI1yamqKdIer62jqgx8qgxCPp9xQuHLjk0AD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n",
       "text": [
        "D_1z1n__(l)\u22c5\u03c8_z1n__(l) + D_1zn__(l)\u22c5(a_n__(l+1)\u22c5\u03b6_z1n__(l) - \u03c8_z1n__(l)) - D_3\n",
        "z1n__(l)\u22c5a_n__(l+1)\u22c5\u03b6_z1n__(l)"
       ]
      }
     ],
     "prompt_number": 23
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "z_nm1, z_np1, z_n, n, rho = symbols(\"z_n-1, z_n+1, z_n, n, rho\")\n",
      "z_np1 = ((2*n+1)/rho)*z_n - z_nm1\n",
      "z__dash_n = (n*z_nm1 - (n+1)*z_np1)/(2*n+1)\n",
      "display(collect(collect(expand(simplify(z__dash_n*rho+z_n)),z_n),rho))\n",
      "#display(z_np1)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "latex": [
        "$$- n z_{n} + \\rho z_{n-1}$$"
       ],
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAH0AAAAQBAMAAADJxG2SAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEM3dMkSJuyJ2q5lU\nZu9VsUWeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABXklEQVQoFY2RMUvDQBiG38MEYprEoItuJerk\nEnQUJODmFCg4iNrSVQS36uYmTslaFXTwBwTq0k7dRBzMoIK4FEFwrFCxCIIX0jvvUtv6LXf3Pt/z\ncdwBQ2t6KB0Nb0a3DO34v7++f3wSAoVXJRYmcl+tX/ZBoQ+IKiHpghycNsSY+zvY7oNQ9niv0lyE\n1gGBdsEzumG+6SLws1BpuMDkUlJzhHzAbFNjTdS5b8UoNrMQBvVZGW3oeUCNWACUHWfFcRaSoGjj\n/FCCSSr6uTwmYhu3NH6+r7Ip7P41YBZZKPlWCXd2yYig4+Ebb8l4WsxfhtJBFkp+4KNsequPT/Pa\njIv3VGc++cRUjCyU/AJwdIbIfPGhh2pL9o1u9Yp+MYfXFVq25PeEZLG8XOSl59796eOwEuAgP8DY\nppf2b6WLFTIdAoTR4rG42cD4rngGAo+fBajVvn7n8oa/NvRxBtQPiRdhLZ1P8AgAAAAASUVORK5C\nYII=\n",
       "text": [
        "-n\u22c5z_n + \u03c1\u22c5z_n-1"
       ]
      }
     ],
     "prompt_number": 46
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}