# Optimization Problems Involving Numbers

Number problems involve finding two numbers that satisfy certain conditions.

If we label the numbers using the variables *x* and *y*, we can compose the objective function *F* (*x*, *y*) to be maximized or minimized.

The constraint specified in the problem allows to eliminate one of the variables.

When we get the objective function as a single variable function, we can use differentiation to find the extreme values.

## Solved Problems

### Example 1.

Find two numbers whose sum is \(36\) if the sum of their squares is to be a minimum.

Solution.

Let \(x\) and \(y\) be the two numbers. We want to find the minimum of the function

As \(x + y = 36,\) we can eliminate one variable in the objective function. Substitute \(y = 36 - x\) in the objective function.

Take the derivative:

The critical points are

Note that the second derivative is positive:

Hence, the objective function has a local minimum at \(x = 18.\)

So the sum of squares is a minimum when \(x = 18,\) \(y = 36-x = 18.\)

### Example 2.

Find two positive numbers whose product is \(a\) such that their sum is minimum.

Solution.

Let \(x\) and \(y\) be the two numbers. The objective function is written in the form

As \(xy = a,\) we can substitute \(y = \frac{a}{x}\) into the objective function:

Take the derivative and find the critical points:

We should take only positive root \(x = + \sqrt a .\)

Find the second derivative and determine its sign at this point:

We see that \(x = \sqrt a\) is a point of minimum by the Second Derivative Test.

Hence, the answer is

### Example 3.

Find two numbers whose difference is \(8\) and whose product is a minimum.

Solution.

The objective function is

where \(x\) and \(y\) are the two numbers.

Since \(x - y = 8,\) we can substitute \(y = x - 8\) in the objective function above. This yields:

Take the derivative:

There is one critical point \(x = 4\).

Note that the second derivative is always positive:

Hence, the objective function has a minimum at the point \(x = 4.\) The other number equals \(y = -4.\)

### Example 4.

Determine two positive numbers whose product is \(4\) such that the sum of their squares is minimum.

Solution.

The objective function is given by

where \(x,y\) are the two unknown numbers.

As \(xy = 4,\) we obtain:

The derivative of the objective function is

Now it is easy to find the critical points:

so the critical points are

We should take only the point \(x = 2.\) Then \(y = 2.\)

### Example 5.

Find the number whose sum with its reciprocal is a minimum.

Solution.

The function to be minimized is written as

where \(x\) is supposed to be a positive number.

Take the derivative:

There are the following critical values:

Only the root \(x = 1\) satisfies the condition \(x \gt 0.\)

Determine the second derivative:

As the second derivative is positive at \(x = 1,\) this point corresponds to the minimum of the objective function. The minimum value of the function is

### Example 6.

Find two numbers whose difference is \(6\) such that the sum of their squares is a minimum.

Solution.

Let \(x\) and \(y\) be the two numbers. The objective function is written as

As \(x - y = 6,\) we substitute \(y = x - 6\) in the function above:

Compute the derivative:

so the critical point is \(x = 3.\)

The second derivative is

Hence, \(x = 3\) corresponds to the minimum of the objective function by the Second Derivative Test. The other number equals \(y = -3.\)