What is the solution of the following DIFFERENTIAL EQUATION for the initial value problem: y(0) = -2 Eqn: y' + (tanx)y = 2(cosx)^2
@Mertsj @Zarkon @dpaInc @jim_thompson5910 @lgbasallote @KingGeorge @AccessDenied @SmoothMath @eliassaab @asnaseer @.Sam. @kropot72 @eigenschmeigen @satellite73 @amistre64 @TuringTest @shivam_bhalla @experimentX @FoolForMath @Callisto @phi
I know integrating factors now. So I get the integrating factor to be: secx.
After doing the simplification
But what I am getting when I solve for y is: \[y = 2\cos\]
Oops
\[y = 2cosxsinx + C\]
I know: \[\mu(x) = \frac{1}{cosx}\] mu is the INTEGRATING FACTOR
I think that \[ y=2 (\sin (x) \cos (x)-\cos (x) \]
This is after simplification
But how did you get that -cosx???
Ok this is what I did:
I start off with the equation: y' + (tanx)y = 2(cosx)^2 I multiply both sides by the integrating factor. Let's call it a(x), not mu(x) a(x)[y' + tanx*y] = 2(cosx)^2
Then I expanded:
a(x)*y' + a(x)*tanx*y = a(x)*(2cosx)^2 <-- I missed that a(x) on the RHS, sorry about that
Then, we can re-express a(x)tanx: Recall: a(x) = \[e^{\int\limits_{}^{}p(x)dx}\]
My p(x) is tanx
The problem is that on the RHS: I have: \[a(x)*2(cosx)^2 \]
Which will then simplify to: \[secx*(2)(cosx)\]
cos^2x sorry
So then you end up getting cosx on the RHS
Could you show me how you did your RHS
\[ -\cos(x) \] is the solution of the homogenous equation \[ y'(x)+y(x) \tan (x)=0 \]
\[2*\sec(x)*(\cos(x)^2) = 2\cos(x)\]
I get the above?
\[2*\frac{1}{cosx}*cosx*cosx\] bow two cosx cancel to leave 2cosx or did I miss something
@eliassaab I found out how I lost that other cos(x)
Now, I am getting: C = -2
So, the solution for this initial value problem is: y = 2sinxcosx - 2cosx
I found out that I have to cross-multiply AFTER I put in that "C" to the other side
Would this be correct?
With the -2 in front of the cosx?
yes
Yes! Finally.
Finished.
Join our real-time social learning platform and learn together with your friends!