Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4622886
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:54:25+00:00 2026-05-22T02:54:25+00:00

What is going on here (Mathematica version 8.x): NIntegrate[Log[1/2 + Sqrt[1/4 – 1/(4 x^2)]]/x,

  • 0

What is going on here (Mathematica version 8.x):

NIntegrate[Log[1/2 + Sqrt[1/4 - 1/(4 x^2)]]/x, {x, 1, Infinity}]
--> -0.171007

Integrate[Log[1/2 + Sqrt[1/4 - 1/(4 x^2)]]/x, {x, 1, Infinity}] // N
--> 0.171007

The NIntegrate[] value is correct. I have run into problems with PrincipalValue selections before but a) those have been fixed in mma8 and b) this integral doesn’t, or at least shouldn’t, have poles in the integration region.

EDIT: Thanks to people suggesting solutions to this problem, a general solution would be, e.g., using exclusively NIntegrate. However, I am interested in finding out why specifically this happens and whether thus this bug is predictable.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:54:26+00:00Added an answer on May 22, 2026 at 2:54 am

    This is a bug in Integrate, I am afraid. As a workaround, do the change of variables x->u^(-1/2):

    In[12]:= Log[1/2 + Sqrt[1/4 - 1/(4*x^2)]]/x Dt[x]/Dt[u] /. 
     x -> 1/Sqrt[u]
    
    Out[12]= Log[1/2 + Sqrt[1/4 - u/4]]/(2 u)
    

    Then

    In[14]:= Integrate[%, {u, 1, 0}]
    
    Out[14]= 1/24 (-\[Pi]^2 + Log[8] Log[16])
    
    In[15]:= N[%]
    
    Out[15]= -0.171007
    

    This agrees with NIntegrate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's going on here? BTW, MySQL Server version: 5.0.45-log Source distribution. mysql> select count(*)
I have a page going here that uses jQuery: http://treethink.com/services What I am trying
I'm going nuts here, trying to get my system configured. I have a laptop
Not sure what's going on here. I have a DateTime object, and when I
I have an issue going on here. I am using PHP to get values
I have something weird going on here. I just finished a site for a
I have a simple thing going here: two divs and two calls to load
Whats going on here? Why isn't the = working? It's not a value type
So I have a very simple game going here..., right now the AI is
I am going crazy here... I already have a SimpleXMLElement Object so it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.