Question
Question: Solve the differential equation \(\dfrac{dy}{dx}=\tan \left( x+y \right)\)...
Solve the differential equation dxdy=tan(x+y)
Solution
- Hint:This differential equation can be reduced to a variable separable form by putting a particular term equal to a variable. Some formulas and identities used in this question are: -
sec2t=1+tan2t; ∫xdx=lnx+c
dxd(tant)=sec2tdt; ∫1+x2dx=tan−1x+c
Complete step-by-step solution -
The differential equation given in the question is not of the form f(x)dx=g(y)dy. So, we cannot just cross multiply terms. To make it of the form f(x)dx=g(y)dyi.e. of the variable separable from, we have to make necessary i.e. of the variable separable from, we have to make necessary substitutions. Thus, now we will start converting into a variable separable form; in the question, it is given that,
dxdy=tan(x+y) …………………………….(i)
Now, we will substitute (x+y) to t i.e.,
x+y=t ……………………………………………(ii)
We will differentiate both sides of the equation with respect to x i.e.,
dxdx+dxdy=dxdt
⇒1+dxdy=dxdt
⇒dxdy=dxdt−1 …………………………………………(iii)
Now we will put the value of (x+y)and dxdy from equation (ii)and equation (iii) to equation (i). After doing this we will get,
dxdt−1=tant
dxdt=tant+1 …………………………………………(iv)
Now equation (iv) is variable separable form so we can simply cross multiply the equation. After doing this, we will get,
1+tantdt=dx ………………………………………….(v)
Now, we will integrate the equation (v);
∫1+tantdt=∫dx+c ………………………………….(vi)
Now, we will put tant=p. We will differentiate both sides. After doing this, we will get: -
sec2tdt=dp
⇒dt=sec2tdp
⇒dt=1+tan2tdp [from the identity in the hint]
⇒dt=1+p2dp
Putting the values in (vi), we get
∫(1+p2)(1+p)dt=∫dx+c
Now, we will separately integrate the term on LHS:
∫(1+p2)(1+p)dt
By using partial fraction, we get
∫(1+p2)(1+p)dp=∫1+pAdp+∫1+p2(Bp+c)dp ……………………………(vii)
Now we have to find the values of A, B and C let us see, how this can be done: -
∫(1+p2)(1+p)dp=∫(1+p)(1+p2)(A+Ap2+Bp+C+Bp2+Cp)dp
So, we get; A+C=1
A+B=0
B+C=0
From the equations, we get: - A=21,B=2−1,C=21
We will put these values in equation (vii). After doing this, we will get: -
∫(1+p2)(1+p)dp=21∫(1+p)dp+21∫(1+p2)(−p+1)dp
=21ln(1+p)+21tan−1p−41ln(1+p2)
We will now put this value in the above differential equation: -
21ln(1+p)+21tan−1p−41ln(1+p2)=x+c
We will now put the value back to p=tant, after doing this, we will get: -
21ln(1+tant)+21t−41ln(1+tan2p)=x+c
Now, we know that t=x+y. After substituting this, we get;
21ln(1+tan(x+y))+21(x+y)−41ln(1+tan2(x+y))−x=c
⇒ln(1+tan(x+y))+(y−x)−21ln(1+tan2(x+y))=c
This is the required solution of our differential equation.
Note: In the question, we are not given the values of x and y which satisfy the function. So, we cannot eliminate c from the required solution. Thus, this is a general solution where c can have any value.