Post Reply 
Brain Teaser - Minimum distance between two curves
01-12-2016, 09:40 AM (This post was last modified: 01-12-2016 12:34 PM by Pekis.)
Post: #15
RE: Brain Teaser - Minimum distance between two curves
Thanks for your refreshing brain teaser.

f(x)=x2+1 => f'(x)=2x
g(x)=sqrt(x) => g'(x)=1/(2sqrt(x))

The normal equation on f at xf: Slope: -1/f'(xf) Intercept: f(xf)+xf/f'(xf)
-> y=-x/(2xf))+xf2+3/2

The normal equation on g at xg: Slope: -1/g'(xg) Intercept: g(xg)+xg/g'(xg)
-> y=-2sqrt(xg)x+(2xg+1)sqrt(xg)

Same normal => -1/(2xf) must be equal to -2sqrt(xg) and xf2+3/2 must be equal (2xg+1)sqrt(xg)

Leads to
xf=1/(4sqrt(xg)) (or xg=1/(16xf2)
and then
4xf5+6xf3-xf2-1/8=0

Only one real root: approx. 0.331695 for xf => approx. 0.56807 for xg

=> distance (xf,f(xf)) (xg,g(xg)) is approx. 0.42759
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Brain Teaser - Minimum distance between two curves - Pekis - 01-12-2016 09:40 AM



User(s) browsing this thread: 1 Guest(s)