How to calculate Definite Integral in X to expression in X?












0












$begingroup$


Let X be a continuous random variable with probability density function (PDF)



$$ f_X(x) = begin{cases}
cx^2+|x|, & -1/2 < x < 1/2 \
0, & otherwise
end{cases} $$




  1. Determine the value of the c constant.

  2. Obtain the cumulative distribution function (CDF) of X.


Solution




  1. Having to be
    $$ int_{-infty}^{infty} f(x) , mathrm{d}x = 1, $$
    it is
    $$1=int_{-1/2}^{1/2} f(x) , mathrm{d}x=int_{-1/2}^{1/2} cx^2+|x| , mathrm{d}x=cint_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$


By integrating it, we get:



$$1=cleft[frac{x^3}{3}right]_{-1/2}^{1/2}+left[frac{x|x|}{2}right]_{-1/2}^{1/2}=cleft[frac{(frac{1}{2})^3-(-frac{1}{2})^3}{3}right]+left[frac{frac{1}{2}|frac{1}{2}|-(-frac{1}{2}|-frac{1}{2}|)}{2}right]=$$
$$=cfrac{frac{1}{8}+frac{1}{8}}{3}+frac{frac{1}{4}+frac{1}{4}}{2}=cfrac{2}{8}timesfrac{1}{3}+frac{2}{4}timesfrac{1}{2}=frac{c}{12}+frac{1}{4}$$



So we can conclude that:



$$c=12timesleft(1-frac{1}{4}right)=12timesleft(frac{3}{4}right)=3times3=9$$
that matches with the solution provided by the book.




  1. Now, for this step the book provides the following solution:
    enter image description here
    Probably here the integral of |x| has been splitted into 2 integrals (positive and negative numbers), however I'm not getting how it is possible to turn a definite integral with x variables to an expression of x variables, by passing from another integral by substituting y=x.


By integrating
$$9int_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$



I would get only a number.



How do I turn this integral to an expression in x variables?










share|cite|improve this question









$endgroup$












  • $begingroup$
    Integration is independent of change of variable.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:01










  • $begingroup$
    I agree, just not getting how it concludes that the integral is equal to that expression
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:04








  • 1




    $begingroup$
    $F_X(x)=int_{-infty}^x f_X(r) mathrm{d}r $.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:08










  • $begingroup$
    Sorry, could you please make an example? What property/theorem should I use?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:17












  • $begingroup$
    What is the definition of CDF? You don't seem to be using that.
    $endgroup$
    – StubbornAtom
    Dec 31 '18 at 11:21
















0












$begingroup$


Let X be a continuous random variable with probability density function (PDF)



$$ f_X(x) = begin{cases}
cx^2+|x|, & -1/2 < x < 1/2 \
0, & otherwise
end{cases} $$




  1. Determine the value of the c constant.

  2. Obtain the cumulative distribution function (CDF) of X.


Solution




  1. Having to be
    $$ int_{-infty}^{infty} f(x) , mathrm{d}x = 1, $$
    it is
    $$1=int_{-1/2}^{1/2} f(x) , mathrm{d}x=int_{-1/2}^{1/2} cx^2+|x| , mathrm{d}x=cint_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$


By integrating it, we get:



$$1=cleft[frac{x^3}{3}right]_{-1/2}^{1/2}+left[frac{x|x|}{2}right]_{-1/2}^{1/2}=cleft[frac{(frac{1}{2})^3-(-frac{1}{2})^3}{3}right]+left[frac{frac{1}{2}|frac{1}{2}|-(-frac{1}{2}|-frac{1}{2}|)}{2}right]=$$
$$=cfrac{frac{1}{8}+frac{1}{8}}{3}+frac{frac{1}{4}+frac{1}{4}}{2}=cfrac{2}{8}timesfrac{1}{3}+frac{2}{4}timesfrac{1}{2}=frac{c}{12}+frac{1}{4}$$



So we can conclude that:



$$c=12timesleft(1-frac{1}{4}right)=12timesleft(frac{3}{4}right)=3times3=9$$
that matches with the solution provided by the book.




  1. Now, for this step the book provides the following solution:
    enter image description here
    Probably here the integral of |x| has been splitted into 2 integrals (positive and negative numbers), however I'm not getting how it is possible to turn a definite integral with x variables to an expression of x variables, by passing from another integral by substituting y=x.


