In the context of the thermodynamics of mixing two separate gases at the same temperature and pressure, one has the generic equation, \begin{gather*} -\frac{\Delta S_{mix}}{nR} = X_A \ln(X_A) + X_B \ln(X_B) \end{gather*} where $S$ is the entropy, $n$ is the moles, $R$ is the ideal gas constant, and $X_A$ refers to the mole fraction of a substance $A$ in the mixture. If we are given $\Delta S_{mix}$ along with the total moles of gas, and if we exploit the fact that the two mole fractions should add to 100% ($X_B = 1-X_A$), this amounts to solving a difficult logarithmic equation of the form, \begin{align*} C &= x \ln(x) + (1-x) \ln(1-x) \\ &=\ln(1-x) + x\ln \left( \frac{x}{1-x} \right) \end{align*} where $C$ is just a constant for convenience. After trying several different manipulations with the rules for logarithms, I just ended up with what seems like a more intractable mess. Is there a way to actually solve this algebraically for $x$, or is there absolutely no hope here?
2026-03-25 12:45:45.1774442745
Solving Logarithmic Expression
68 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in ALGEBRA-PRECALCULUS
- How to show that $k < m_1+2$?
- What are the functions satisfying $f\left(2\sum_{i=0}^{\infty}\frac{a_i}{3^i}\right)=\sum_{i=0}^{\infty}\frac{a_i}{2^i}$
- Finding the value of cot 142.5°
- Why is the following $\frac{3^n}{3^{n+1}}$ equal to $\frac{1}{3}$?
- Extracting the S from formula
- Using trigonometric identities to simply the following expression $\tan\frac{\pi}{5} + 2\tan\frac{2\pi}{5}+ 4\cot\frac{4\pi}{5}=\cot\frac{\pi}{5}$
- Solving an equation involving binomial coefficients
- How is $\frac{\left(2\left(n+1\right)\right)!}{\left(n+1\right)!}\cdot \frac{n!}{\left(2n\right)!}$ simplified like that?
- How to solve algebraic equation
- What do I miss on this function? $f(t) = (t-1)^{s/2}-t^{s/2}+1$
Related Questions in LOGARITHMS
- Confirmation of Proof: $\forall n \in \mathbb{N}, \ \pi (n) \geqslant \frac{\log n}{2\log 2}$
- Extracting the S from formula
- How to prove the following inequality (log)
- Rewriting $(\log_{11}5)/(\log_{11} 15)$
- How to solve this equation with $x$ to a logarithmic power?
- Show that $\frac{1}{k}-\ln\left(\frac{k+1}{k}\right)$ is bounded by $\frac{1}{k^2}$
- Why do we add 1 to logarithms to get number of digits?
- Is my method correct for to prove $a^{\log_b c} = c^{\log_b a}$?
- How to prove the inequality $\frac{1}{n}+\frac{1}{n+1}+\cdots+\frac{1}{2n-1}\geq \log (2)$?
- Unusual Logarithm Problem
Related Questions in PHYSICS
- Why is the derivative of a vector in polar form the cross product?
- What is meant by input and output bases?
- Does Planck length contradict math?
- Computing relative error with ideal gas law.
- Planetary orbits in a $4$-dimensional universe
- Applied Maths: Equations of Motion
- Return probability random walk
- What will be the velocity of a photon ejected from the surface of cesium by a photon with a frequency of 6.12E14 s^-1?
- What mathematical principal allows this rearrangement during simplifying
- Time when velocity of object is zero and position at that point in time
Related Questions in PROBLEM-SOLVING
- How do you prevent being lead astray when you're working on a problem that takes months/years?
- How to prove the inequality $\frac{1}{n}+\frac{1}{n+1}+\cdots+\frac{1}{2n-1}\geq \log (2)$?
- How to solve higher order polynomial equations?
- Methods in finding invariant subspaces?
- Question about the roots of a complex polynomial
- Using a counting argument to prove some equalities? (Problem Solving)
- (Problem Solving) Proving $\sum_{k=0}^{n}(-1)^k\binom{n}{k}\frac{1}{k+m+1}=\sum_{k=0}^{m}(-1)^k\binom{m}{k}\frac{1}{k+n+1}$
- (Problem Solving) Proving $|x|^p +|y|^p \geq |x+y|^p$
- Each vertex of the square has a value which is randomly chosen from a set.
- Fill in the blanks
Related Questions in CHEMISTRY
- Quantum Chemistry book recommendation.
- Number of compounds with the same chemical formula
- Symmetric Direct Product Distributive?
- Solve system of equations with no constant terms
- Understanding an Equation for Pulmonary Diffusion
- Does this averaging function have a name? ("sigma profiles" in chemistry)
- Stable limit cycle
- Transformations commuting in 3D (crystallography)
- Inuition behind symbolic partial derivative of heat capacity?
- Stochastic simulation Gillespie algorithm for areas instead of volumes?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
Start using$$x \log(x) + (1-x) \log(1-x)=-\log(2)+\sum_{n=1}^\infty \frac{2^{2 n-1}}{n (2 n-1)}\left(x-\frac{1}{2}\right)^{2 n}$$
To give an idea of the quality of the approximation, consider the partial sum $$S_p=-\log(2)+\sum_{n=1}^p \frac{2^{2 n-1}}{n (2 n-1)}\left(x-\frac{1}{2}\right)^{2 n}$$
and the corresponding infinite norm $$\Phi_p=\int_0^1\Big(x \log(x) + (1-x) \log(1-x)-S_p \Big)^2\, dx$$
$$\left( \begin{array}{cc} p & \Phi_p \\ 1 & 2.38986\times 10^{-3} \\ 2 & 4.79841\times 10^{-4} \\ 3 & 1.68129\times 10^{-4} \\ 4 & 7.72283\times 10^{-5} \\ 5 & 4.16231\times 10^{-5} \\ 6 & 2.49278\times 10^{-5} \\ 7 & 1.60876\times 10^{-5} \\ 8 & 1.09776\times 10^{-5} \\ 9 & 7.82106\times 10^{-6} \\ 10 & 5.76722\times 10^{-6} \\ \end{array} \right)$$
Truncate the series to some order and use power series reversion.
This would give $$\color{blue}{x=\frac 12 +t-\frac{t^3}{3}\sum_{n=0}^\infty a_n\,t^{2n}}\qquad \text{where} \qquad \color{blue}{t=\sqrt{\frac{C+\log (2)}{2} }}$$ where the first coefficients are $$\left\{1,\frac{13}{30},\frac{97}{210},\frac{25307}{37800},\frac{5 6827}{49896},\frac{1457147323}{681080400},\frac{14645196257}{3 405402000},\cdots\right\}$$
Edit
For $0\leq x \leq \frac 12$, I already wrote (have a look here) that we can make a good approximation
$$x \log(x) + (1-x) \log(1-x) \sim -\log(2) \big(4 x (1-x) \big)^{3/4}$$ So, the first estimate is $$\color{blue}{x_0=\frac 12(1-t)}\qquad\text{where}\qquad \color{blue}{t=\sqrt{1-\left(\frac{|C|}{\log (2)}\right)^{4/3}}} $$ is a decent approximation of te solution.
To improve it, use the first iterate of Newton method $$x_1=x_0-\frac {f(x_0)}{f'(x_0)}$$ where $$f(x)=x \log(x) + (1-x) \log(1-x)-C$$ $$f'(x)=\log (x)-\log (1-x)$$
$$\large\color{blue}{x_1=\frac {\log(1+t) -(C+\log(2)) } {2 \tanh ^{-1}(t) }}$$
Some numbers
$$\left( \begin{array}{cccc} c & x_0 & x_1 & \text{solution} \\ -0.05 & 0.007564 & 0.008696 & 0.008713 \\ -0.10 & 0.019289 & 0.020496 & 0.020506 \\ -0.15 & 0.033611 & 0.034481 & 0.034484 \\ -0.20 & 0.050185 & 0.050505 & 0.050505 \\ -0.25 & 0.068936 & 0.068599 & 0.068599 \\ -0.30 & 0.089935 & 0.088903 & 0.088906 \\ -0.35 & 0.113377 & 0.111666 & 0.111674 \\ -0.40 & 0.139600 & 0.137270 & 0.137283 \\ -0.45 & 0.169147 & 0.166300 & 0.166318 \\ -0.50 & 0.202903 & 0.199687 & 0.199710 \\ -0.55 & 0.242414 & 0.239038 & 0.239065 \\ -0.60 & 0.290813 & 0.287584 & 0.287612 \\ -0.65 & 0.356713 & 0.354163 & 0.354187 \\ \end{array} \right)$$
For sure, the first estimate of Halley or Householder methods (still closed form formulae) wold be better. No problem to write them.