Rewrite the differential equation
Given
( x cos x ) d y + ( x y sin x + y cos x − 1 ) d x = 0. (x\cos x)\,dy+(xy\sin x+y\cos x-1)\,dx=0. ( x cos x ) d y + ( x y sin x + y cos x − 1 ) d x = 0.
Divide by d x dx d x :
( x cos x ) d y d x + x y sin x + y cos x − 1 = 0. (x\cos x)\frac{dy}{dx}+xy\sin x+y\cos x-1=0. ( x cos x ) d x d y + x y sin x + y cos x − 1 = 0.
So
x cos x y ′ + x y sin x + y cos x = 1. x\cos x\,y'+xy\sin x+y\cos x=1. x cos x y ′ + x y sin x + y cos x = 1.
Notice that
d d x ( x y cos x ) = x cos x y ′ + y cos x − x y sin x ? \frac{d}{dx}(xy\cos x)=x\cos x\,y'+y\cos x-xy\sin x? d x d ( x y cos x ) = x cos x y ′ + y cos x − x y sin x ?
Let us compute carefully:
d d x ( x y cos x ) = y cos x + x y ′ cos x − x y sin x . \frac{d}{dx}(xy\cos x)=y\cos x+x y'\cos x-xy\sin x. d x d ( x y cos x ) = y cos x + x y ′ cos x − x y sin x .
This is not matching directly. So instead, rewrite the DE in linear form.
Put into standard linear form
From
x cos x y ′ + x y sin x + y cos x = 1 , x\cos x\,y'+xy\sin x+y\cos x=1, x cos x y ′ + x y sin x + y cos x = 1 ,
divide by x cos x x\cos x x cos x (valid since 0 < x < π 2 0<x<\frac\pi2 0 < x < 2 π , so x > 0 x>0 x > 0 and cos x > 0 \cos x>0 cos x > 0 ):
y ′ + ( tan x + 1 x ) y = 1 x cos x . y'+\left(\tan x+\frac{1}{x}\right)y=\frac{1}{x\cos x}. y ′ + ( tan x + x 1 ) y = x cos x 1 .
This is a linear differential equation:
y ′ + P ( x ) y = Q ( x ) , P ( x ) = tan x + 1 x . y'+P(x)y=Q(x),\qquad P(x)=\tan x+\frac1x. y ′ + P ( x ) y = Q ( x ) , P ( x ) = tan x + x 1 .
Find the integrating factor
I.F. = e ∫ ( tan x + 1 x ) d x = e ∫ tan x d x + ∫ 1 x d x . \text{I.F.}=e^{\int (\tan x+\frac1x)dx}
=e^{\int \tan x\,dx+\int \frac1x dx}. I.F. = e ∫ ( t a n x + x 1 ) d x = e ∫ t a n x d x + ∫ x 1 d x .
Now,
∫ tan x d x = ln ( sec x ) , \int \tan x\,dx=\ln(\sec x), ∫ tan x d x = ln ( sec x ) ,
so
I.F. = e ln ( sec x ) + ln x = x sec x . \text{I.F.}=e^{\ln(\sec x)+\ln x}=x\sec x. I.F. = e l n ( s e c x ) + l n x = x sec x .
Solve the equation
Thus
d d x ( y ⋅ x sec x ) = 1 x cos x ⋅ x sec x = sec 2 x . \frac{d}{dx}\big(y\cdot x\sec x\big)=\frac{1}{x\cos x}\cdot x\sec x=\sec^2 x. d x d ( y ⋅ x sec x ) = x cos x 1 ⋅ x sec x = sec 2 x .
Integrating:
y x sec x = tan x + C . yx\sec x=\tan x+C. y x sec x = tan x + C .
Hence
y = tan x + C x sec x = sin x + C cos x x . y=\frac{\tan x+C}{x\sec x}=\frac{\sin x+C\cos x}{x}. y = x sec x tan x + C = x sin x + C cos x .
So
x y = sin x + C cos x . xy=\sin x+C\cos x. x y = sin x + C cos x .
Use the given condition
Given
π 3 y ( π 3 ) = 3 . \frac\pi3\,y\left(\frac\pi3\right)=\sqrt3. 3 π y ( 3 π ) = 3 .
But from the solution,
x y = sin x + C cos x . xy=\sin x+C\cos x. x y = sin x + C cos x .
At x = π 3 x=\frac\pi3 x = 3 π :
π 3 y ( π 3 ) = sin π 3 + C cos π 3 = 3 2 + C 2 . \frac\pi3 y\left(\frac\pi3\right)=\sin\frac\pi3+C\cos\frac\pi3
=\frac{\sqrt3}{2}+\frac C2. 3 π y ( 3 π ) = sin 3 π + C cos 3 π = 2 3 + 2 C .
This equals 3 \sqrt3 3 , so
3 2 + C 2 = 3 ⟹ C = 3 . \frac{\sqrt3}{2}+\frac C2=\sqrt3
\implies C=\sqrt3. 2 3 + 2 C = 3 ⟹ C = 3 .
Therefore
y = sin x + 3 cos x x . y=\frac{\sin x+\sqrt3\cos x}{x}. y = x sin x + 3 cos x .
Simplify near x = π 6 x=\frac\pi6 x = 6 π
Let
f ( x ) = sin x + 3 cos x . f(x)=\sin x+\sqrt3\cos x. f ( x ) = sin x + 3 cos x .
Then
y = f ( x ) x . y=\frac{f(x)}{x}. y = x f ( x ) .
Now,
f ′ ( x ) = cos x − 3 sin x , f'(x)=\cos x-\sqrt3\sin x, f ′ ( x ) = cos x − 3 sin x ,
f ′ ′ ( x ) = − sin x − 3 cos x = − f ( x ) . f''(x)=-\sin x-\sqrt3\cos x=-f(x). f ′′ ( x ) = − sin x − 3 cos x = − f ( x ) .
At x = π 6 x=\frac\pi6 x = 6 π ,
sin π 6 = 1 2 , cos π 6 = 3 2 . \sin\frac\pi6=\frac12,\qquad \cos\frac\pi6=\frac{\sqrt3}{2}. sin 6 π = 2 1 , cos 6 π = 2 3 .
So
f ( π 6 ) = 1 2 + 3 ⋅ 3 2 = 1 2 + 3 2 = 2 , f\left(\frac\pi6\right)=\frac12+\sqrt3\cdot\frac{\sqrt3}{2}=\frac12+\frac32=2, f ( 6 π ) = 2 1 + 3 ⋅ 2 3 = 2 1 + 2 3 = 2 ,
f ′ ( π 6 ) = 3 2 − 3 ⋅ 1 2 = 0 , f'\left(\frac\pi6\right)=\frac{\sqrt3}{2}-\sqrt3\cdot\frac12=0, f ′ ( 6 π ) = 2 3 − 3 ⋅ 2 1 = 0 ,
f ′ ′ ( π 6 ) = − 2. f''\left(\frac\pi6\right)=-2. f ′′ ( 6 π ) = − 2.
Find y ′ y' y ′ and y ′ ′ y'' y ′′
Since
y = f x , y=\frac{f}{x}, y = x f ,
we get
y ′ = x f ′ − f x 2 . y'=\frac{xf'-f}{x^2}. y ′ = x 2 x f ′ − f .
Then
y ′ ′ = x 2 f ′ ′ − 2 x f ′ + 2 f x 3 . y''=\frac{x^2f''-2x f'+2f}{x^3}. y ′′ = x 3 x 2 f ′′ − 2 x f ′ + 2 f .
At x = π 6 x=\frac\pi6 x = 6 π :
y ′ ( π 6 ) = π 6 ⋅ 0 − 2 ( π / 6 ) 2 = − 2 π 2 / 36 = − 72 π 2 . y'\left(\frac\pi6\right)=\frac{\frac\pi6\cdot 0-2}{(\pi/6)^2}
=-\frac{2}{\pi^2/36}=-\frac{72}{\pi^2}. y ′ ( 6 π ) = ( π /6 ) 2 6 π ⋅ 0 − 2 = − π 2 /36 2 = − π 2 72 .
Also
y ′ ′ ( π 6 ) = ( π / 6 ) 2 ( − 2 ) − 2 ( π / 6 ) ( 0 ) + 2 ( 2 ) ( π / 6 ) 3 . y''\left(\frac\pi6\right)=\frac{(\pi/6)^2(-2)-2(\pi/6)(0)+2(2)}{(\pi/6)^3}. y ′′ ( 6 π ) = ( π /6 ) 3 ( π /6 ) 2 ( − 2 ) − 2 ( π /6 ) ( 0 ) + 2 ( 2 ) .
So
y ′ ′ ( π 6 ) = − π 2 / 18 + 4 π 3 / 216 . y''\left(\frac\pi6\right)=\frac{-\pi^2/18+4}{\pi^3/216}. y ′′ ( 6 π ) = π 3 /216 − π 2 /18 + 4 .
Compute the required expression
We need
∣ π 6 y ′ ′ ( π 6 ) + 2 y ′ ( π 6 ) ∣ . \left|\frac\pi6 y''\left(\frac\pi6\right)+2y'\left(\frac\pi6\right)\right|. 6 π y ′′ ( 6 π ) + 2 y ′ ( 6 π ) .
Using the general formulas is easier:
\frac\pi6 y''\left(\frac\pi6\right)
=\frac{x\big(x^2f''-2xf'+2f\big)}{x^3}igg|_{x=\pi/6}
=\frac{x^2f''-2xf'+2f}{x^2}igg|_{x=\pi/6},
with x = π 6 x=\frac\pi6 x = 6 π .
Thus
π 6 y ′ ′ + 2 y ′ = x 2 f ′ ′ − 2 x f ′ + 2 f x 2 + 2 ⋅ x f ′ − f x 2 = x 2 f ′ ′ x 2 = f ′ ′ . \frac\pi6 y''+2y'
=\frac{x^2f''-2xf'+2f}{x^2}+2\cdot\frac{xf'-f}{x^2}
=\frac{x^2f''}{x^2}=f''. 6 π y ′′ + 2 y ′ = x 2 x 2 f ′′ − 2 x f ′ + 2 f + 2 ⋅ x 2 x f ′ − f = x 2 x 2 f ′′ = f ′′ .
So the whole expression simplifies to
∣ f ′ ′ ( π 6 ) ∣ = ∣ − 2 ∣ = 2. \left|f''\left(\frac\pi6\right)\right|=|-2|=2. f ′′ ( 6 π ) = ∣ − 2∣ = 2.
Final answer
2 \boxed{2} 2
This matches the stored correct answer.