Finding Maximum Value of an Expression with Respect to $x$

In summary: So, if you are allowing real numbers, then you are in a tougher spot, and I don't think there is any method that is going to work out to give you an exact answer. In summary, the expression in $y=\dfrac{19^x+66^x}{x!}$ will have its maximum value at $x=65$.
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
115
Hi MHB,

I am completely clueless about how to tackle the problem below, given I noticed $y$ increases as $x$ increases, so there is no maximum point over the entire domain for that function, that is for $x \ge 0$, isn't that so?(Tmi)

For what value of $x$ is the expression in $y=\dfrac{19^x+66^x}{x!}$ the greatest?

Can someone please help shed some light on this problem? Thanks in advance.:)
 
Physics news on Phys.org
  • #2
anemone said:
Hi MHB,

I am completely clueless about how to tackle the problem below, given I noticed $y$ increases as $x$ increases, so there is no maximum point over the entire domain for that function, that is for $x \ge 0$, isn't that so?(Tmi)

For what value of $x$ is the expression in $y=\dfrac{19^x+66^x}{x!}$ the greatest?

Can someone please help shed some light on this problem? Thanks in advance.:)
Suppose that $x$ is sufficiently large that $66^x$ is much bigger than $19^x$. Then when $x$ increases to $x+1$, the numerator gets multiplied by (approximately) $66$ and the denominator gets multiplied by $x+1$. So when $x>66$ the function starts to decrease. Its maximum must occur when $x$ is somewhere in the region of $66$.
 
  • #3
Thank you so so much for your quick reply and also the great insight, Mr. Opalg!(Smile)

I understand it now completely! And since the denominator is a factorial $(x!)$ (where the factorial $(x!)$ is the product of all positive integer less than or equal to $x$), I do the following to search for the exact value of $x$ that gives the function of $y$ a maximum.

If we compare the $y$ values for $x=65, 66$, we see that

$\dfrac{19^{65}+66^{65}}{65!}=\dfrac{66(19^{65}+66^{65})}{66(65!)}=\dfrac{66(19^{65})+66^{66}}{66!}$$\dfrac{19^{66}+66^{66}}{66!}$

Since $\ln 66(19^{65})=195.578$ and $\ln 19^{66}=194.333$, it's safe to say that $\dfrac{19^{65}+66^{65}}{65!}>\dfrac{19^{66}+66^{66}}{66!}$.

Now, the hardest part is to determine which of these two is bigger...

$\dfrac{19^{64}+66^{64}}{64!}=\dfrac{65(19^{64}+66^{64})}{65(64!)}=\dfrac{65(19^{64}+66^{64})}{65!}$$\dfrac{19^{65}+66^{65}}{65!}$

I think we have to prove this backwardly. We first assume that $65(19^{64}+66^{64})<19^{65}+66^{65}$ is true.

Then we have

$65(19^{64})+65(66^{64})<19^{65}+66^{65}$

$65(66^{64})-66^{65}<19^{65}-65(19^{64})$

$(66^{64})(65-66)<19^{64}(19-65)$

$-65(66^{64})<-46(19^{64})$

$65(66^{64})>46(19^{64})$

If we take natural logarithm on both sides of the inequality, we can tell our assumption is true and hence $\dfrac{19^{64}+66^{64}}{64!}<\dfrac{19^{65}+66^{65}}{65!}$

$\ln 65+64\ln 66>\ln46+64\ln19$

$268.138>192.273$

From $\dfrac{19^{64}+66^{64}}{64!}<\dfrac{19^{65}+66^{65}}{65!}$ and $\dfrac{19^{65}+66^{65}}{65!}>\dfrac{19^{66}+66^{66}}{66!}$, we can conclude that the function of $y$ achieves a maximum value at $x=65$.

I have checked this with wolfram alpha and it has confirmed it for me.

$x$$y$
$64$$2.2253328417112431257845786572134766782361192294 \times 10^{27}$
$65$$2.2595687315837237892581875596321455107634281505 \times 10^{27}$
$66$$2.2595687315837237892581875596321454994078897477 \times 10^{27}$
$67$$2.2258438251421756730006026706824119812711267716 \times10^{27}$
 
  • #4
anemone said:
Thank you so so much for your quick reply and also the great insight, Mr. Opalg!(Smile)

I understand it now completely! And since the denominator is a factorial $(x!)$ (where the factorial $(x!)$ is the product of all positive integer less than or equal to $x$), I do the following to search for the exact value of $x$ that gives the function of $y$ a maximum.

If we compare the $y$ values for $x=65, 66$, we see that

$\dfrac{19^{65}+66^{65}}{65!}=\dfrac{66(19^{65}+66^{65})}{66(65!)}=\dfrac{66(19^{65})+66^{66}}{66!}$$\dfrac{19^{66}+66^{66}}{66!}$

Since $\ln 66(19^{65})=195.578$ and $\ln 19^{66}=194.333$, it's safe to say that $\dfrac{19^{65}+66^{65}}{65!}>\dfrac{19^{66}+66^{66}}{66!}$.

