I am trying to solve the following equation for x in terms of y and c (with x,y∈[0,1])
log(x1−x−y)+x1−x−y+y1−x−y=c
I can solve this easier equation
log(x1−x−y)+x1−x−y=c
Let
z=x1−x−y
Then I can solve for x using Lambert's W function
log(z)+z=cz=exp(c)exp(−z)zexp(z)=exp(c)z=W(exp(c))x=(1−y)W(exp(c))1+W(exp(c))
Can anyone help me solve the harder equation? Is Lambert's W function helpful here?
Thanks!
Answer
ln(x1−x−y)+x1−x−y+y1−x−y=c
ln(x1−x−y)=c+1−x−y−11−x−y,ln(1−y1−x−y−1)=c+1−11−x−y,ln(1−y1−x−y−1)=c−(11−x−y−1),ln(1−y1−x−y−1)=c−11−y(1−y1−x−y−(1−y)),ln(1−y1−x−y−1)=c−11−y(1−y1−x−y−(1−y)),ln(1−y1−x−y−1)=c−y1−y−11−y(1−y1−x−y−1).
Let
1−y1−x−y−1=z,c−y1−y=u,−11−y=v
and we have an equation
lnz=u+vz,
which has a standard solution for z in terms Lambert W function
z=−W(−vexp(u))v,x=(1−y)(1−11+z).
No comments:
Post a Comment