K
K
konchober2019-10-30 00:07:14
Mathematics
konchober, 2019-10-30 00:07:14

How to solve the cattle pen problem?

Task from the book Theoretical Minimum in Computer Science. Everything a programmer and developer needs By Vladston Ferreira Filo
5db8a97215f29640634347.png
https://books.google.ru/books?id=m6JSDwAAQBAJ&pg=P...
The conditions are clear:

A = w * l
100 = 2w + 3l

But I can’t understand how he derives the following formulas and how to solve the problem and get an answer in the end. He writes that it is easily solved using the formula of the roots of a quadratic equation.
Googled what the formula is:
Формула дискриминанта Дискриминант D квадратного трёхчлена ax2 + bx + c равен b2 - 4ac.

But I don't see any connection to this problem...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2019-10-30
@Rsa97

Classically, problems for extrema of functions are
solved
through derivatives : 50/3 = 16.(6) A''(50/3) = -3 < 0 => maximum point w = 25 But it is also possible through a quadratic equation: A = 50l - (3/2)l 2 = 0 D = 50 2 l 1 = (-50 + sqrt(D)) / (2 * (-3/2)) = 0 l 2 = (-50 - sqrt(D)) / (2 * (-3/2) ) = 100/3 For a quadratic equation, the extremum point lies in the middle between the roots l = (l 1 + l 2 ) / 2 = 50/3 w = 25
Algebra, 8-9-10 grades.

L
longclaps, 2019-10-30
@longclaps

The problem of finding the maximum involves the calculation of the derivative.
You can google what it is)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question