Post History
I find the current flowing through the capacitor $$\begin{align} I_{C_1}(t)&=\dfrac{\mathrm{d}}{\mathrm{d}t}\left[V_1(t)-I_{C_1}(t)R_1\right] \\ {}&= \dfrac{\mathrm{d}}{\mathrm{d}t}\left...
#2: Post edited
Unexpected phase shift in results
I find the current flowing through the capacitor IC1(t)=d/dt(V1(t)-IC1(t)R1)->IC1(t) = d/dt(sint-IC1(t)) and by solving this differential equation we get IC1(t) = (sint+cost-e^-t)/2.To find the voltage of the capacitor we use Ohm's law:Vc1(t) = V1(t)-IC1(t)R1 = sint-cost+e^-t/2.- 
- But when I plot them on Desmos I get a phase shift of 90 degrees between voltage of the capacitor and current through the capacitor which doesnt make sense it should be 45 degrees what am I doing wrong?
- I find the current flowing through the capacitor
- $$\begin{align}
- I_{C_1}(t)&=\dfrac{\mathrm{d}}{\mathrm{d}t}\left[V_1(t)-I_{C_1}(t)R_1\right] \\\\
- {}&= \dfrac{\mathrm{d}}{\mathrm{d}t}\left[\sin(t)-I_{C_1}(t)\right]
- \end{align}$$
- and by solving this differential equation we get
- $$I_{C_1}(t) = \dfrac{\sin(t)+\cos(t)-\mathrm{e}^{-t}}{2}$$
- To find the voltage of the capacitor we use Ohm's law:
- $$V_{C_1}(t) = V_1(t)-I_{C_1}(t)R_1 = \sin(t)-\cos(t)+\mathrm{e}^{-\frac{t}{2}}$$
- 
- But when I plot them on Desmos I get a phase shift of 90 degrees between voltage of the capacitor and current through the capacitor which doesnt make sense it should be 45 degrees what am I doing wrong?
#1: Initial revision
Unexpected phase shift in results
I find the current flowing through the capacitor IC1(t)=d/dt(V1(t)-IC1(t)R1)->IC1(t) = d/dt(sint-IC1(t)) and by solving this differential equation we get IC1(t) = (sint+cost-e^-t)/2.To find the voltage of the capacitor we use Ohm's law:Vc1(t) = V1(t)-IC1(t)R1 = sint-cost+e^-t/2.  But when I plot them on Desmos I get a phase shift of 90 degrees between voltage of the capacitor and current through the capacitor which doesnt make sense it should be 45 degrees what am I doing wrong?