Question
Solve the following initial value problems:
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=2\text{x}+\text{x}^2\tan\text{x},\text{ y}(0)=1$

Answer

We have,
$\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}=2\text{x}+\text{x}^2\tan\text{x}\ ...(1)$
Clearly, it is a linear differential equation of the form
$\frac{\text{dy}}{\text{dx}}+\text{Px}=\text{Q}$
Where $\text{P}=\tan\text{x}$ and $\text{Q}=\text{x}^2\cot\text{x}+2\text{x}$
$\therefore\text{ I.F.}=\text{e}^{\int\text{Pdx}}$
$=\text{e}^{\int\tan\text{x dx}}$
$=\text{e}^{\log|\sec\text{x}|}$
$=\sec\text{x}$
Multiplying both sides of (1) by $\text{I.F.}=\sec\text{x},$ we get
$\sec\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}\Big)=\sec\text{x}(\text{x}^2\tan\text{x}+2\text{x})$
$\Rightarrow\sec\text{x}\Big(\frac{\text{dy}}{\text{dx}}+\text{y}\tan\text{x}\Big)=\text{x}^2\tan\text{x }\sec\text{x}+2\text{x}\sec\text{x}$
Integrating both sides with respect to x, we get
$\text{y}\sec\text{x}=\int\text{x}^2\tan\text{x }\sec\text{x dx}+2\int\text{x}\sec\text{x dx}\\+2\int\text{x}\sec\text{x dx} +\text{C}$
$\Rightarrow\text{y}\sec\text{x}=\int\text{x}^2\tan\text{x }\sec\text{x dx}+2\sec\text{x}\int\text{x dx}\\-2\int\Big[\frac{\text{d}}{\text{dx}}(\sec\text{x})\int\text{x dx}\Big]\text{dx}+\text{C}$
$\Rightarrow\text{y}\sec\text{x}=\int\text{x}^2\tan\text{x }\sec\text{x dx}+\text{x}^2\sec\text{x}\\-\int\text{x}^2\tan\text{x }\sec\text{x dx} +\text{C}$
$\Rightarrow\text{y}\sec\text{x}=\text{x}^2\sec\text{x}+\text{C}$
$\Rightarrow\text{y}=\text{x}^2+\text{C}\cos\text{x}\ ...(2)$
Now,
$\text{y}(0)=1$
$\therefore\ 1=0+\text{C}\cos0$
$\Rightarrow\text{C}=1$
Putting the value of C in (2), we get
$\text{y}=\text{x}^2+\cos\text{x}$
Hence, $\text{y}=\text{x}^2+\cos\text{x}$ is the required solution.

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Find the approximate value of $f (2.01),$ where $f (x) = 4x^2 + 5x + 2$
If $\text{y}=\sqrt{\text{a}^2-\text{x}^2},$ prove that $\text{y}\frac{\text{dy}}{\text{dx}}+\text{x}=0$
Determine whether the following pair of lines intersect or not:
$\vec{\text{r}}=\big(\hat{\text{i}}-\hat{\text{j}}\big)+\lambda\big(2\hat{\text{i}}+\hat{\text{k}}\big)$ and $\vec{\text{r}}=\big(2\hat{\text{i}}-\hat{\text{j}}\big)+\mu\big(\hat{\text{i}}+\hat{\text{j}}-\hat{\text{k}}\big)$
A fair coin is tossed four times. Let X denote the number of heads occuring. Find the probability distribution, mean and variance of X.
Evaluate the following integrals:
$\int\frac{1}{\sin^3\text{x}\cos^5\text{x}}\text{dx}$
Find one-parameter families of solution curves of the following differential equation: (or solve the following differential equation)$\frac{\text{dy}}{\text{dx}}-\text{y}=\cos2\text{x}$
Show that the normal vector to the plane 2x + 2y + 2z = 3 is equally inclined to the coordinate axes.
Let A =R×R and * be a binary operation on A defined by,
(a, b) * (c, d) = (a + c, b + d).
Show that * is commutative and associative. Find the binary element for * on A, if any.
Find the shortest distance between the following pairs of lines whose vector equation are:
$\vec{\text{r}}=(8+3\lambda)\hat{\text{i}}-(9+16\lambda)\hat{\text{j}}+(10+7\lambda)\hat{\text{k}}$ and $\vec{\text{r}}=15\hat{\text{i}}+29\hat{\text{j}}+5\hat{\text{k}}+\mu\big(3\hat{\text{i}}+8\hat{\text{j}}-5\hat{\text{k}}\big)$
Prove that the area the first quadeant enclosed by the $x-$axis, the line $\text{x}=\sqrt{3}\text{y}$ and the circle is $\frac{\pi}{3}$ .