Now, the hardest part is to determine which of these two is bigger...

$\dfrac{19^{64}+66^{64}}{64!}=\dfrac{65(19^{64}+66^{64})}{65(64!)}=\dfrac{65(19^{64}+66^{64})}{65!}$$\dfrac{19^{65}+66^{65}}{65!}$

I think we have to prove this backwardly. We first assume that $65(19^{64}+66^{64})<19^{65}+66^{65}$ is true.

Then we have

$65(19^{64})+65(66^{64})<19^{65}+66^{65}$

$65(66^{64})-66^{65}<19^{65}-65(19^{64})$

$(66^{64})(65-66)<19^{64}(19-65)$

$-65(66^{64})<-46(19^{64})$

$65(66^{64})>46(19^{64})$

If we take natural logarithm on both sides of the inequality, we can tell our assumption is true and hence $\dfrac{19^{64}+66^{64}}{64!}<\dfrac{19^{65}+66^{65}}{65!}$

$\ln 65+64\ln 66>\ln46+64\ln19$

$268.138>192.273$

From $\dfrac{19^{64}+66^{64}}{64!}<\dfrac{19^{65}+66^{65}}{65!}$ and $\dfrac{19^{65}+66^{65}}{65!}>\dfrac{19^{66}+66^{66}}{66!}$, we can conclude that the function of $y$ achieves a maximum value at $x=65$.

I have checked this with wolfram alpha and it has confirmed it for me.

$x$$y$
$64$$2.2253328417112431257845786572134766782361192294 \times 10^{27}$
$65$$2.2595687315837237892581875596321455107634281505 \times 10^{27}$
$66$$2.2595687315837237892581875596321454994078897477 \times 10^{27}$
$67$$2.2258438251421756730006026706824119812711267716 \times10^{27}$

we need to prove

$66^{65}> 65(19^{64} + 66^{64})$
I prove without logs

We have $66^{65} = ( 1+ 65) 66^{64}$
= $65 * 66^{64} + 66 ^ {64}$
Now we need to prove $66^{64} > 65 * 19 ^ {64}$

As 66 > 3 * 19 so $66^{64} > 3^ {64} * 19^{64} > 65 * 19^{64} (as 3^{64} > 19) $
 
  • #5
anemone said:
Hi MHB,

I am completely clueless about how to tackle the problem below, given I noticed $y$ increases as $x$ increases, so there is no maximum point over the entire domain for that function, that is for $x \ge 0$, isn't that so?(Tmi)

For what value of $x$ is the expression in $y=\dfrac{19^x+66^x}{x!}$ the greatest?

Can someone please help shed some light on this problem? Thanks in advance.:)

Isn't there any clue whether $x$ must be an integer. If no then we have to define the gamma function $\Gamma(x+1)=x!$,
 
  • #6
