0
$\begingroup$

Probably a noobish question, but I've got this problem:

Two graphs: $y=0.5x^2$ and $y=-2+x$. A vertical lines goes through these graphs in points A and B. What's the shortest possible distance between A and B?

$\endgroup$
2
  • 1
    $\begingroup$ Draw a picture. If the vertical line is $x=t$, then the distance is $(0.5)t^2-(-2+t)$. $\endgroup$ May 3, 2016 at 17:45
  • $\begingroup$ Try to find the minimum of $0.5x^2-(-2+x)$ $\endgroup$
    – drhab
    May 3, 2016 at 17:45

2 Answers 2

3
$\begingroup$

The distance between two graphs can be denoted by $g(x)=|0.5x^2-(-2+x)|=|0.5x^2-x+2|$.

Now we need to minimize the function $g(x)$.

We can do this by taking the derivative of g(x):

$g'(x)=x-1$

Set this to zero:

$x-1=0 \Rightarrow x=1$

So the shortest distance appear at x=1.

And the shortest distance would be: $0.5*1^2-(-2+1)=1.5$

$\endgroup$
1
$\begingroup$

You want to minimise $\frac{1}{2}x^2-x+2=\frac{1}{2}(x-1)^2+\frac{3}{2}$. So the answer is $\frac{3}{2}$ achieved when the vertical line is $x=1$.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .