Skip to content
TheChatArchiveThe Chat Archive
gpt-4-1106-preview· OpenAIAi2 WildChat-4.8M (AI2)

given (x^2+15)y'=2x(y-4) and y(1)=0, compute y(7)

  1. User

    given (x^2+15)y'=2x(y-4) and y(1)=0, compute y(7)

  2. Assistant

    To find ( y(7) ), we can start by solving the differential equation given by:

    [ (x^2 + 15)y' = 2x(y - 4) ]

    First, we want to separate variables, if possible. Divide both sides by ( (x^2 + 15)(y - 4) ) to obtain:

    [ \frac{y'}{y - 4} = \frac{2x}{x^2 + 15} ]

    Next, we integrate both sides to find an implicit solution:

    [ \int \frac{1}{y - 4} dy = \int \frac{2x}{x^2 + 15} dx ]

    The left side integrates to:

    [ \ln |y - 4| + C_1 ]

    Where ( C_1 ) is a constant of integration.

    The right side integrates as a logarithm as well, but with a substitution:

    [ u = x^2 + 15 ] [ du = 2x dx ]

    So the integral becomes:

    [ \frac{1}{2} \int \frac{1}{u} du = \frac{1}{2} \ln |u| + C_2 ] [ = \frac{1}{2} \ln|x^2 + 15| + C_2 ]

    Where ( C_2 ) is another constant of integration.

    Putting the two integrals together:

    [ \ln |y - 4| = \frac{1}{2} \ln|x^2 + 15| + C ]

    ( C ) is a constant that results from ( C_1 - C_2 ). To solve for ( C ), we use the initial condition ( y(1) = 0 ):

    [ \ln |0 - 4| = \frac{1}{2} \ln|1^2 + 15| + C ]

    [ \ln 4 = \frac{1}{2} \ln 16 + C ]

    [ \ln 4 = \ln 4^{1/2} + C ]

    [ \ln 4 = \ln 2 + C ]

    [ C = \ln 4 - \ln 2 ] [ = \ln(4/2) ] [ = \ln 2 ]

    So our equation now looks like:

    [ \ln|y - 4| = \frac{1}{2}\ln|x^2 + 15| + \ln 2 ]

    Exponentiating both sides to remove the logarithms:

    [ |y - 4| = e^{\ln|y - 4|} = e^{\frac{1}{2}\ln|x^2 + 15| + \ln 2} ]

    [ |y - 4| = e^{\frac{1}{2}\ln|x^2 + 15|} \cdot e^{\ln 2} ]

    [ |y - 4| = (x^2 + 15)^{1/2} \cdot 2 ]

    Now we need to decide on the correct sign for ( |y - 4| ), i.e., whether ( y - 4 ) is positive or negative. Since we start with ( y(1) = 0 ), which is less than 4, our solution will be needing negative sign so that when (x = 1, y < 4), therefore,

    [ y - 4 = -2\sqrt{x^2 + 15} ]

    Finally:

    [ y = -2\sqrt{x^2 + 15} + 4 ]

    Let's compute ( y(7) ):

    [ y(7) = -2\sqrt{7^2 + 15} + 4 ]

    [ y(7) = -2\sqrt{49 + 15} + 4 ]

    [ y(7) = -2\sqrt{64} + 4 ]

    [ y(7) = -2(8) + 4 ]

    [ y(7) = -16 + 4 ]

    [ y(7) = -12 ]

    Therefore, ( y(7) ) is -12.