By integrating
$$9int_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$



I would get only a number.



How do I turn this integral to an expression in x variables?










share|cite|improve this question









$endgroup$












  • $begingroup$
    Integration is independent of change of variable.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:01










  • $begingroup$
    I agree, just not getting how it concludes that the integral is equal to that expression
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:04








  • 1




    $begingroup$
    $F_X(x)=int_{-infty}^x f_X(r) mathrm{d}r $.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:08










  • $begingroup$
    Sorry, could you please make an example? What property/theorem should I use?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:17












  • $begingroup$
    What is the definition of CDF? You don't seem to be using that.
    $endgroup$
    – StubbornAtom
    Dec 31 '18 at 11:21














0












0








0





$begingroup$


Let X be a continuous random variable with probability density function (PDF)



$$ f_X(x) = begin{cases}
cx^2+|x|, & -1/2 < x < 1/2 \
0, & otherwise
end{cases} $$




  1. Determine the value of the c constant.

  2. Obtain the cumulative distribution function (CDF) of X.


Solution




  1. Having to be
    $$ int_{-infty}^{infty} f(x) , mathrm{d}x = 1, $$
    it is
    $$1=int_{-1/2}^{1/2} f(x) , mathrm{d}x=int_{-1/2}^{1/2} cx^2+|x| , mathrm{d}x=cint_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$


By integrating it, we get:



$$1=cleft[frac{x^3}{3}right]_{-1/2}^{1/2}+left[frac{x|x|}{2}right]_{-1/2}^{1/2}=cleft[frac{(frac{1}{2})^3-(-frac{1}{2})^3}{3}right]+left[frac{frac{1}{2}|frac{1}{2}|-(-frac{1}{2}|-frac{1}{2}|)}{2}right]=$$
$$=cfrac{frac{1}{8}+frac{1}{8}}{3}+frac{frac{1}{4}+frac{1}{4}}{2}=cfrac{2}{8}timesfrac{1}{3}+frac{2}{4}timesfrac{1}{2}=frac{c}{12}+frac{1}{4}$$



So we can conclude that:



$$c=12timesleft(1-frac{1}{4}right)=12timesleft(frac{3}{4}right)=3times3=9$$
that matches with the solution provided by the book.




  1. Now, for this step the book provides the following solution:
    enter image description here
    Probably here the integral of |x| has been splitted into 2 integrals (positive and negative numbers), however I'm not getting how it is possible to turn a definite integral with x variables to an expression of x variables, by passing from another integral by substituting y=x.


By integrating
$$9int_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$



I would get only a number.



How do I turn this integral to an expression in x variables?










share|cite|improve this question









$endgroup$




Let X be a continuous random variable with probability density function (PDF)



$$ f_X(x) = begin{cases}
cx^2+|x|, & -1/2 < x < 1/2 \
0, & otherwise
end{cases} $$




  1. Determine the value of the c constant.

  2. Obtain the cumulative distribution function (CDF) of X.


Solution




  1. Having to be
    $$ int_{-infty}^{infty} f(x) , mathrm{d}x = 1, $$
    it is
    $$1=int_{-1/2}^{1/2} f(x) , mathrm{d}x=int_{-1/2}^{1/2} cx^2+|x| , mathrm{d}x=cint_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$


By integrating it, we get:



$$1=cleft[frac{x^3}{3}right]_{-1/2}^{1/2}+left[frac{x|x|}{2}right]_{-1/2}^{1/2}=cleft[frac{(frac{1}{2})^3-(-frac{1}{2})^3}{3}right]+left[frac{frac{1}{2}|frac{1}{2}|-(-frac{1}{2}|-frac{1}{2}|)}{2}right]=$$
$$=cfrac{frac{1}{8}+frac{1}{8}}{3}+frac{frac{1}{4}+frac{1}{4}}{2}=cfrac{2}{8}timesfrac{1}{3}+frac{2}{4}timesfrac{1}{2}=frac{c}{12}+frac{1}{4}$$



So we can conclude that:



