Why Am I Getting a Complex Answer for the Current Through the Resistor?

dinospamoni
Messages
90
Reaction score
0

Homework Statement



The power supply in the circuit shown has V(t) = (120V)cos(ωt), where ω = 310 rad/s. Determine the current flowing through the resistor at time t = 9.7 s, given R = 600 Ω, C = 18 mF, and I(0) = 0 A. As a reminder, Kirkhoff’s voltage law for this circuit (Eq. 8-1.3 in the book) reduces to: dV/dt = R(dI/dt) + I/C.

Homework Equations

The Attempt at a Solution



I've tried this about ten times and can't seem to get the right answer:

I found dV/dt = -37200 Sin(wt) (i'll call it v' from now on)

Rearranging the equation to make it in standard form:

dI/dt + (1/RC)I = v'/R

P= 1/RC = .0926

Q=v'/R = -62 Sin(wt)

F = ∫p dt

So e^F = e^.0926 t
and e^-F = e^-.0926 t

This equation was given in class for solving this type of DE:

I = (e^-I)∫Q*e^F dt + c1*e^-F

When plug this into mathematica, it gives me an imaginary answer

Any ideas?
 
Last edited by a moderator:
Physics news on Phys.org
So you have a linear, first-order, inhomogeneous differential equation for i(t):$$i^\prime + \frac{1}{RC}i = f(t)$$where f(t) is some function of time, in this case given by ##v^\prime(t)/R##

The typical way to solve this type of ODE is by the Method of Integrating Factors. This method works as follows. If you multiply both sides of the equation by exp(∫ w(t) dt), where w(t) is the coefficient on the i(t) term, you can turn the left-hand side (LHS) of the equation into an exact differential, where an exact differential is just "something that is the derivative of something else." Once your LHS is just a derivative, you can solve the equation by direct integration w.r.t. time. In this case, w(t) = 1/RC, and so the factor by which you'd be multiplying things would just be exp(∫dt/RC) = exp(t/RC). That gives us this:$$i^\prime e^{t/RC} + i \frac{1}{RC}e^{t/RC} = e^{t/RC}f(t)$$If you look closely at the LHS, you can see that it looks like something that has already been differentiated using the chain rule.. So, you can "reverse" this differentiation to produce the following:$$\frac{d}{dt}\left[i(t)e^{t/RC}\right] = e^{t/RC}f(t)$$(You can easily verify that taking the derivative of the thing in square brackets will reproduce the LHS of the previous equation). So, now you can solve for i(t) by integrating both sides w.r.t. time (since f(t) is a known function). You'll also have to apply the initial conditions. Can you take it from here?
 
That worked beautifully. This is how I was used to doing these, but I figured I'd try my professor's way. Not sure where it went wrong. But thanks!
 
dinospamoni said:
This equation was given in class for solving this type of DE:

I = (e^-I)∫Q*e^F dt + c1*e^-F

When plug this into mathematica, it gives me an imaginary answer

Any ideas?
Your professor is using the method of integrating factors as well. You should be able to figure out that the first exponential should be ##e^{-F}##.

My guess is you entered something like Exp[-I] into Mathematica. In Mathematica, "I" stands for ##i##, which is why you're getting a complex answer.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Back
Top