Solveeit Logo

Question

Question: Solve the differential equation: \(x + y\dfrac{{dy}}{{dx}} = \sec \left( {{x^2} + {y^2}} \right)\)...

Solve the differential equation:
x+ydydx=sec(x2+y2)x + y\dfrac{{dy}}{{dx}} = \sec \left( {{x^2} + {y^2}} \right) . Also find the particular solution if x=y=0x = y = 0.

Explanation

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+dydx=sec(x2+y2)x + \dfrac{{dy}}{{dx}} = \sec \left( {{x^2} + {y^2}} \right) … (1)
We can give a substitution for the term inside the trigonometric function.
Let t=x2+y2t = {x^2} + {y^2} …. (2)
We can differentiate with respect to x.
dtdx=2x+2ydydx\Rightarrow \dfrac{{dt}}{{dx}} = 2x + 2y\dfrac{{dy}}{{dx}}
On dividing throughout with 2, we get,
12dtdx=x+dydx\Rightarrow \dfrac{1}{2}\dfrac{{dt}}{{dx}} = x + \dfrac{{dy}}{{dx}} … (3)
On substituting equation (2) and (3) in (1), we get,
12dtdx=sec(t)\Rightarrow \dfrac{1}{2}\dfrac{{dt}}{{dx}} = \sec \left( t \right)
On bringing the same variables to same side, we get,
dtsect=2dx\Rightarrow \dfrac{{dt}}{{\sec t}} = 2dx
We know that 1secθ=cosθ\dfrac{1}{{\sec \theta }} = \cos \theta
costdt=2dx\Rightarrow \cos tdt = 2dx
On integrating on both sides, we get
costdt=2dx\Rightarrow \int {\cos tdt} = 2\int {dx}
We know that costdt=sint\int {\cos tdt} = \sin t and dx=x\int {dx} = x
sint=2x+C\Rightarrow \sin t = 2x + C
On substituting equation (2), we get,
sin(x2+y2)=2x+C\Rightarrow \sin \left( {{x^2} + {y^2}} \right) = 2x + C
We are given the initial condition as x=y=0x = y = 0. On applying the initial condition, we get,
sin(0+0)=2×0+C\Rightarrow \sin \left( {0 + 0} \right) = 2 \times 0 + C
On simplification we get,
sin0=0+C\Rightarrow \sin 0 = 0 + C
We know that sin0=0\sin 0 = 0
0=C\Rightarrow 0 = C
On substituting the value of C, we get,
sin(x2+y2)=2x+0\Rightarrow \sin \left( {{x^2} + {y^2}} \right) = 2x + 0
Hence, we have,
sin(x2+y2)=2x\Rightarrow \sin \left( {{x^2} + {y^2}} \right) = 2x

So, the required general solution is sin(x2+y2)=2x+C\sin \left( {{x^2} + {y^2}} \right) = 2x + C and the particular solution is sin(x2+y2)=2x\sin \left( {{x^2} + {y^2}} \right) = 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.