Question
Question: The solution to the equation \[\dfrac{{dy}}{{dx}} = \sin \left( {x + y} \right) + \cos \left( {x + y...
The solution to the equation dxdy=sin(x+y)+cos(x+y) is:
A. log[1+tan(2x+y)]+c=0
B. log[1+tan(2x+y)]=x+c
C. log[1−tan(2x+y)]=x+c
D. None of these
Solution
First we’ll substitute the dependent variable with a new variable then will proceed to solve for that variable, here we’ll substitute (x+y) with a new variable, then on differentiating with-respect-to independent variable we’ll also substitute the derivative of the dependent variable, then will further proceed.
Complete step by step answer:
Given data: dxdy=sin(x+y)+cos(x+y).............(i)
Let us assume that, x+y=t
On differentiating with respect to ‘x’,
i.e. 1+dxdy=dxdt
⇒dxdy=dxdt−1
On substituting the value ofdxdyand ′x+y′ in equation (i), we get,
dxdt−1=sint+cost
⇒dxdt=1+sint+cost
Using the double-angle formula of sin(A) and cos(A)
i.e. sin(2A)=2sinAcosA
And, cos(2A)=2cos2A−1
We’ll get,
⇒dxdt=1+2sin(2t)cos(2t)+2cos2(2t)−1
⇒dxdt=2sin(2t)cos(2t)+2cos2(2t)
Now solving for ‘t’ and ‘x’, we’ll use the variable separation method
⇒2sin(2t)cos(2t)+2cos2(2t)dt=dx
Multiplying and dividing left side by sec2(2t) , we get,
⇒2sec2(2t)sin(2t)cos(2t)+2sec2(2t)cos2(2t)sec2(2t)dt=dx
On using, sec2A=cos2A1 in the denominator, we get,
⇒2cos2(2t)sin(2t)cos(2t)+2cos2(2t)cos2(2t)sec2(2t)dt=dx
⇒2cos(2t)sin(2t)+2sec2(2t)dt=dx
Now, usingcosAsinA=tanA, we get,
⇒2tan(2t)+2sec2(2t)dt=dx
⇒2[tan(2t)+1]sec2(2t)dt=dx........(ii)
Now, let p=1+tan(2t)
On differentiating with respect to ‘t’, we get,
⇒dtdp=21sec2(2t)
⇒dp=21sec2(2t)dt
Substituting the value of 1+tan(2t) and 21sec2(2t) in equation (ii), we get,
⇒pdp=dx
Now taking the integral of both the sides,
⇒∫pdp=∫dx
Using ∫zdz=logz+c and ∫dx=x+c, we get,
⇒logp=x+C
Substituting the value of ‘p’, we get,
⇒log(1+tan(2t))=x+C
Now, substituting the value of ‘t’, we get,
∴log(1+tan(2x+y))=x+C
Therefore, option (B) is correct
Note: In the above solution we used the variable separable method to solve the particular differential equation.
Generally, variable separable method is used when we can rewrite the equation such that on either side of the equation there are terms of only one variable,
f(x)g(y)dx=g(x)f(y)dy
Then on separating the similar variable terms,
⇒g(x)f(x)dx=g(y)f(y)dy, than we can simplify easily.