$$c=12timesleft(1-frac{1}{4}right)=12timesleft(frac{3}{4}right)=3times3=9$$
that matches with the solution provided by the book.




  1. Now, for this step the book provides the following solution:
    enter image description here
    Probably here the integral of |x| has been splitted into 2 integrals (positive and negative numbers), however I'm not getting how it is possible to turn a definite integral with x variables to an expression of x variables, by passing from another integral by substituting y=x.


By integrating
$$9int_{-1/2}^{1/2}x^2, mathrm{d}x+int_{-1/2}^{1/2}|x| , mathrm{d}x$$



I would get only a number.



How do I turn this integral to an expression in x variables?







integration definite-integrals






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 31 '18 at 10:52









1Z101Z10

1105




1105












  • $begingroup$
    Integration is independent of change of variable.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:01










  • $begingroup$
    I agree, just not getting how it concludes that the integral is equal to that expression
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:04








  • 1




    $begingroup$
    $F_X(x)=int_{-infty}^x f_X(r) mathrm{d}r $.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:08










  • $begingroup$
    Sorry, could you please make an example? What property/theorem should I use?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:17












  • $begingroup$
    What is the definition of CDF? You don't seem to be using that.
    $endgroup$
    – StubbornAtom
    Dec 31 '18 at 11:21


















  • $begingroup$
    Integration is independent of change of variable.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:01










  • $begingroup$
    I agree, just not getting how it concludes that the integral is equal to that expression
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:04








  • 1




    $begingroup$
    $F_X(x)=int_{-infty}^x f_X(r) mathrm{d}r $.
    $endgroup$
    – Thomas Shelby
    Dec 31 '18 at 11:08










  • $begingroup$
    Sorry, could you please make an example? What property/theorem should I use?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 11:17












  • $begingroup$
    What is the definition of CDF? You don't seem to be using that.
    $endgroup$
    – StubbornAtom
    Dec 31 '18 at 11:21
















$begingroup$
Integration is independent of change of variable.
$endgroup$
– Thomas Shelby
Dec 31 '18 at 11:01




$begingroup$
Integration is independent of change of variable.
$endgroup$
– Thomas Shelby
Dec 31 '18 at 11:01












$begingroup$
I agree, just not getting how it concludes that the integral is equal to that expression
$endgroup$
– 1Z10
Dec 31 '18 at 11:04






$begingroup$
I agree, just not getting how it concludes that the integral is equal to that expression
$endgroup$
– 1Z10
Dec 31 '18 at 11:04






1




1




$begingroup$
$F_X(x)=int_{-infty}^x f_X(r) mathrm{d}r $.
$endgroup$
– Thomas Shelby
Dec 31 '18 at 11:08




$begingroup$
$F_X(x)=int_{-infty}^x f_X(r) mathrm{d}r $.
$endgroup$
– Thomas Shelby
Dec 31 '18 at 11:08












$begingroup$
Sorry, could you please make an example? What property/theorem should I use?
$endgroup$
– 1Z10
Dec 31 '18 at 11:17






$begingroup$
Sorry, could you please make an example? What property/theorem should I use?
$endgroup$
– 1Z10
Dec 31 '18 at 11:17














$begingroup$
What is the definition of CDF? You don't seem to be using that.
$endgroup$
– StubbornAtom
Dec 31 '18 at 11:21




$begingroup$
What is the definition of CDF? You don't seem to be using that.
$endgroup$
– StubbornAtom
Dec 31 '18 at 11:21










1 Answer
1






active

oldest

votes


















1












$begingroup$

