# Hadamard regularization isn't working out

As part of an exercise in a grad course on "mathematical methods" (always such a helpful name), I've been asked to evaluate $I=\int_0^{1/2}{(x^2-x+c)^{-2}dx}$ as a Hadamard finite part integral for $0 \leq c<1/4$. The integrand is positive, so $I$ should be positive too, right?

HFPIs aren't actually on the syllabus, although it's briefly mentioned for a different example that Hadamard regularization gives the same answer as doing it with generalized functions. Well, I've tried every method I can think of - every substitution, every excuse for which complex value of a logarithm to take (depending on how you tackle it, you get artanh with an argument >1 in the result), some methods based on generalized functions (which my assignment otherwise doesn't work with), some which rely on Wikipedia's account of Hadamard regularization and some which do neither - but whatever I do, the answer isn't a positive real number.

Whatever methods I use, the closest I've gotten is this. When $c > 1/4$, $I = 4(4c-1)^{-3/2}\operatorname{arctan}{(4c-1)^{-1/2}}+1/{c(4c-1)}$, which is real. When $c < 0$, the identity $\operatorname{arctan} iz = i \operatorname{artanh} z$ again gives a real value, namely $I = 4(1-4c)^{-3/2}\operatorname{arctan}{(1-4c)^{-1/2}}+1/{c(4c-1)}$. (Maybe the first term needs a - sign due to me misusing powers of i, but I don't think so.) As I understand it, for $x > 1$ $\operatorname{artanh}x$ has multiple complex values, all with the same real part and in conjugate pairs. So can you "average out" the imaginary part? Well, even if you do, the result is negative for small positive $c$, and tends to $-\infty$ as $c \to 0$, even though we should have $I=\int_0^{1/2}{(x^2-x)^{-2}dx}=+\infty$.

So what's going on here?

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 14, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": false, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9646375775337219, "perplexity_flag": "head"}