Stuck on solving differential equation












1












$begingroup$


I have tried to solve :




$$begin{array}{l} Afrac{1}{r}frac{d}{{dr}}left(
{rfrac{{du}}{{dr}}} right) = - B + N{k^2}frac{{{I_0}left( {kr}
right)}}{{{I_0}left( {ka} right)}}\ BC:\ u(r) = a\
frac{{du}}{{dr}} = 0,,,at,,,,r = 0 end{array}$$




with



DSolve[A (1/r) D[r  D[u[r], r], r] == -B +  N  k^2  (BesselI[0, k r]/ BesselI[0, a r]), u'[0] == 0, u[a] == 0, u[r], r]


but I didn't have any solution










share|improve this question











$endgroup$

















    1












    $begingroup$


    I have tried to solve :




    $$begin{array}{l} Afrac{1}{r}frac{d}{{dr}}left(
    {rfrac{{du}}{{dr}}} right) = - B + N{k^2}frac{{{I_0}left( {kr}
    right)}}{{{I_0}left( {ka} right)}}\ BC:\ u(r) = a\
    frac{{du}}{{dr}} = 0,,,at,,,,r = 0 end{array}$$




    with



    DSolve[A (1/r) D[r  D[u[r], r], r] == -B +  N  k^2  (BesselI[0, k r]/ BesselI[0, a r]), u'[0] == 0, u[a] == 0, u[r], r]


    but I didn't have any solution










    share|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      I have tried to solve :




      $$begin{array}{l} Afrac{1}{r}frac{d}{{dr}}left(
      {rfrac{{du}}{{dr}}} right) = - B + N{k^2}frac{{{I_0}left( {kr}
      right)}}{{{I_0}left( {ka} right)}}\ BC:\ u(r) = a\
      frac{{du}}{{dr}} = 0,,,at,,,,r = 0 end{array}$$




      with



      DSolve[A (1/r) D[r  D[u[r], r], r] == -B +  N  k^2  (BesselI[0, k r]/ BesselI[0, a r]), u'[0] == 0, u[a] == 0, u[r], r]


      but I didn't have any solution










      share|improve this question











      $endgroup$




      I have tried to solve :




      $$begin{array}{l} Afrac{1}{r}frac{d}{{dr}}left(
      {rfrac{{du}}{{dr}}} right) = - B + N{k^2}frac{{{I_0}left( {kr}
      right)}}{{{I_0}left( {ka} right)}}\ BC:\ u(r) = a\
      frac{{du}}{{dr}} = 0,,,at,,,,r = 0 end{array}$$




      with



      DSolve[A (1/r) D[r  D[u[r], r], r] == -B +  N  k^2  (BesselI[0, k r]/ BesselI[0, a r]), u'[0] == 0, u[a] == 0, u[r], r]


      but I didn't have any solution







      differential-equations boundary-conditions






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 3 at 18:08









      Henrik Schumacher

      58.6k581162




      58.6k581162










      asked Feb 3 at 17:42









      user3234456user3234456

      164




      164






















          2 Answers
          2






          active

          oldest

          votes


















          3












          $begingroup$

          Fix your typo's to match your latex and we get a solution no problem.



          ode = (A*D[r*D[u[r], r], r])/r == -B + (n*k^2*BesselI[0, k*r])/BesselI[0, k*a]

          bc1 = u'[0] == 0
          bc2 = u[a] == 0

          DSolve[{ode, bc1, bc2}, u[r], r] // Flatten

          {u[r] -> (
          a^2 B BesselI[0, a k] - 4 n BesselI[0, Sqrt[a^2 k^2]] -
          B r^2 BesselI[0, a k] + 4 n BesselI[0, Sqrt[k^2 r^2]])/(
          4 A BesselI[0, a k])





          share|improve this answer









          $endgroup$













          • $begingroup$
            first I thank you so much, second could you tell me where is my typo's? with many thanks
            $endgroup$
            – user3234456
            Feb 4 at 4:24










          • $begingroup$
            You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
            $endgroup$
            – Bill Watts
            Feb 4 at 4:38



















          2












          $begingroup$

          Chances are better with correct syntax. You missed a pair of braces ({ }) around the equations. Moreover, N is a built-in symbol, so I replaced it with n. This is how the corrected code looks like:



          DSolve[{
          A (1/r) D[r D[u[r], r], r] == -B + n k^2 (BesselI[0, k r]/BesselI[0, a r]),
          u'[0] == 0,
          u[a] == 0
          },
          u[r],
          r
          ]


          However, it takes forwever to evaluate. This tells me that it is quite likely that no closed-form solution can be derived (under the given information). If you are interested only in a solution for concrete values of B, k, n, and a, you should first assign these values and use the numerical solver NDSolve instead. Parameter studies can be performed with ParametricNDSolve.






          share|improve this answer











          $endgroup$













          • $begingroup$
            thanks for reply, unfortunately I need analytical solution only
            $endgroup$
            – user3234456
            Feb 3 at 19:44






          • 2




            $begingroup$
            BesselI[0, a r] should be BesselI[0, k a]`.
            $endgroup$
            – bbgodfrey
            Feb 3 at 22:25












          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "387"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f190775%2fstuck-on-solving-differential-equation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3












          $begingroup$

          Fix your typo's to match your latex and we get a solution no problem.



          ode = (A*D[r*D[u[r], r], r])/r == -B + (n*k^2*BesselI[0, k*r])/BesselI[0, k*a]

          bc1 = u'[0] == 0
          bc2 = u[a] == 0

          DSolve[{ode, bc1, bc2}, u[r], r] // Flatten

          {u[r] -> (
          a^2 B BesselI[0, a k] - 4 n BesselI[0, Sqrt[a^2 k^2]] -
          B r^2 BesselI[0, a k] + 4 n BesselI[0, Sqrt[k^2 r^2]])/(
          4 A BesselI[0, a k])





          share|improve this answer









          $endgroup$













          • $begingroup$
            first I thank you so much, second could you tell me where is my typo's? with many thanks
            $endgroup$
            – user3234456
            Feb 4 at 4:24










          • $begingroup$
            You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
            $endgroup$
            – Bill Watts
            Feb 4 at 4:38
















          3












          $begingroup$

          Fix your typo's to match your latex and we get a solution no problem.



          ode = (A*D[r*D[u[r], r], r])/r == -B + (n*k^2*BesselI[0, k*r])/BesselI[0, k*a]

          bc1 = u'[0] == 0
          bc2 = u[a] == 0

          DSolve[{ode, bc1, bc2}, u[r], r] // Flatten

          {u[r] -> (
          a^2 B BesselI[0, a k] - 4 n BesselI[0, Sqrt[a^2 k^2]] -
          B r^2 BesselI[0, a k] + 4 n BesselI[0, Sqrt[k^2 r^2]])/(
          4 A BesselI[0, a k])





          share|improve this answer









          $endgroup$













          • $begingroup$
            first I thank you so much, second could you tell me where is my typo's? with many thanks
            $endgroup$
            – user3234456
            Feb 4 at 4:24










          • $begingroup$
            You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
            $endgroup$
            – Bill Watts
            Feb 4 at 4:38














          3












          3








          3





          $begingroup$

          Fix your typo's to match your latex and we get a solution no problem.



          ode = (A*D[r*D[u[r], r], r])/r == -B + (n*k^2*BesselI[0, k*r])/BesselI[0, k*a]

          bc1 = u'[0] == 0
          bc2 = u[a] == 0

          DSolve[{ode, bc1, bc2}, u[r], r] // Flatten

          {u[r] -> (
          a^2 B BesselI[0, a k] - 4 n BesselI[0, Sqrt[a^2 k^2]] -
          B r^2 BesselI[0, a k] + 4 n BesselI[0, Sqrt[k^2 r^2]])/(
          4 A BesselI[0, a k])





          share|improve this answer









          $endgroup$



          Fix your typo's to match your latex and we get a solution no problem.



          ode = (A*D[r*D[u[r], r], r])/r == -B + (n*k^2*BesselI[0, k*r])/BesselI[0, k*a]

          bc1 = u'[0] == 0
          bc2 = u[a] == 0

          DSolve[{ode, bc1, bc2}, u[r], r] // Flatten

          {u[r] -> (
          a^2 B BesselI[0, a k] - 4 n BesselI[0, Sqrt[a^2 k^2]] -
          B r^2 BesselI[0, a k] + 4 n BesselI[0, Sqrt[k^2 r^2]])/(
          4 A BesselI[0, a k])






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 3 at 22:19









          Bill WattsBill Watts

          3,6111621




          3,6111621












          • $begingroup$
            first I thank you so much, second could you tell me where is my typo's? with many thanks
            $endgroup$
            – user3234456
            Feb 4 at 4:24










          • $begingroup$
            You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
            $endgroup$
            – Bill Watts
            Feb 4 at 4:38


















          • $begingroup$
            first I thank you so much, second could you tell me where is my typo's? with many thanks
            $endgroup$
            – user3234456
            Feb 4 at 4:24










          • $begingroup$
            You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
            $endgroup$
            – Bill Watts
            Feb 4 at 4:38
















          $begingroup$
          first I thank you so much, second could you tell me where is my typo's? with many thanks
          $endgroup$
          – user3234456
          Feb 4 at 4:24




          $begingroup$
          first I thank you so much, second could you tell me where is my typo's? with many thanks
          $endgroup$
          – user3234456
          Feb 4 at 4:24












          $begingroup$
          You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
          $endgroup$
          – Bill Watts
          Feb 4 at 4:38




          $begingroup$
          You have BesselI[0,a r] instead of BesselI[0,k a] in your code.
          $endgroup$
          – Bill Watts
          Feb 4 at 4:38











          2












          $begingroup$

          Chances are better with correct syntax. You missed a pair of braces ({ }) around the equations. Moreover, N is a built-in symbol, so I replaced it with n. This is how the corrected code looks like:



          DSolve[{
          A (1/r) D[r D[u[r], r], r] == -B + n k^2 (BesselI[0, k r]/BesselI[0, a r]),
          u'[0] == 0,
          u[a] == 0
          },
          u[r],
          r
          ]


          However, it takes forwever to evaluate. This tells me that it is quite likely that no closed-form solution can be derived (under the given information). If you are interested only in a solution for concrete values of B, k, n, and a, you should first assign these values and use the numerical solver NDSolve instead. Parameter studies can be performed with ParametricNDSolve.






          share|improve this answer











          $endgroup$













          • $begingroup$
            thanks for reply, unfortunately I need analytical solution only
            $endgroup$
            – user3234456
            Feb 3 at 19:44






          • 2




            $begingroup$
            BesselI[0, a r] should be BesselI[0, k a]`.
            $endgroup$
            – bbgodfrey
            Feb 3 at 22:25
















          2












          $begingroup$

          Chances are better with correct syntax. You missed a pair of braces ({ }) around the equations. Moreover, N is a built-in symbol, so I replaced it with n. This is how the corrected code looks like:



          DSolve[{
          A (1/r) D[r D[u[r], r], r] == -B + n k^2 (BesselI[0, k r]/BesselI[0, a r]),
          u'[0] == 0,
          u[a] == 0
          },
          u[r],
          r
          ]


          However, it takes forwever to evaluate. This tells me that it is quite likely that no closed-form solution can be derived (under the given information). If you are interested only in a solution for concrete values of B, k, n, and a, you should first assign these values and use the numerical solver NDSolve instead. Parameter studies can be performed with ParametricNDSolve.






          share|improve this answer











          $endgroup$













          • $begingroup$
            thanks for reply, unfortunately I need analytical solution only
            $endgroup$
            – user3234456
            Feb 3 at 19:44






          • 2




            $begingroup$
            BesselI[0, a r] should be BesselI[0, k a]`.
            $endgroup$
            – bbgodfrey
            Feb 3 at 22:25














          2












          2








          2





          $begingroup$

          Chances are better with correct syntax. You missed a pair of braces ({ }) around the equations. Moreover, N is a built-in symbol, so I replaced it with n. This is how the corrected code looks like:



          DSolve[{
          A (1/r) D[r D[u[r], r], r] == -B + n k^2 (BesselI[0, k r]/BesselI[0, a r]),
          u'[0] == 0,
          u[a] == 0
          },
          u[r],
          r
          ]


          However, it takes forwever to evaluate. This tells me that it is quite likely that no closed-form solution can be derived (under the given information). If you are interested only in a solution for concrete values of B, k, n, and a, you should first assign these values and use the numerical solver NDSolve instead. Parameter studies can be performed with ParametricNDSolve.






          share|improve this answer











          $endgroup$



          Chances are better with correct syntax. You missed a pair of braces ({ }) around the equations. Moreover, N is a built-in symbol, so I replaced it with n. This is how the corrected code looks like:



          DSolve[{
          A (1/r) D[r D[u[r], r], r] == -B + n k^2 (BesselI[0, k r]/BesselI[0, a r]),
          u'[0] == 0,
          u[a] == 0
          },
          u[r],
          r
          ]


          However, it takes forwever to evaluate. This tells me that it is quite likely that no closed-form solution can be derived (under the given information). If you are interested only in a solution for concrete values of B, k, n, and a, you should first assign these values and use the numerical solver NDSolve instead. Parameter studies can be performed with ParametricNDSolve.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 3 at 18:13

























          answered Feb 3 at 18:05









          Henrik SchumacherHenrik Schumacher

          58.6k581162




          58.6k581162












          • $begingroup$
            thanks for reply, unfortunately I need analytical solution only
            $endgroup$
            – user3234456
            Feb 3 at 19:44






          • 2




            $begingroup$
            BesselI[0, a r] should be BesselI[0, k a]`.
            $endgroup$
            – bbgodfrey
            Feb 3 at 22:25


















          • $begingroup$
            thanks for reply, unfortunately I need analytical solution only
            $endgroup$
            – user3234456
            Feb 3 at 19:44






          • 2




            $begingroup$
            BesselI[0, a r] should be BesselI[0, k a]`.
            $endgroup$
            – bbgodfrey
            Feb 3 at 22:25
















          $begingroup$
          thanks for reply, unfortunately I need analytical solution only
          $endgroup$
          – user3234456
          Feb 3 at 19:44




          $begingroup$
          thanks for reply, unfortunately I need analytical solution only
          $endgroup$
          – user3234456
          Feb 3 at 19:44




          2




          2




          $begingroup$
          BesselI[0, a r] should be BesselI[0, k a]`.
          $endgroup$
          – bbgodfrey
          Feb 3 at 22:25




          $begingroup$
          BesselI[0, a r] should be BesselI[0, k a]`.
          $endgroup$
          – bbgodfrey
          Feb 3 at 22:25


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematica Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f190775%2fstuck-on-solving-differential-equation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?