The CDF $F_X(x)$ of a random variable $X$ is the probability that $X$ takes values smaller than $x$, so
$$
F_X(x)=int_{-infty}^x f_X(x')mathrm{d}x' .
$$

Everything boils down to computing the following integral:
$$
F_X(x)=int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq x'leq 1/2}.
$$

Clearly, this is a function of $x$, not just a number!



To compute the integral, we first observe that, if $x<-1/2$ the integral is zero (because the integrand is zero), and if $x>1/2$ the integral is identical to $int_{-1/2}^{1/2} mathrm{d}x'(9x'^2+|x'|)$ and thus is $=1$ by normalization.



Since the integrand is zero if $x'<-1/2$, we can truncate the range of integration as follows:
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{x'leq 1/2}.
$$



Now, it is convenient to consider the cases $-1/2<x<0$ and $0<x<1/2$ separately. If $-1/2<x<0$, you are integrating the function $9x'^2+|x'|$ over a negative range, which means that $|x'|= -x'$, and your integral is
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2-x')=9x'^3/3-x'^2/2Big|_{-1/2}^x
=9x^3/3-x^2/2-frac{9}{3}(-1/2)^3+frac{1}{2}(-1/2)^2=
$$

$$
3 x^3-frac{x^2}{2}+frac{1}{2} ,
$$

which coincides with the result given.



If $0<x<1/2$ instead, one needs to be more careful, because the function is now integrated over both a negative and positive range, therefore it is convenient to split the integration range $(-1/2,x)$ into $(-1/2,0)$ and $(0,x)$ - the difference between the two resulting integrals being that the absolute value $|x'|$ is equal to $-x'$ in the first case, and $x'$ in the second case.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:00












  • $begingroup$
    @1Z10 What is your background? How familiar are you with definite integrals?
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:02










  • $begingroup$
    I did study about it at high school and University few years ago, but never had to deal with such transformation.
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:10






  • 1




    $begingroup$
    @1Z10 Edited the answer, let me know if it's clearer now.
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:21






  • 1




    $begingroup$
    @1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 17:51











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: "69"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3057600%2fhow-to-calculate-definite-integral-in-x-to-expression-in-x%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1












$begingroup$

The CDF $F_X(x)$ of a random variable $X$ is the probability that $X$ takes values smaller than $x$, so
$$
F_X(x)=int_{-infty}^x f_X(x')mathrm{d}x' .
$$

Everything boils down to computing the following integral:
$$
F_X(x)=int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq x'leq 1/2}.
$$

Clearly, this is a function of $x$, not just a number!



To compute the integral, we first observe that, if $x<-1/2$ the integral is zero (because the integrand is zero), and if $x>1/2$ the integral is identical to $int_{-1/2}^{1/2} mathrm{d}x'(9x'^2+|x'|)$ and thus is $=1$ by normalization.



Since the integrand is zero if $x'<-1/2$, we can truncate the range of integration as follows:
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{x'leq 1/2}.
$$



Now, it is convenient to consider the cases $-1/2<x<0$ and $0<x<1/2$ separately. If $-1/2<x<0$, you are integrating the function $9x'^2+|x'|$ over a negative range, which means that $|x'|= -x'$, and your integral is
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2-x')=9x'^3/3-x'^2/2Big|_{-1/2}^x
=9x^3/3-x^2/2-frac{9}{3}(-1/2)^3+frac{1}{2}(-1/2)^2=
$$

$$
3 x^3-frac{x^2}{2}+frac{1}{2} ,
$$

which coincides with the result given.



If $0<x<1/2$ instead, one needs to be more careful, because the function is now integrated over both a negative and positive range, therefore it is convenient to split the integration range $(-1/2,x)$ into $(-1/2,0)$ and $(0,x)$ - the difference between the two resulting integrals being that the absolute value $|x'|$ is equal to $-x'$ in the first case, and $x'$ in the second case.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:00












  • $begingroup$
    @1Z10 What is your background? How familiar are you with definite integrals?
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:02










  • $begingroup$
    I did study about it at high school and University few years ago, but never had to deal with such transformation.
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:10






  • 1




    $begingroup$
    @1Z10 Edited the answer, let me know if it's clearer now.
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:21






  • 1




    $begingroup$
    @1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 17:51
















1












$begingroup$

The CDF $F_X(x)$ of a random variable $X$ is the probability that $X$ takes values smaller than $x$, so
$$
F_X(x)=int_{-infty}^x f_X(x')mathrm{d}x' .
$$

Everything boils down to computing the following integral:
$$
F_X(x)=int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq x'leq 1/2}.
$$

Clearly, this is a function of $x$, not just a number!



To compute the integral, we first observe that, if $x<-1/2$ the integral is zero (because the integrand is zero), and if $x>1/2$ the integral is identical to $int_{-1/2}^{1/2} mathrm{d}x'(9x'^2+|x'|)$ and thus is $=1$ by normalization.



Since the integrand is zero if $x'<-1/2$, we can truncate the range of integration as follows:
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{x'leq 1/2}.
$$



Now, it is convenient to consider the cases $-1/2<x<0$ and $0<x<1/2$ separately. If $-1/2<x<0$, you are integrating the function $9x'^2+|x'|$ over a negative range, which means that $|x'|= -x'$, and your integral is
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2-x')=9x'^3/3-x'^2/2Big|_{-1/2}^x
=9x^3/3-x^2/2-frac{9}{3}(-1/2)^3+frac{1}{2}(-1/2)^2=
$$

$$
3 x^3-frac{x^2}{2}+frac{1}{2} ,
$$

which coincides with the result given.



If $0<x<1/2$ instead, one needs to be more careful, because the function is now integrated over both a negative and positive range, therefore it is convenient to split the integration range $(-1/2,x)$ into $(-1/2,0)$ and $(0,x)$ - the difference between the two resulting integrals being that the absolute value $|x'|$ is equal to $-x'$ in the first case, and $x'$ in the second case.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:00












  • $begingroup$
    @1Z10 What is your background? How familiar are you with definite integrals?
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:02










  • $begingroup$
    I did study about it at high school and University few years ago, but never had to deal with such transformation.
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:10






  • 1




    $begingroup$
    @1Z10 Edited the answer, let me know if it's clearer now.
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:21






  • 1




    $begingroup$
    @1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 17:51














1












1








1





$begingroup$

The CDF $F_X(x)$ of a random variable $X$ is the probability that $X$ takes values smaller than $x$, so
$$
F_X(x)=int_{-infty}^x f_X(x')mathrm{d}x' .
$$

Everything boils down to computing the following integral:
$$
F_X(x)=int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq x'leq 1/2}.
$$

Clearly, this is a function of $x$, not just a number!



To compute the integral, we first observe that, if $x<-1/2$ the integral is zero (because the integrand is zero), and if $x>1/2$ the integral is identical to $int_{-1/2}^{1/2} mathrm{d}x'(9x'^2+|x'|)$ and thus is $=1$ by normalization.



Since the integrand is zero if $x'<-1/2$, we can truncate the range of integration as follows:
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{x'leq 1/2}.
$$



Now, it is convenient to consider the cases $-1/2<x<0$ and $0<x<1/2$ separately. If $-1/2<x<0$, you are integrating the function $9x'^2+|x'|$ over a negative range, which means that $|x'|= -x'$, and your integral is
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2-x')=9x'^3/3-x'^2/2Big|_{-1/2}^x
=9x^3/3-x^2/2-frac{9}{3}(-1/2)^3+frac{1}{2}(-1/2)^2=
$$

$$
3 x^3-frac{x^2}{2}+frac{1}{2} ,
$$

which coincides with the result given.



If $0<x<1/2$ instead, one needs to be more careful, because the function is now integrated over both a negative and positive range, therefore it is convenient to split the integration range $(-1/2,x)$ into $(-1/2,0)$ and $(0,x)$ - the difference between the two resulting integrals being that the absolute value $|x'|$ is equal to $-x'$ in the first case, and $x'$ in the second case.






share|cite|improve this answer











$endgroup$



The CDF $F_X(x)$ of a random variable $X$ is the probability that $X$ takes values smaller than $x$, so
$$
F_X(x)=int_{-infty}^x f_X(x')mathrm{d}x' .
$$

Everything boils down to computing the following integral:
$$
F_X(x)=int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq x'leq 1/2}.
$$

Clearly, this is a function of $x$, not just a number!



To compute the integral, we first observe that, if $x<-1/2$ the integral is zero (because the integrand is zero), and if $x>1/2$ the integral is identical to $int_{-1/2}^{1/2} mathrm{d}x'(9x'^2+|x'|)$ and thus is $=1$ by normalization.



Since the integrand is zero if $x'<-1/2$, we can truncate the range of integration as follows:
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{x'leq 1/2}.
$$



Now, it is convenient to consider the cases $-1/2<x<0$ and $0<x<1/2$ separately. If $-1/2<x<0$, you are integrating the function $9x'^2+|x'|$ over a negative range, which means that $|x'|= -x'$, and your integral is
$$
F_X(x)=int_{-1/2}^x mathrm{d}x'(9x'^2-x')=9x'^3/3-x'^2/2Big|_{-1/2}^x
=9x^3/3-x^2/2-frac{9}{3}(-1/2)^3+frac{1}{2}(-1/2)^2=
$$

$$
3 x^3-frac{x^2}{2}+frac{1}{2} ,
$$

which coincides with the result given.



If $0<x<1/2$ instead, one needs to be more careful, because the function is now integrated over both a negative and positive range, therefore it is convenient to split the integration range $(-1/2,x)$ into $(-1/2,0)$ and $(0,x)$ - the difference between the two resulting integrals being that the absolute value $|x'|$ is equal to $-x'$ in the first case, and $x'$ in the second case.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Dec 31 '18 at 12:21

























answered Dec 31 '18 at 11:47









Pierpaolo VivoPierpaolo Vivo

5,3662724




5,3662724












  • $begingroup$
    How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:00












  • $begingroup$
    @1Z10 What is your background? How familiar are you with definite integrals?
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:02










  • $begingroup$
    I did study about it at high school and University few years ago, but never had to deal with such transformation.
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:10






  • 1




    $begingroup$
    @1Z10 Edited the answer, let me know if it's clearer now.
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:21






  • 1




    $begingroup$
    @1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 17:51


















  • $begingroup$
    How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:00












  • $begingroup$
    @1Z10 What is your background? How familiar are you with definite integrals?
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:02










  • $begingroup$
    I did study about it at high school and University few years ago, but never had to deal with such transformation.
    $endgroup$
    – 1Z10
    Dec 31 '18 at 12:10






  • 1




    $begingroup$
    @1Z10 Edited the answer, let me know if it's clearer now.
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 12:21






  • 1




    $begingroup$
    @1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
    $endgroup$
    – Pierpaolo Vivo
    Dec 31 '18 at 17:51
















$begingroup$
How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
$endgroup$
– 1Z10
Dec 31 '18 at 12:00






$begingroup$
How do you turn $$ int_{-infty}^x mathrm{d}x'(9x'^2+|x'|)mathbb{1}_{-1/2leq xleq 1/2}. $$ to $$ 1+6x^3+|x|^2 $$ ?
$endgroup$
– 1Z10
Dec 31 '18 at 12:00














$begingroup$
@1Z10 What is your background? How familiar are you with definite integrals?
$endgroup$
– Pierpaolo Vivo
Dec 31 '18 at 12:02




$begingroup$
@1Z10 What is your background? How familiar are you with definite integrals?
$endgroup$
– Pierpaolo Vivo
Dec 31 '18 at 12:02












$begingroup$
I did study about it at high school and University few years ago, but never had to deal with such transformation.
$endgroup$
– 1Z10
Dec 31 '18 at 12:10




$begingroup$
I did study about it at high school and University few years ago, but never had to deal with such transformation.
$endgroup$
– 1Z10
Dec 31 '18 at 12:10




1




1




$begingroup$
@1Z10 Edited the answer, let me know if it's clearer now.
$endgroup$
– Pierpaolo Vivo
Dec 31 '18 at 12:21




$begingroup$
@1Z10 Edited the answer, let me know if it's clearer now.
$endgroup$
– Pierpaolo Vivo
Dec 31 '18 at 12:21




1




1




$begingroup$
@1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
$endgroup$
– Pierpaolo Vivo
Dec 31 '18 at 17:51




$begingroup$
@1Z10 Because you are still integrating between $-1/2$ and $x$...so $x'$ (the integration variable) can still take both negative and positive values. Do not confuse $x$ and $x'$, they are two very different objects: $x$ plays the role of a parameter, which can take values between (in principle) $-infty$ and $+infty$, while $x'$ is the integration variable - which, depending on the value of $x$, can take values in a certain range of values....
$endgroup$
– Pierpaolo Vivo
Dec 31 '18 at 17:51


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics 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%2fmath.stackexchange.com%2fquestions%2f3057600%2fhow-to-calculate-definite-integral-in-x-to-expression-in-x%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

Bressuire

Cabo Verde

Gyllenstierna