The below solution seems to assume that 1/0 = 0

  • Thread starter Darkmisc
  • Start date
  • Tags Tags
    Chain rule
7 replies · 2K views · last reply
Darkmisc
Messages
222
Reaction score
31
Homework Statement
The below question seems to assume that 1/0 = 0. Have I misunderstood something?
Relevant Equations
Chain rule
Hi everyone

In the below problem, I understand that the chain rule is being used. The derivative is then equated to zero. Since the derivative is composed of dy/du and du/dx, the derivative will equal zero if either dy/du or du/dx equals zero.

However, u would be everything under the square root sign, so dy/du would be 1/(2u^0.5). If u is equated to zero, dy/du should be undefined.

Is it a mistake for the below solutions to consider dy/du=0, or have I missed something?

Thanks

Diagram of a fire front on a farm: a blue curve labelled g(x) rises from a town marked at the origin, with red flames along it, a photo of grassland, and axes labelled 1 to 4 and 0.5 to 3, with a compass showing N, S, E, W.
Handwritten worked solution to a minimum-distance problem: D'(x) = 0 leads to 2e^(2x) - 5e^x + 2x - 4 = 0, then the square root expression equals 0, giving x = 1.04 and D(1.04) = 1.01 km.
 
anuttarasammyak said:
What is u that you are wondering ? I do not find the formula.
Handwritten working on lined paper: let y = sqrt((x-2)^2 + (e^x - 1/2 - 2)^2), expanded to sqrt(x^2 - 4x + 4 + e^(2x) - 5e^x + 25/4), then let u equal that expression under the root, with dy/du = 1/(2 sqrt(u)).
 
Darkmisc said:
so dy/du would be 1/(2u^0.5).
… which is non-zero so du/dx needs to be zero for dy/dx to be zero.
 
  • Like
Likes   Reactions: Darkmisc
[tex]\frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx}=\frac{2x-4+2e^{2x}-5e^x}{2\sqrt{u}}[/tex]

Wolfram Alpha output for y = 2x - 4 + 2e^(2x) - 5e^x, showing two plots of the curve, alternate forms, and the real root x ≈ 1.04287.

Obviously
[tex]u=(x-2)^2+(e^x-\frac{5}{2})^2 >0[/tex]

Wolfram-style input and exact result for y = x^2 - 4x + 4 + e^(2x) - 5e^x + 25/4 rewritten as y = x^2 - 4x - 5e^x + e^(2x) + 41/4, with two plots of y against x: one over x from -2.2 to 2.2 and one over x from -13.5 to 13.5.
 
Last edited:
  • Like
Likes   Reactions: jim mcnamara, Darkmisc and malawi_glenn
It is pretty easy to show that ##u= (x-2)^2 + (e^x - \frac{5}{2})^2## can not be zero.
Remember, this is Pythagoras theorem basically. So the only way u can be zero is if both terms are equal to zero individually. This means x1 = 2 and x2 = ln(5/2). But 5/2 < e so x2 < 1. So there is no x that can make u = 0.
 
  • Like
Likes   Reactions: jim mcnamara and Darkmisc
The issue only occurs if [itex]u(x) = 0[/itex] somewhere; but then [itex]\min\sqrt{u(x)} = 0[/itex], and we don't need to look at the derivative of [itex]\sqrt{u(x)}[/itex] (at a point where it doesn't exist) to tell us that. Also, it is enough to look for a minimum of [itex]u(x) \geq 0[/itex], rather than [itex]\sqrt{u(x)}[/itex].
 
  • Like
Likes   Reactions: Darkmisc and malawi_glenn
pasmith said:
Also, it is enough to look for a minimum of u(x)≥0, rather than u(x).
Also note that this is true for any monotonically increasing function ##f## (such as the square root on the non-negative numbers).