Given,
(loge(cosy))2cosydx−(1+3xloge(cosy))sinydy=0
⇒dydx+(lncosy−3tany)x=(Incosy)2⋅cosysiny
Which is a linear differential equation,
So, Integrating factor will be, IF=e3∫lncosy−tanydy=(lncosy)3
So, solution of differential equation is given by,
x(lncosy)3=∫cosysiny(lncosy)dy
⇒x(lncosy)3=2−(lncosy)2+c
Now using the given value of x(3π)=2ln21
We get, c=0
Hence, x=2lncosy−1
Now finding, x(6π)=−2ln(23)1=ln4−ln31
Now on comparing with logem−logen1 we get, m=4,n=3
Hence, mn=12