Question
Question: Solve the differential equation: \(x + y\dfrac{{dy}}{{dx}} = \sec \left( {{x^2} + {y^2}} \right)\)...
Solve the differential equation:
x+ydxdy=sec(x2+y2) . Also find the particular solution if x=y=0.
Solution
We can give substitution for the term inside the bracket. Then we can find its derivative and substitute in the given equation. Then we can integrate the equation by separating the variable. Then we can substitute back to get the required solution. Then we can apply the initial condition to find the value of the constant of integration. We can obtain the required solution by substituting the value of the constant of integration.
Complete step by step solution:
We have the equation x+dxdy=sec(x2+y2) … (1)
We can give a substitution for the term inside the trigonometric function.
Let t=x2+y2 …. (2)
We can differentiate with respect to x.
⇒dxdt=2x+2ydxdy
On dividing throughout with 2, we get,
⇒21dxdt=x+dxdy … (3)
On substituting equation (2) and (3) in (1), we get,
⇒21dxdt=sec(t)
On bringing the same variables to same side, we get,
⇒sectdt=2dx
We know that secθ1=cosθ
⇒costdt=2dx
On integrating on both sides, we get
⇒∫costdt=2∫dx
We know that ∫costdt=sint and ∫dx=x
⇒sint=2x+C
On substituting equation (2), we get,
⇒sin(x2+y2)=2x+C
We are given the initial condition as x=y=0. On applying the initial condition, we get,
⇒sin(0+0)=2×0+C
On simplification we get,
⇒sin0=0+C
We know that sin0=0
⇒0=C
On substituting the value of C, we get,
⇒sin(x2+y2)=2x+0
Hence, we have,
⇒sin(x2+y2)=2x
So, the required general solution is sin(x2+y2)=2x+C and the particular solution is sin(x2+y2)=2x.
Note:
We must give the substitution for the whole term inside the trigonometric function. While differentiating, we must consider both x and y as variables. As we are differentiating with respect to x, we must put the term [/dfrac{{dy}}{{dx}}] after differentiating y term. We must put the constant of integration after integrating. The general solution will have a constant term added to it. It represents a family of curves which is a solution of the differential equation. Particular solution is obtained by finding the value of the constant of integration. It is done by substituting the initial condition to the general solution.