To find the maximum value of the function y(x), we first solve the given differential equation:
(x2−5)dxdy−2xy=−2x(x2−5)2
Dividing both sides of the equation by (x2−5)2, we obtain:
(x2−5)2(x2−5)dxdy−2xy=−2x
Recognizing the left-hand side as the derivative of a quotient, we can rewrite the equation as:
dxd(x2−5y)=−2x
Integrating both sides with respect to x:
x2−5y=∫−2xdx
x2−5y=−x2+C
y(x)=(x2−5)(C−x2)
We are given the initial condition y(2)=7. Substituting x=2 and y=7 into the solution:
7=(22−5)(C−22)
7=(−1)(C−4)
7=4−C⟹C=−3
Substituting C=−3 back into the solution for y(x):
y(x)=(x2−5)(−3−x2)=−(x2−5)(x2+3)
y(x)=−(x4−2x2−15)=−x4+2x2+15
To find the maximum value of y(x), we can rewrite the expression by completing the square:
y(x)=−(x4−2x2+1)+1+15
y(x)=−(x2−1)2+16
Since (x2−1)2≥0 for all x∈R, the maximum value of y(x) occurs when x2−1=0 (i.e., x=±1).
Thus, the maximum value of the function y(x) is:
ymax=16