1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Hard integral (for me)

  1. Jan 4, 2006 #1
    Hi,

    could you please help me in evaluating this integral?

    [tex]
    \int 3e^{2x}\sqrt{x+1}\ dx
    [/tex]

    I got to this point during solving one ODE and have no idea what to do with this one.

    Thank you.
     
  2. jcsd
  3. Jan 4, 2006 #2

    benorin

    User Avatar
    Homework Helper

    not pretty, Maple says it involves an erfc.
     
  4. Jan 4, 2006 #3
    Bad, very bad...
     
  5. Jan 4, 2006 #4
    Hi twoflower

    I solve your integral, and found the following answer

    $$\frac{3(4e^{2+2x}\sqrt{x+1}-\sqrt{2\pi}Erfi(\sqrt{2(1+x)}))}{8e^{2}}$$

    when

    Erfi[z] gives the imaginary error function erf(iz)/i
     
  6. Jan 4, 2006 #5
    Thank you, but that's definitely not what I was supposed to get..Kind of ugly for ODE solution, isn't it? :)
     
  7. Jan 4, 2006 #6
    try [tex]y=\sqrt{x+1}[/tex]
    and then pick [tex]4ye^{2y^2}[/tex] as dv and [tex]y[/tex] for u... (integration by parts
     
    Last edited: Jan 4, 2006
  8. Jan 4, 2006 #7

    benorin

    User Avatar
    Homework Helper

    Last edited: Jan 4, 2006
  9. Jan 4, 2006 #8
    Sorry, I'm learning to use this editor, the answer is as follow

    [tex]\frac{3(4e^{2+2x}\sqrt{x+1}-\sqrt{2\pi}Erfi(\sqrt{2(1+x)}))}{8e^{2}}[/tex].
     
  10. Jan 4, 2006 #9
    oh yeah, and i forgot, after the integration in parts i suggested above.. you know the trick for [tex]e^{x^2}[/tex] right?
     
  11. Jan 4, 2006 #10
    Thank you fargoth, gonna try that.

    The ODE is

    [tex]
    y'' + 2y' + y = 3e^{x}\sqrt{x+1}
    [/tex]
     
  12. Jan 4, 2006 #11

    benorin

    User Avatar
    Homework Helper

    is it [itex]e^{2x}\mbox{ or }e^{x}[/itex]?
     
  13. Jan 4, 2006 #12
    It's [itex]e^{x}[/itex]
     
  14. Jan 4, 2006 #13

    benorin

    User Avatar
    Homework Helper

    Well, if it is either of the above, then your answer is just nasty (erfc, and all that). But if, perhaps, you had, say [tex]y^{\prime\prime}+2y^{\prime} + y= 3e^{-x}\sqrt{x+1} [/tex], then your answer is rather sweet, namely [tex]y(x)=c_{1}e^{-x}+c_{2}xe^{-x}+\frac{4}{5}e^{-x}(x+1)^{\frac{5}{2}}[/tex]. In fact, if the exponent of e in the nonhomogeneous part is anything other than -1, erfc (computer aided educated guess).
     
    Last edited: Jan 4, 2006
  15. Jan 4, 2006 #14
    You're an oracle, benorin! Professor wrote in wrongly, there has to be [itex]e^{-x}[/itex] in the original ODE.
     
  16. Jan 4, 2006 #15

    saltydog

    User Avatar
    Science Advisor
    Homework Helper

    Why should the mildly messy format of the first solution discourage you? The ODE as first written is perfectly solvable even for the second solution (assuming you're using variation of parameter and B(x) is defined as above) with the second one:

    [tex]A(x)=-3\int xe^{2x}\sqrt{x+1}[/tex]

    That's just me though.:smile:

    Edit: Oh yea, I haven't (yet) checked this.

    Edit2: Oh yea: equal rights for special functions. You know I have to send a dollar to Lurflurf each time I use that saying don't you?
     
    Last edited: Jan 4, 2006
  17. Jan 4, 2006 #16
    Now I computed it and got another solution..

    And the official one our proffesor has on his webpage is

    [tex]
    y = \frac{3}{2} \log \left(x^2 + \sqrt{x^4 + 1}\right)e^{-x} -2(x+1)^{\frac{3}{2}}xe^{-x} + \alpha e^{-x} + \beta xe^{-x}
    [/tex]
     
  18. Jan 4, 2006 #17
    What?? :biggrin:
     
  19. Jan 4, 2006 #18

    saltydog

    User Avatar
    Science Advisor
    Homework Helper

    Hey Twoflower, what's going on with this? Your initial ODE was:

    [tex]y^{''}+2y^{'}+y=3e^x\sqrt{1+x}[/tex]

    Using variation of parameter, I get:

    [tex]y(x)=A(x)e^{-x}+B(x)xe^{-x}+c_1e^{-x}+c_2xe^{-x}[/tex]

    with:

    [tex]B(x)=\frac{3\left(4e^{2+2x}\sqrt{1+x}-\sqrt{2\pi}\text{Erfi}(\sqrt{2(1+x)})\right)}{8e^2}[/tex]

    [tex]A(x)=-\frac{3\left(4e^{2+2x}\sqrt{1+x}(4x-3)+7\sqrt{2\pi}\text{Erfi}(\sqrt{2(1+x)})\right)}{32e^2}[/tex]

    Back-substituting y(x) (via Mathematica) into the LHS of the ODE, I get the RHS.

    When I back-substitute the "official solution" you posted above into the LHS of the ODE, I get an expression not even close to the RHS, minus x or not.
     
    Last edited: Jan 4, 2006
  20. Jan 5, 2006 #19

    saltydog

    User Avatar
    Science Advisor
    Homework Helper

    Really, just what is anyway:

    [tex]\frac{d}{dx}\text{Erfi}[x][/tex]

    and:

    [tex]\frac{d^2}{dx^2}\text{Erfi}[x][/tex]

    And also, I think we should ask Twoflower to solve this for us:

    [tex]y^{''}+2y^{'}+y=3e^x\sqrt{1+x},\quad y(0)=0,\;y'(0)=1[/tex]

    not numerically neither: figure out what c1 and c2 are.:smile:
     
    Last edited: Jan 5, 2006
  21. Jan 7, 2006 #20
    Well, this will definitely not appear in the test and I would probably not manage it.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Hard integral (for me)
  1. Hard integral (Replies: 5)

  2. Hard Integral (Replies: 8)

Loading...