The maximum of $y$ would occur at the same location as the maximum of $\ln(y)$. Note that
$$ \ln \left( \prod_{j=1}^{n}a_{j} \right)= \sum_{j=1}^{n} \ln(a_{j}).$$
Hence, we have that
$$\ln(y)= \ln(19^{x}+66^{x})-\ln(x!)
=\ln(19^{x}+66^{x})-\ln \left( \prod_{j=1}^{x}j \right)
=\ln(19^{x}+66^{x})- \sum_{j=1}^{x} \ln(j).$$
If we take the approximation hinted at earlier, namely, that $19^{x}+66^{x}
\approx 66^{x}$, then we can simplify even further:
$$\ln(y) \approx x \ln(66)- \sum_{j=1}^{x} \ln(j).$$
You can evaluate this expression quickly and easily on some calculators (make sure your calculator doesn't try to do integer arithmetic, however); or, if your calculator won't do it, I imagine WolframAlpha could do it.

Thus, if you are restricting your domain to integers, you can simply plug in.

There is no doubt, though, as Opalg pointed out, that factorials grow MUCH faster than exponentials.
 
  • #7
I have a slightly different approach.

We assume the inequality holds and try to justify it.

$ \dfrac{19^{65} \ + \ 66^{65}}{65!} \ > \ \dfrac{19^{66} \ + \ 66^{66}}{66!} $

$ 19^{65} \ + \ 66^{65} \ > \ \dfrac{19^{66} \ + \ 66^{66}}{66} $

$ 19^{65} \ + \ \cancel{66^{65}} \ > \ \dfrac{19^{66}}{66} \ + \ \cancel{ \dfrac{ 66^{66}}{66}} $

Now

$ 38 < 66 \ \ so \ \ \dfrac{19^{66}}{66} \ < \ \dfrac{19^{66}}{2 \cdot 19} $

A factor of 19 cancels and we can make the replacement without fear ,

$ 19^{65} \ > \ \dfrac{19^{65} }{2} \ > \ \dfrac{19^{66} }{66} $

And this is true by inspection

:D
 
  • #8
kaliprasad said:
we need to prove

$66^{65}> 65(19^{64} + 66^{64})$
I prove without logs

We have $66^{65} = ( 1+ 65) 66^{64}$
= $65 * 66^{64} + 66 ^ {64}$
Now we need to prove $66^{64} > 65 * 19 ^ {64}$

As 66 > 3 * 19 so $66^{64} > 3^ {64} * 19^{64} > 65 * 19^{64} (as 3^{64} > 19) $

agentmulder said:
I have a slightly different approach.

We assume the inequality holds and try to justify it.

$ \dfrac{19^{65} \ + \ 66^{65}}{65!} \ > \ \dfrac{19^{66} \ + \ 66^{66}}{66!} $

$ 19^{65} \ + \ 66^{65} \ > \ \dfrac{19^{66} \ + \ 66^{66}}{66} $

$ 19^{65} \ + \ \cancel{66^{65}} \ > \ \dfrac{19^{66}}{66} \ + \ \cancel{ \dfrac{ 66^{66}}{66}} $

Now

$ 38 < 66 \ \ so \ \ \dfrac{19^{66}}{66} \ < \ \dfrac{19^{66}}{2 \cdot 19} $

A factor of 19 cancels and we can make the replacement without fear ,

$ 19^{65} \ > \ \dfrac{19^{65} }{2} \ > \ \dfrac{19^{66} }{66} $

And this is true by inspection

:D

Thanks to both of you, kaliprasad and agentmulder for the proof without the use of logarithms. I truly appreciate it! But since this isn't a challenge problem so I guess the two of you don't need to hide your proposed solution! (Tongueout):eek:

ZaidAlyafey said:
Isn't there any clue whether $x$ must be an integer. If no then we have to define the gamma function $\Gamma(x+1)=x!$,

Thanks ZaidAlyafey for chiming in and expressed your doubt! But I don't think the problem needs the interfering of the gamma function and I can explain. This problem I saw on a site that all problems that it has to offer don't require any advance knowledge to crack them...(Smile)

Ackbach said:
The maximum of $y$ would occur at the same location as the maximum of $\ln(y)$. Note that
$$ \ln \left( \prod_{j=1}^{n}a_{j} \right)= \sum_{j=1}^{n} \ln(a_{j}).$$
Hence, we have that
$$\ln(y)= \ln(19^{x}+66^{x})-\ln(x!)
=\ln(19^{x}+66^{x})-\ln \left( \prod_{j=1}^{x}j \right)
=\ln(19^{x}+66^{x})- \sum_{j=1}^{x} \ln(j).$$
If we take the approximation hinted at earlier, namely, that $19^{x}+66^{x}
\approx 66^{x}$, then we can simplify even further:
$$\ln(y) \approx x \ln(66)- \sum_{j=1}^{x} \ln(j).$$
You can evaluate this expression quickly and easily on some calculators (make sure your calculator doesn't try to do integer arithmetic, however); or, if your calculator won't do it, I imagine WolframAlpha could do it.

Thus, if you are restricting your domain to integers, you can simply plug in.

There is no doubt, though, as Opalg pointed out, that factorials grow MUCH faster than exponentials.

Thank you Ackbach for the explanation and I understand it fully now! Thanks to MHB particularly!
 

Related to Finding Maximum Value of an Expression with Respect to $x$

What is the meaning of "maximum value" in relation to an expression?

"Maximum value" refers to the largest possible output of an expression when given a range of values for a variable, in this case, $x. It represents the peak or highest point of the expression.

What is the process for finding the maximum value of an expression with respect to $x?

The process for finding the maximum value of an expression with respect to $x involves first finding the derivative of the expression with respect to $x. Then, set the derivative equal to 0 and solve for the value of $x. This value of $x will correspond to the maximum value of the expression.

Can the maximum value of an expression with respect to $x$ be found without using derivatives?

Yes, in some cases, the maximum value of an expression with respect to $x$ can be found without using derivatives, such as when the expression is a quadratic function. In these cases, the maximum value can be found by completing the square or using the vertex formula.

What is the importance of finding the maximum value of an expression with respect to $x$?

Finding the maximum value of an expression with respect to $x$ can provide valuable information about the behavior of the expression. It can help identify the highest possible output and can be used to optimize the expression for a given range of values for $x$.

Are there any limitations or assumptions when finding the maximum value of an expression with respect to $x$?

Yes, there are limitations and assumptions when finding the maximum value of an expression with respect to $x$. The expression must be continuous and differentiable for the maximum value to exist. Additionally, the maximum value may not always correspond to a real number and may only exist in certain intervals.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
17
Views
249
Replies
3
Views
1K
  • Math POTW for Secondary and High School Students
Replies
7
Views
1K
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
234
  • Precalculus Mathematics Homework Help
Replies
15
Views
752
  • Precalculus Mathematics Homework Help
Replies
7
Views
790
  • General Math
Replies
11
Views
1K
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
8
Views
537
Back
Top