Maths WorkshopMaths problems with full solutions
Exercise 154Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingL2Added 4 Nov 2026

Minimising a/x + b/(1 − x)

#optimisation#inequalities#Cauchy–Schwarz#parameters

Statement

Let a,b>0a,b>0. Find the minimum of f(x)=ax+b1−xf(x)=\dfrac ax+\dfrac b{1-x} on (0,1)(0,1), and deduce that for x,y>0x,y>0 with x+y=1x+y=1,
ax+by≥(a+b)2.\frac ax+\frac by\ge(\sqrt a+\sqrt b)^2.

Hint

f′(x)=0f'(x)=0 leads to ax2=b(1−x)2\frac a{x^2}=\frac b{(1-x)^2}.

Show solutionHide solution

Solution

Critical point. f′(x)=−ax2+b(1−x)2=0  ⟺  1−xx=baf'(x)=-\dfrac a{x^2}+\dfrac b{(1-x)^2}=0\iff\dfrac{1-x}x=\sqrt{\dfrac ba} (both sides positive on (0,1)(0,1)). So x0=aa+bx_0=\dfrac{\sqrt a}{\sqrt a+\sqrt b} and 1−x0=ba+b1-x_0=\dfrac{\sqrt b}{\sqrt a+\sqrt b}.

Nature. f′′(x)=2ax3+2b(1−x)3>0f''(x)=\frac{2a}{x^3}+\frac{2b}{(1-x)^3}>0: ff is convex, and f→+∞f\to+\infty at both ends, so x0x_0 is the global minimum.

Value.
f(x0)=a(a+b)a+b(a+b)b=(a+b)(a+b)=(a+b)2.f(x_0)=\frac{a(\sqrt a+\sqrt b)}{\sqrt a}+\frac{b(\sqrt a+\sqrt b)}{\sqrt b}=(\sqrt a+\sqrt b)(\sqrt a+\sqrt b)=(\sqrt a+\sqrt b)^2.

Consequence. For all x∈(0,1)x\in(0,1) (and y=1−xy=1-x): ax+by≥(a+b)2\frac ax+\frac by\ge(\sqrt a+\sqrt b)^2, with equality iff x=x0x=x_0.

Remark. For a=b=1a=b=1: 1x+1y≥4\frac1x+\frac1y\ge4 when x+y=1x+y=1, the classical AM-HM inequality. The general inequality is a form of the Cauchy–Schwarz inequality: (ax+by)(x+y)≥(a+b)2\left(\frac ax+\frac by\right)(x+y)\ge(\sqrt a+\sqrt b)^2.