Question
Question: Solve the differential equation, \(\cos (x + y)dy = dx\)....
Solve the differential equation, cos(x+y)dy=dx.
Solution
Hint: Try to reduce the number of variables by substituting a third variable and bring in relation between derivatives of new variables and above variables.
Complete step by step answer:
There are two variables x,y and we have these inside a cosine as follows:
⇒cos(x+y)dy=dx …………………………………………….(1)
Simplest method of variable separation will not be helpful as the cosine term brings them in one term, thus inseparable. Instead we will remove this problem for a time till we simplify this expression. So, let us consider the term inside the cosine as a third variable. i.e. let us assume that z=x+y. Differentiating on both sides with respect to y, we get,
⇒dydz=dydx+1
Therefore,
⇒dydx=dydz−1 .............................................(2)
Substituting our assumption and (2) in (1), we get,
⇒cos(z)=dydz−1 ⇒dydz=cosz+1
Now, we have reduced our problem to above form which is variable separable. But before that, we will use trigonometric relations to simplify it further. We know that and using this to the terms on right hand side we get,
⇒dydz=2cos2(2z)
Now, we will proceed with a variable separable method with the last equation.
⇒cos2(2z)dz=2dy
Integrating, on both sides without limits, we get
⇒∫sec2(2z)dz=∫2dy+C, where is an integration constant.
We know that ∫sec2(at)dt=a1tanat+C1. Here, .
Thus solving the integration, we get,
⇒2tan(2z)=2y+C. Dividing both sides by 2, considering C2=2C as new constant for integration and substituting back our assumption, z=x+y, we get
⇒tan(2x+y)=y+C2 ⇒tan(2x+y)−y=C2
This is the solution.
Note: Here we substituted the derivative of x with respect to y. We can also proceed to the same solution if we consider the other way, i.e., derivative of y with respect to x.