I need to put a condition for b
inside p01, p02
definitions or just state this condition at the beginning of my problem.
p01[x_] := 2*h[2]/κ*Log[xκ*Log[(x - b)/(-b)] + θ[2]/κ*x + 1/2;
p02[x_] := 2*h[2]/κ*Log[xκ*Log[(x - b)/(1 - b)] + θ[2]/κ*(x - 1);
forh2[x_] = Integrate[p01[x], {x, 0, b}] + Integrate[p02[x], {x, b, 1}] - M*g;
fortheta2[x_] = Integrate[(x - b)*p01[x], {x, 0, b}] + Integrate[(x - b)*p02[x], {x, b, 1}];
When executing, for h2
and fortheta2,
I get lots of conditions related to b
. I know it does complain about Log[1/-b]
. In my physical problem 0<b<1
. How can I add this condition so that forh2, fortheta
2 make sense.