I am new to Mathematica. I want to find the maximum of the functions:
FindMaximum[
(1 + y)^2/((1 + y)^2 + (1 + x)^2)* 5 - y - (1/((1 + x)^2 + 1))*5 && 0 < y < 2
, y]
So I want to find the maximum of above function, with y in the range 0 to 2, taking $x$ as a parameter. However it showed the error
FindMaximum::nrnum: The function value 1. +(5 (1+x)^2)/(1+(1+x)^2)-(5 (2. +x)^2)/(1+(2. +x)^2) is not a real number at {y} = {1.}
How can I fix this?
It only works if I input a certain value for $x$ (such as x=1
).
Thank you all so much!