Bug when calculating the derivative in CAS-mode.

Jakob Jakobsson shared this question 4 years ago
Answered

When I write as follows:

h(x):=(f(x))^2

h''(x)

I get the answer: 2f'(x)² + 2f'(x) f(x). But the correct answer is 2f'(x)² + 2f''(x) f(x)

If I use the button f' two times then I get the correct answer.

Comments (9)

photo
1

Confirmed in Classic v.5 and v. 6

photo
1

isn't the following result correct? (without any plus sign...)

chris

1f9255e9f787cab3401e4562633a68e7

photo
1

Hi Chris. I don't understand your CAS window.

Did you type just h(x) and press Enter in the 2nd row? If I do the same on online Classic, it yields f(x)^2...

photo
1

hi Simona two ways to get the solution (in GG6):

in row 1 I typed (f(x))² and then I clicked on the derivate tool.


in row 2 I defined h(x):=(f(x))² and entered, as you thought I might have. Then row 3 opens and I only have to click on the derivate tool to get the result.

chris

98dbc22f4736b3c63abda33984701ac1

photo
1

the problem is in second derivative

/4Xz+6ca1xaPbgunTIIsQ7yPD26PKibM+aXLjkk1eZ42NruHHZQc9UYvZgWiNkEeId5P8DHerkomZ+IDgAAAAASUVORK5CYII=

photo
1

disculpe

the extra comma for the second derivate escaped to me... Strange that you can be so focussed on what you think to see that you even don't get the link between the formula and the obvious second derivate.

chris

photo
1

No worries :)


I've handed over the hot potato to the Team

photo
1

Thanks, fixed for next release!

photo
1

Please try the new version (387)

© 2021 International GeoGebra Institute