Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Unexpected phase shift in results

Parent

Unexpected phase shift in results

+1
−0

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}}$$

Check me

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?

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

Post
+2
−0
I get a phase shift of 90 degrees between voltage of the capacitor and current through the capacitor which doesn't make sense it should be 45 degrees

You don't need a whole circuit to see that the phase shift should be 90°. You can see that from a capacitor in isolation.

The current thru a capacitor is proportional to the derivative of the voltage across it. If the voltage on a cap is a sine, then the current is a cosine, which has 90° leading phase relative to the voltage. Since this is what a capacitor inherently does, it doesn't matter what the rest of the circuit is trying to do. The above will always be true (for an ideal capacitor).

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

General comments (1 comment)
General comments

Skipping 1 deleted comment.